Cardano Plutus Smart Contract Tutorial #2 | Endpoints and Validator Script Blockchain Development

Update:
The comments have pointed out that the Starter project actually doesn’t receive inputs correctly… oops! Follow Nikola Paunović solution in the comments below to get the inputs working properly for you!

In the second video of the series we’re taking look at the Starter project on the Plutus Playground which is a starter script to create a smart contract.

We will be taking a deep dive into multiple concepts needed to create a plutus smart contract:
1) Validator Scripts with Datum and Redeemers to send transactions across the network
2) Getting user inputs with Schema with Endpoints
3) Transpiling code into Plutus Core to be used on the blockchain.

And as always we’ll be doing light introduction on some of the Haskell syntax that shows up in the project.

At the end of the video, you should be a more confident blockchain developer being able to understand how other Plutus scripts work

🚀 Code from the video:
Plutus Playground: https://playground.plutus.iohkdev.io/

Writing Validator Scripts and Data types: https://docs.cardano.org/projects/plutus/en/latest/tutorials/basic-validators.htmlcontract/src/Language/Plutus/Contract/Types.hs
Plutus TX and Haskell Template: https://docs.cardano.org/projects/plutus/en/latest/tutorials/plutus-tx.html

00:00 – Intro
00:55 – Starter project introduction
05:12 – Validator Scripts
07:18 – Datum/Redeemer Types
09:32 – Finding Data in the source code
11:06 – Plutus Core vs Plutux Tx
12:41 – Template Haskell: Creating Plutus Core code for the blockchain
15:20 – Getting/Retrieving user inputs from Endpoints
18:05 – Walking through the starter project
26:40 – Implementing our validator script
29:18 – Conclusion

Donate Ada: addr1qxws6z9qxkycclpxxpnkq202wxrlc7ke29zmpydj40a2z8aq4jx95m2pnvdrwrsrl5m30j0vce0w7k5zt0aeqzcsurwqulm5hc

(Visited 31 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

kusama
Kusama (KSM) 166,30 5,70%
compound-governance-token
Compound (COMP) 330,83 2,77%
dash
Dash (DASH) 131,33 4,86%
zcash
Zcash (ZEC) 93,33 7,80%
yearn-finance
yearn.finance (YFI) 26.033,54 4,83%
bitcoin
Bitcoin (BTC) 32.382,24 4,71%
ethereum
Ethereum (ETH) 2.088,25 5,43%
tether
Tether (USDT) 0,842673 0,98%
cardano
Cardano (ADA) 1,08 5,24%
xrp
XRP (XRP) 0,608065 6,18%
dogecoin
Dogecoin (DOGE) 0,167402 5,07%
polkadot
Polkadot (DOT) 14,61 5,63%
usd-coin
USD Coin (USDC) 0,842673 0,26%
uniswap
Uniswap (UNI) 17,73 5,74%
bitcoin-cash
Bitcoin Cash (BCH) 447,59 2,01%
chainlink
Chainlink (LINK) 19,23 0,10%
matic-network
Polygon (MATIC) 0,859526 4,75%
solana
Solana (SOL) 28,00 6,13%
litecoin
Litecoin (LTC) 116,82 4,69%
stellar
Stellar (XLM) 0,228562 4,97%
ethereum-classic
Ethereum Classic (ETC) 41,61 5,17%
eos
EOS (EOS) 3,32 4,90%
tron
TRON (TRX) 0,053688 2,38%
filecoin
Filecoin (FIL) 45,11 3,75%
aave
Aave (AAVE) 258,77 5,14%
monero
Monero (XMR) 195,70 3,76%
dai
Dai (DAI) 0,842673 0,65%
tezos
Tezos (XTZ) 2,60 1,51%
cosmos
Cosmos (ATOM) 10,14 4,30%
algorand
Algorand (ALGO) 0,672183 4,58%