Skip to main content

Cardano Example Dapp

Script Requirements​

Using script requirement checks to only allow a certain user wallet context to run this script. Useful for 'sticky sessions' on dapps or for wallet type or network specific scripts

Try it online:​

Source code:​

Dapp code was autogenerated by Playground IDE in GameChanger Wallet

GCScript code (dapp connection):​

{
"title": "Script Requirements",
"description": "Using script requirement checks to only allow a certain user wallet context to run this script. Useful for 'sticky sessions' on dapps or for wallet type or network specific scripts",
"type": "script",
"exportAs": "data",
"require": {
"not": {
"walletTypeIn": [
"burner",
"gift"
]
},
"networkTag": "preprod"
},
"run": {
"message": {
"type": "data",
"value": "✅ Congrats! your wallet was allowed to run this script."
}
}
}

Run standalone QR dapp connection:​

You can use Playground IDE in GameChanger Wallet in QR URL Transport mode to capture results

This GCScript/URL is too large! make it shorter uploading parts to GCFS. Unable to generate QR code

Resources​

License​

MIT