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

You might be interested in

LEAVE YOUR COMMENT

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

tether
Tether (USDT) 0,823745 0,15%
usd-coin
USD Coin (USDC) 0,823745 0,48%
zcash
Zcash (ZEC) 259,31 8,28%
tezos
Tezos (XTZ) 5,20 9,58%
uniswap
Uniswap (UNI) 32,81 2,82%
bitcoin
Bitcoin (BTC) 42.035,71 11,18%
bitcoin-cash
Bitcoin Cash (BCH) 1.092,69 16,01%
ethereum
Ethereum (ETH) 3.286,18 7,50%
litecoin
Litecoin (LTC) 270,61 15,35%
dash
Dash (DASH) 312,47 10,77%
xrp
XRP (XRP) 1,12 10,21%
cardano
Cardano (ADA) 1,38 6,43%
chainlink
Chainlink (LINK) 36,41 9,93%
compound-governance-token
Compound (COMP) 646,52 10,47%
cosmos
Cosmos (ATOM) 20,38 9,45%
dai
Dai (DAI) 0,821785 0,12%
monero
Monero (XMR) 340,45 10,91%
omisego
OMG Network (OMG) 8,42 14,08%
polkadot
Polkadot (DOT) 33,77 1,61%
siacoin
Siacoin (SC) 0,027086 14,29%
stellar
Stellar (XLM) 0,520805 10,26%
aave
Aave (AAVE) 494,81 18,11%
aragon
Aragon (ANT) 7,04 14,97%
basic-attention-token
Basic Attention Token (BAT) 1,02 10,92%
balancer
Balancer (BAL) 53,59 9,59%
filecoin
Filecoin (FIL) 100,88 14,91%
waves
Waves (WAVES) 27,74 2,90%
kusama
Kusama (KSM) 463,06 21,08%
yearn-finance
yearn.finance (YFI) 59.200,08 17,98%
curve-dao-token
Curve DAO Token (CRV) 3,16 12,23%
nano
Nano (NANO) 9,31 25,67%
tron
TRON (TRX) 0,103574 12,96%
flow
Flow (FLOW) 20,41 10,91%
icon
ICON (ICX) 1,84 11,15%
kyber-network
Kyber Network Crystal Legacy (KNCL) 2,59 12,60%
havven
Synthetix Network Token (SNX) 17,50 16,51%
qtum
Qtum (QTUM) 17,58 15,90%
kava
Kava.io (KAVA) 4,63 10,33%
decentraland
Decentraland (MANA) 1,07 8,70%
algorand
Algorand (ALGO) 1,12 8,17%
melon
Enzyme (MLN) 90,32 11,57%
ethereum-classic
Ethereum Classic (ETC) 77,26 15,81%
gnosis
Gnosis (GNO) 218,28 1,45%
keep-network
Keep Network (KEEP) 0,442532 10,67%
lisk
Lisk (LSK) 6,02 17,01%
ocean-protocol
Ocean Protocol (OCEAN) 1,05 9,72%
the-graph
The Graph (GRT) 1,12 8,95%
energy-web-token
Energy Web Token (EWT) 13,21 12,89%
dogecoin
Dogecoin (DOGE) 0,368947 9,24%
pax-gold
PAX Gold (PAXG) 1.507,13 1,15%