
# Cardano Example Dapp

## **Read your registration on Dandelion Network (GCFS)**

Reads a json file with your Node Group definition from an on-chain GCFS resource, used for backend peer discovery on Dandelion, the decentralized API service for Cardano


## Try it online: 

-  Visit [HTML+JS Dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS).html)
-  Visit [HTML+React Dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS)_react.html)
-  Visit [Native HTML dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS)_nolib.html)
-  Run [Standalone URL dapp connection](https://wallet.gamechanger.finance/api/2/run/1-H4sIAAAAAAAAA52RwW7bMAyGX0XQpS0Qx0jSpE5OKxq06KUYtidgJMrWaksGJbdNA7_7SKcttsMuA3Qh-evX91MnnX1uUe_0DwSrjnEgRVj7lAmyj0Hx2UOw2ErxhPk10rO6fLi7_3mlZ9piMuR7UX5YJAXqV2Kt8y2qV5-bs-lTtKgeKA69suh88JO7o9gpkFcK04APSowZIPEVgzM1JLTKRVIHMM8YrOoRSVmfTHxBOv5FN1O5QTY3GBi-9e989fb7o0pIL97gZHMHZCFEJs_HXlKf8bkGqpPenTSkhLkI0MnUfnqzQPIUPeSG-2VpYnC-LiXVFGoumVkVuFHU0ike96xcwgHcxt6scF2tKuPcdrEw1lVus1luuVzgYrteW7cCd6i2N6sKl9eVq1CPM41vfaR8myaQDOxOmAcKgtnxO9xvIWWR0jB1wyeOFB8JfXd22Z8tZOMylTg8rY1Lu7L8X8z514a-tZAx5d2_VjOOssIAbXv8A64DQ_IbE78-1ZgvLwyYBudfUeZCenE1ssP4Gx4iS5auAgAA)

## Source code:

- dapp connection code: [GCScript DSL](Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS).gcscript)
- frontend (using @gamechanger-finance/gc): [HTML+JS dapp](Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS).html)
- frontend (using @gamechanger-finance/gc): [HTML+React dapp](Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS)_react.html)
- frontend (without official library): [Native HTML dapp](Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS)_nolib.html)

Dapp code was autogenerated by [Playground IDE in GameChanger Wallet ](https://wallet.gamechanger.finance/playground)

## GCScript code (dapp connection):
```json
{
  "title": "Read your registration on Dandelion Network (GCFS)",
  "description": "Reads a json file with your Node Group definition from an on-chain GCFS resource, used for backend peer discovery on Dandelion, the decentralized API service for Cardano",
  "type": "script",
  "args": {
    "asset-name": "dandelion",
    "file-path": "//config/NodeGroup.json",
    "node-group-ID": "2abaf6d73e5838cff911cdf8f6629cff1e1955df3afb89738e248f8e"
  },
  "exportAs": "data",
  "return": {
    "mode": "last"
  },
  "run": {
    "nodeGroup": {
      "type": "importAsData",
      "from": {
        "file": "gcfs://2abaf6d73e5838cff911cdf8f6629cff1e1955df3afb89738e248f8e.dandelion@latest://config/NodeGroup.json"
      }
    },
    "finally": {
      "type": "macro",
      "run": "{get('cache.nodeGroup.file')}"
    }
  }
}
```

## Run standalone QR dapp connection: 

You can use [Playground IDE in GameChanger Wallet ](https://wallet.gamechanger.finance/playground) 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](Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS).png)](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Read%20your%20registration%20on%20Dandelion%20Network%20(GCFS).png)

## Resources
- [How to connect?](https://www.npmjs.com/package/@gamechanger-finance/gc)
- [Docs and examples on Github](https://github.com/GameChangerFinance/gamechanger.wallet/)
- [GCScript documentation](https://wallet.gamechanger.finance/doc/api/v2)
- [Playground IDE in GameChanger Wallet ](https://wallet.gamechanger.finance/playground)
- [Tutorials on Youtube](https://www.youtube.com/@gamechanger.finance)
- [Support on Discord](https://discord.gg/vpbfyRaDKG)
- [News on Twitter](https://twitter.com/GameChangerOk)
- [Website](https://gamechanger.finance)

## License
MIT 
    
