Skip to main content

Cardano Example Dapp

Address Impersonator​

Create a workspace to impersonate a wallet without having their private keys. Wallet operations will trigger multisig transactions. Use to remotely control a wallet or be able to build transactions in behalf of the owner

Try it online:​

Source code:​

Dapp code was autogenerated by Playground IDE in GameChanger Wallet

GCScript code (dapp connection):​

{
"type": "script",
"title": "Address Impersonator",
"description": "Create a workspace to impersonate a wallet without having their private keys. Wallet operations will trigger multisig transactions. Use to remotely control a wallet or be able to build transactions in behalf of the owner",
"args": {
"name": "MyOtherWallet",
"address": "addr1q98f06pcrsn8x03uw0vlejw684fcu02waffvfscdsz0djgqd6j6v0fc04n5ehg292yxvs292vesrqqmxqfnp7yuwn7yq2vsyn7"
},
"run": {
"getAddressInfo": {
"type": "macro",
"run": "{getAddressInfo(get('args.address'))}"
},
"usingWorkspaces": {
"type": "loadConfig",
"updateId": "addresses-exercise-1",
"layers": [
{
"type": "Workspace",
"items": [
{
"namePattern": "Multisigs",
"titlePattern": "Multisigs",
"descriptionPattern": "My multisig addresses"
}
]
},
{
"type": "Address",
"workspaceIds": [
"Multisigs"
],
"items": [
{
"namePattern": "{get('args.name')}",
"spendPubKeyHashHex": "{get('cache.getAddressInfo.paymentKeyHash')}",
"stakePubKeyHashHex": "{get('cache.getAddressInfo.stakingKeyHash')}"
}
]
}
]
}
}
}

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