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 241 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) 0,756438 3,89%
aave
Aave (AAVE) 83,15 1,03%
the-graph
The Graph (GRT) 0,234041 0,67%
kusama
Kusama (KSM) 27,53 2,34%
waves
Waves (WAVES) 2,30 1,77%
dash
Dash (DASH) 27,31 2,40%
bitcoin
Bitcoin (BTC) 59.183,54 2,21%
ethereum
Ethereum (ETH) 2.960,43 0,20%
cardano
Cardano (ADA) 0,424728 1,05%
tether
Tether (USDT) 0,933654 0,04%
xrp
XRP (XRP) 0,479343 2,19%
solana
Solana (SOL) 126,89 0,88%
polkadot
Polkadot (DOT) 6,16 0,59%
usd-coin
USDC (USDC) 0,933936 0,05%
dogecoin
Dogecoin (DOGE) 0,133389 1,43%
uniswap
Uniswap (UNI) 7,16 1,20%
terra-luna
Terra Luna Classic (LUNC) 0,000099 3,76%
litecoin
Litecoin (LTC) 77,75 1,23%
chainlink
Chainlink (LINK) 13,06 0,58%
bitcoin-cash
Bitcoin Cash (BCH) 432,85 2,15%
algorand
Algorand (ALGO) 0,176015 1,47%
matic-network
Polygon (MATIC) 0,651274 0,67%
stellar
Stellar (XLM) 0,104406 0,92%
cosmos
Cosmos Hub (ATOM) 7,59 1,83%
filecoin
Filecoin (FIL) 5,52 2,30%
tron
TRON (TRX) 0,112483 0,78%
ethereum-classic
Ethereum Classic (ETC) 25,32 0,18%
dai
Dai (DAI) 0,933352 0,10%
tezos
Tezos (XTZ) 0,906451 0,51%
monero
Monero (XMR) 117,65 2,51%