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 86 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

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

eos
EOS (EOS) 4,07 3,27%
aave
Aave (AAVE) 286,74 3,92%
the-graph
The Graph (GRT) 0,935116 5,35%
kusama
Kusama (KSM) 335,52 2,57%
waves
Waves (WAVES) 24,72 0,67%
dash
Dash (DASH) 171,61 2,74%
bitcoin
Bitcoin (BTC) 52.116,01 3,42%
ethereum
Ethereum (ETH) 3.600,28 1,05%
cardano
Cardano (ADA) 1,84 2,19%
tether
Tether (USDT) 0,857905 0,05%
xrp
XRP (XRP) 0,952275 0,63%
solana
Solana (SOL) 173,85 3,49%
polkadot
Polkadot (DOT) 38,45 1,10%
usd-coin
USD Coin (USDC) 0,857905 0,10%
dogecoin
Dogecoin (DOGE) 0,221775 2,71%
uniswap
Uniswap (UNI) 22,92 0,53%
terra-luna
Terra (LUNA) 37,86 0,31%
litecoin
Litecoin (LTC) 175,39 4,10%
chainlink
Chainlink (LINK) 28,48 3,20%
bitcoin-cash
Bitcoin Cash (BCH) 525,48 1,24%
algorand
Algorand (ALGO) 1,72 3,05%
matic-network
Polygon (MATIC) 1,56 4,60%
stellar
Stellar (XLM) 0,322022 3,05%
cosmos
Cosmos (ATOM) 35,11 12,27%
filecoin
Filecoin (FIL) 53,58 4,06%
tron
TRON (TRX) 0,087384 1,89%
ethereum-classic
Ethereum Classic (ETC) 47,08 2,05%
dai
Dai (DAI) 0,857905 0,07%
tezos
Tezos (XTZ) 5,83 0,86%
monero
Monero (XMR) 240,26 3,40%