
# Cardano Example Dapp

## **Get Wallet Type**

Getting extra information about your current wallet type, such as brand, default staking, and more.


## Try it online: 

-  Visit [HTML+JS Dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Get%20Wallet%20Type.html)
-  Visit [HTML+React Dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Get%20Wallet%20Type_react.html)
-  Visit [Native HTML dapp](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Get%20Wallet%20Type_nolib.html)
-  Run [Standalone URL dapp connection](https://wallet.gamechanger.finance/api/2/run/1-H4sIAAAAAAAAAy2OSw6DMAxEr2JljXqA7rrqBSp1bYihUUOCnIkKQty95rOyPdbMvNUhIIq7u6eA3hyjjdcyiWucl9JpmBByOv8IaSCZoUwh9VlH3n_Eba6gJVelrqpKAv3OIFhQQ6V2H-JCrXLyDXnpuUZQAX8tsCFTacwqN-vcHVZ2Ftst85QVj2KaZ7ApWo1mdeNyUNp2WQbBxX0QmgNaZdu2P28-HF3jAAAA)

## Source code:

- dapp connection code: [GCScript DSL](Get%20Wallet%20Type.gcscript)
- frontend (using @gamechanger-finance/gc): [HTML+JS dapp](Get%20Wallet%20Type.html)
- frontend (using @gamechanger-finance/gc): [HTML+React dapp](Get%20Wallet%20Type_react.html)
- frontend (without official library): [Native HTML dapp](Get%20Wallet%20Type_nolib.html)

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

## GCScript code (dapp connection):
```json
{
  "title": "Get Wallet Type",
  "description": "Getting extra information about your current wallet type, such as brand, default staking, and more.",
  "type": "script",
  "exportAs": "data",
  "run": {
    "myType": {
      "type": "getType",
      "extras": true
    }
  }
}
```

## 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](Get%20Wallet%20Type.png)](https://gamechangerfinance.github.io/gamechanger.wallet/examples/Get%20Wallet%20Type.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 
    
