Cardano Example Dapp
Simple Kobayashi Maru Multi Signing Demo
Builds and signs 2 transactions with unobtainable foreign keys. Triggers the default multisig strategy to obtain remote signatures through Roundtable and Unimatrix
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": "Simple Kobayashi Maru Multi Signing Demo",
"description": "Builds and signs 2 transactions with unobtainable foreign keys. Triggers the default multisig strategy to obtain remote signatures through Roundtable and Unimatrix",
"type": "script",
"exportAs": "KobayashiMaruResults",
"return": {
"mode": "last"
},
"run": {
"tx1": {
"type": "buildTx",
"tx": {
"requiredSigners": {
"IOHK": "3ecb73dee12d39d8787c9b87e71e857c6dd487d4fe7c5173e0bb8c74",
"Emurgo": "1d46f358ba291245db79a6b953703a131e688ab2054e6a85b742d621",
"CardanoFoundation": "ad0a0ecf8ae61aba9b75d337b7348a4ad5d1a92aad9d8aeaf04b28d2"
}
}
},
"tx2": {
"type": "buildTx",
"tx": {
"requiredSigners": {
"IOHK": "3ecb73dee12d39d8787c9b87e71e857c6dd487d4fe7c5173e0bb8c74",
"Emurgo": "1d46f358ba291245db79a6b953703a131e688ab2054e6a85b742d621",
"CardanoFoundation": "ad0a0ecf8ae61aba9b75d337b7348a4ad5d1a92aad9d8aeaf04b28d2"
}
}
},
"stage2_sign_transaction": {
"detailedPermissions": false,
"type": "signTxs",
"namePattern": "Signed Demo Transaction",
"noLoop": false,
"partialSign": true,
"txs": [
"{get('cache.tx1.txHex')}",
"{get('cache.tx2.txHex')}"
]
},
"stage3_submit_transaction": {
"type": "submitTxs",
"namePattern": "Submitted Demo Transaction",
"txs": "{get('cache.stage2_sign_transaction')}"
},
"stage4_export_results": {
"type": "macro",
"run": {
"tx1": "{get('cache.tx1.txHash')}",
"tx2": "{get('cache.tx2.txHash')}"
}
}
}
}
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
