Skip to main content

Cardano Example Dapp

Share your public key information​

This dapp connection will ask your spending and staking public key hashes

Try it online:​

Source code:​

Dapp code was autogenerated by Playground IDE in GameChanger Wallet

GCScript code (dapp connection):​

{
"type": "script",
"title": "Share your public key information?",
"description": "This dapp connection will ask your spending and staking public key hashes",
"exportAs": "data",
"return": {
"mode": "last"
},
"run": {
"getSpendCredential": {
"type": "getSpendingPublicKey"
},
"getStakeCredential": {
"type": "getStakingPublicKey"
},
"finally": {
"type": "macro",
"run": {
"spend": "{get('cache.getSpendCredential.pubKeyHashHex')}",
"stake": "{get('cache.getStakeCredential.pubKeyHashHex')}"
}
}
}
}

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