Cardano Example Dapp
UTXO Generator
Generates required amount of UTXOs in your wallet to improve multi-transaction concurrency capabilities, for dapps and GCFS filesystem write events. A GameChanger Wallet Dapp Demo. https://gamechanger.finance/
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": "UTXO Generator",
"description": "Generates required amount of UTXOs in your wallet to improve multi-transaction concurrency capabilities, for dapps and GCFS filesystem write events. A GameChanger Wallet Dapp Demo. https://gamechanger.finance/",
"type": "script",
"exportAs": "data",
"isolateCache": true,
"run": {
"address": {
"type": "getCurrentAddress"
},
"build": {
"type": "buildTx",
"title": "UTXO Generator",
"name": "UTXO Generator",
"description": "Generates required amount of UTXOs in your wallet to fulfill future tasks",
"tx": {
"outputs": [
{
"address": "{get('cache.address')}",
"assets": [
{
"assetName": "ada",
"policyId": "ada",
"quantity": "1000000"
}
]
}
],
"options": {
"coinSelection": "FMR",
"changeOptimizer": "BAL",
"autoProvision": {
"workspaceNativeScript": true
},
"autoOptionalSigners": {
"nativeScript": true
}
}
}
},
"sign": {
"type": "signTxs",
"namePattern": "UTXO Generator Signed",
"detailedPermissions": false,
"txs": [
"{get('cache.build.txHex')}"
]
},
"submit": {
"type": "submitTxs",
"mode": "parallel",
"namePattern": "UTXO Generator Submittted",
"txs": "{get('cache.sign')}"
}
}
}
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
