
# Cardano Example Dapp

## **List all registrations on Dandelion Network (GCFS)**

Search for all matching json files with Node Group definitions on all GCFS resources on-chain. These files are 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/List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS).html)
-  Visit [HTML+React Dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS)_react.html)
-  Visit [Native HTML dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS)_nolib.html)
-  Run [Standalone URL dapp connection](https://wallet.gamechanger.finance/api/2/run/1-H4sIAAAAAAAAA2VSwW7bMAz9FUGXtkCcIMmSOr0VLVIEGIJiXU_DDoxE2VptyaDkdlngfx-lJG2H3UzqPfK9Rx9ktLFBeSO_2hAFNI0grPiTIFrvgvBO3IPT2HAlthjfPL2Iy4e79dOVHEmNQZHtEpRHPCGQqoXxlAe1EFVtXSV-BeYa22AQbzbWYus1igfyfSc0Guvs-6pES7NZRPA9KUzdQtVg3Vh8rzHgaQ4Qij6gzst2oF7QadEhktA2KP-KtP9H-kjEGnmbQsfWGvuHqbePGxGQXq3CPOYOSIPzbCvuuxTJ0RvXQFWQNwcJIWAsHLTpVZ9nMyCJKjqINfcnE-WdsdUk2cwuxymAM-rE_u9xz34Lx92iSu1ic8-oGezALPX1HBflvFTGrKZTpU1plsvZisspTleLhTZzMLtydT0vcfalNCXKYSTxd-cp3oYsNQKvIIw9uWSk5T3cbyDEBKU-d91ZUzZ7DiEfdR2Yz4Gv-Z5IHVkXn79tGGegCTiSHRC0XP7gkHbh8ZjEocJ4eZHCG78HdHE18MZTlNtjFp9wHwln4M8hpeb4t9h_ktSConSmLPvEVqBqHH84yPRh-AtxxUvy4AIAAA)

## Source code:

- dapp connection code: [GCScript DSL](List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS).gcscript)
- frontend (using @gamechanger-finance/gc): [HTML+JS dapp](List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS).html)
- frontend (using @gamechanger-finance/gc): [HTML+React dapp](List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS)_react.html)
- frontend (without official library): [Native HTML dapp](List%20all%20registrations%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": "List all registrations on Dandelion Network (GCFS)",
  "description": "Search for all matching json files with Node Group definitions on all GCFS resources on-chain. These files are used for backend peer discovery on Dandelion, the decentralized API service for Cardano",
  "type": "script",
  "args": {
    "asset-name": "dandelion",
    "file-path": "//config/NodeGroup.json",
    "file-name": "NodeGroup.json",
    "your-node-group-ID": "2abaf6d73e5838cff911cdf8f6629cff1e1955df3afb89738e248f8e"
  },
  "exportAs": "data",
  "return": {
    "mode": "last"
  },
  "run": {
    "nodeGroups": {
      "type": "searchFs",
      "useFingerprintURIs": false,
      "params": [
        {
          "absPath": "{get('args.file-path')}"
        },
        {
          "assetName": "{get('args.asset-name')}"
        }
      ]
    },
    "finally": {
      "type": "macro",
      "run": "{get('cache.nodeGroups')}"
    }
  }
}
```

## 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](List%20all%20registrations%20on%20Dandelion%20Network%20(GCFS).png)](https://gamechangerfinance.github.io/gamechanger.wallet/examples/List%20all%20registrations%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 
    
