PPP 030306 Deploying to the Cardano Testnet

IOG Academy · 5K views · 2022 · 32:30

Open on YouTube

Programming language designDistributed systemsFunctional programminglecturedated

Why Cardano Stack Exchange recommends it

Cardano Stack Exchange users link it as the reference walkthrough for deploying Plutus scripts to testnet and using cardano-cli, both when answering questions and when asking about errors they hit while following it.

Recommended by 2 people across 2 different months, 2022 to 2022.

What it is

A lecture from the Plutus Pioneer Program (Iteration 3, Lecture 3, Part 6) by IOG Academy. It walks through deploying a Plutus script to the Cardano testnet, building and submitting a transaction with cardano-cli that locks funds at a script address and later redeems them.

What people said

Recommends Fermat · 2022-04 · Cardano Stack Exchange · on “Plutus datum and redeemer on cardano-cli”

Have a look at the following source Cardano-Api Haddock [LINK] . Here you will find all about the conversion between Haskell data types and the Json format the cardano-cli uses. I noticed that you used the marketplace of SpaceBudz as an example, so lets have a look at the other code in that repository. Notice the line 99 [LINK] . print $ "Datum value: " <> encode (scriptDataToJson ScriptDataJsonDetailedSchema $ fromPlutusData (Plutus.toData offerDatum)) Here that function prints the offerDatum defined at line 85. You see here how the function from the cardano-api are used and then encoded to convert the datum to a json form? Here the <> symbol just means concatenate the two strings. For a mo

Recommends Michele Nuzzi · 2022-07 · Cardano Stack Exchange · on “How to store scripts using blockfrost?”

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 [this video] shows you how to create such a transaction using cardano-cli

Cites Roofi · 2022-01 · Cardano Stack Exchange · on “PPViewHashesDontMatch and UnspendableUTxONoDatumHash error on redeeming funds from week03 example”

I am trying to redeem the funds from the smart contract into the second wallet without running cardano-node (following the instructions from here: [this video] ) but I get the following error (bcc is blockfrost's cardano-cli is taken from here [LINK] ): $ bcc transaction submit -f tx.signed -t › Error: Command failed: transaction submit error › ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError › [UtxowFailure (UnspendableUTxONoDatumHash (fromList [TxInCompact (TxId › {_unTxId = SafeHash › \"8583cadfd7a43be943b78b7756c9f02c7825f03dbc67d6dae24f6fb12080144e\"}) › 0])),UtxowFailure (PPViewHashesDontMatch (SJust (SafeHash › \"ca6319c1203911911d372c25297cb9d6606b515a9157a5e9d0a5bcec642efd34\

Cites Kurt Sys · 2022-01 · Cardano Stack Exchange · on “What is where executed and when?”

You send the script together with your Tx. That's how I understand it, but I'm not 100% sure either. [this video] : the vesting script is added in the Tx, the blockchain checks if it's the right script by comparing the hash. Lars saying there: 'you have to provide the actual script'. (I hear contradictory statements: it's stored on the bockchain vs it is not stored on the blockchain. When send together with the Tx, it's not stored on it, only executed on it.)

Cites Steve Mason · 2022-02 · Cardano Stack Exchange · on “Need help getting Cardano-node installed and running - trying to follow Lars example Week03 - Cohort03”

I'm trying to replicate what Lars was demonstrating at the start of the week03 testnet setup video [this video] (time 0:49-1:05), but after picking the hydra binaries, he is magically in a nix-shell and able to do cardano-node --version. My question is what steps were done after downloading the binaries in order to be able from run cardano-node from a nix-shell? I'm new to nix so not always sure what has to be done to get things working. I've tried just running the nix-shell, which spent quite a while updating dependencies, but in the end cardano-node didn't exist - ie running cardano-node --version in shell did nothing, neither did 'which cardano-node'. Can someone please provide specific steps