<p>You can <a href="https://github.com/blockfrost/blockfrost-haskell" rel="nofollow noreferrer">blockfrost-haskell</a> from you off-chain code to call the Blockfrost API.</p>
<p>Or you can use <a href="https://github.com/input-output-hk/plutus-apps/tree/main/pab-blockfrost" rel="nofollow noreferrer">Blockfrost endpoint integration for the PAB</a> available in PAB directly.</p>

CC BY-SA 4.0
2022-12-05T10:45:10.093Z
2022-12-05T10:45:10.093Z
Marek Mahut - StakeNuts
<p>Blockcfrost-related question. Can we expose our own custom endpoints in our off-chain Plutus contract, and use your API to send requests from our own frontend client? For example, if I expose an endpoint named &quot;collect-funds&quot; in my Plutus off-chain contract, can I call that endpoint from my react app via your API to execute my Plutus contract functionality which is related to that endpoint? Super thanks in advance!</p>

<plutus><blockfrost>
Can I use Blockfrost to call custom endpoints of my Plutus offchain contract?
# Can I use Blockfrost to call custom endpoints of my Plutus offchain contract?

(Asked by: username_0 on 2022-04-30)

Blockcfrost-related question. Can we expose our own custom endpoints in our off-chain Plutus contract, and use your API to send requests from our own frontend client? For example, if I expose an endpoint named "collect-funds" in my Plutus off-chain contract, can I call that endpoint from my react app via your API to execute my Plutus contract functionality which is related to that endpoint? Super thanks in advance!

**Tags:** plutus, blockfrost

---

## 1 answers

### Answer by username_1 on 2022-12-05. Score: 1

You can [blockfrost-haskell](https://github.com/blockfrost/blockfrost-haskell) from you off-chain code to call the Blockfrost API.

Or you can use [Blockfrost endpoint integration for the PAB](https://github.com/input-output-hk/plutus-apps/tree/main/pab-blockfrost) available in PAB directly.


---

