Cardano Example Dapp
Convert Bech32 address into Plutus Data
Convert your current address from Bech32 representation into Plutus Data object (back and forth). Also exports address information, hexadecimal representation and hash
Try it online:
- Visit HTML+JS Dapp
- Visit HTML+React Dapp
- Visit Native HTML dapp
- Run Run in Wallet…Open in IDE…
Source code:
- dapp connection code: GCScript DSL
- frontend (using @gamechanger-finance/gc): HTML+JS dapp
- frontend (using @gamechanger-finance/gc): HTML+React dapp
- frontend (without official library): Native HTML dapp
Dapp code was autogenerated by Playground IDE in GameChanger Wallet
GCScript code (dapp connection):
{
"title": "Convert Bech32 address into Plutus Data",
"description": "Convert your current address from Bech32 representation into Plutus Data object (back and forth). Also exports address information, hexadecimal representation and hash",
"type": "script",
"exportAs": "data",
"run": {
"address": {
"type": "getCurrentAddress"
},
"addressInfo": {
"type": "macro",
"run": "{getAddressInfo(get('cache.address'))}"
},
"addressAsPlutusData": {
"type": "macro",
"run": "{addressBech32ToPlutusDataObj(get('cache.address'))}"
},
"addressAsBech32": {
"type": "macro",
"run": "{addressPlutusDataObjToBech32(get('cache.addressAsPlutusData'))}"
},
"addressAsPlutusDataPlusInfo": {
"type": "plutusData",
"data": {
"fromJSON": {
"schema": 1,
"obj": "{get('cache.addressAsPlutusData')}"
}
}
}
}
}
Run standalone QR dapp connection:
You can use Playground IDE in GameChanger Wallet in QR URL Transport mode to capture results
Resources
- How to connect?
- Docs and examples on Github
- GCScript documentation
- Playground IDE in GameChanger Wallet
- Tutorials on Youtube
- Support on Discord
- News on Twitter
- Website
License
MIT
