<p>You can't store scripts using blockfrost.</p>
<p>blockfrost only queries the blockchain and has an endpoint to submit transactions.</p>
<p>when you retrieve a script hash using blockforst you are querying the blockchain</p>
<p>in order to &quot;store&quot; a script on-chain you first have to interact with that script so that the blockchain knows it exists.</p>
<p><a href="https://www.youtube.com/watch?v=ABtffZPoUqU&amp;list=PLNEK_Ejlx3x2zxcfoVGARFExzOHwXFCCL&amp;index=6" rel="nofollow noreferrer">the section 6 of lesson 3 of the plutus-pioneer-program iteration 3</a> shows you how to create such a transaction using <code>cardano-cli</code></p>

CC BY-SA 4.0
2022-07-01T16:37:46.050Z
2022-07-01T16:37:46.050Z
Michele Nuzzi
<p>Greeting!</p>
<p>I got that Blockfrost has API to get plutus script hash but how to store those scripts hashes?</p>
<p>P.S. if I got script hash, can I build and send transaction using script's hash and Blockfrost?</p>

<plutus><blockfrost><script>
How to store scripts using blockfrost?
# How to store scripts using blockfrost?

(Asked by: username_0 on 2022-07-01)

Greeting!

I got that Blockfrost has API to get plutus script hash but how to store those scripts hashes?

P.S. if I got script hash, can I build and send transaction using script's hash and Blockfrost?

**Tags:** plutus, blockfrost, script

---

## 1 answers

### Answer by username_1 on 2022-07-01. Score: 0 | Accepted answer

You can't store scripts using blockfrost.

blockfrost only queries the blockchain and has an endpoint to submit transactions.

when you retrieve a script hash using blockforst you are querying the blockchain

in order to "store" a script on-chain you first have to interact with that script so that the blockchain knows it exists.

[the section 6 of lesson 3 of the plutus-pioneer-program iteration 3](https://www.youtube.com/watch?v=ABtffZPoUqU&list=PLNEK_Ejlx3x2zxcfoVGARFExzOHwXFCCL&index=6) shows you how to create such a transaction using `cardano-cli`


---

