https://github.com/chainsafe/game-web3wallet
https://github.com/chainsafe/game-web3wallet
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chainsafe/game-web3wallet
- Owner: ChainSafe
- License: lgpl-3.0
- Created: 2021-11-02T16:04:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T19:46:00.000Z (about 2 years ago)
- Last Synced: 2025-10-02T02:53:28.894Z (4 months ago)
- Language: JavaScript
- Homepage: https://chainsafe.github.io/game-web3wallet/
- Size: 38.7 MB
- Stars: 11
- Watchers: 32
- Forks: 65
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Game Web3 Wallet
Unity Wallet. Build iOS, Android and Desktop.
Link to this site to
- Sign a message
- Send a transaction
## Installation
`yarn` to install
`yarn start` to begin
`yarn build` to compile
## Verify Login
| Params | Description |
| --------------- | --------------------- |
| &action=sign | action to verify user |
| &message=hello | message to sign |
example to sign a message: `http://localhost:1234/?action=sign&message=helloworld`
## Send a Transaction
Create a link with the following params
| Params | Description |
| ----------------- | ---------------------------------------------------------------- |
| &action=send | action to send transaction |
| &chainId=4 | 1 for mainnet, 4 for rinkeby etc |
| &to=0xAcc0nt | use either account or contract address |
| &value=1000 | value in wei to send |
| &data=0x01 | data for contract interaction. leave empty if sending to account |
| &gasLimit=21000 | gas limit. leave empty to for wallet to estimate |
| &gasPrice=5000000 | gas Price. leave empty to for wallet to estimate |
example to send eth: `http://localhost:1234/?action=send&chainId=4&to=0xdD4c825203f97984e7867F11eeCc813A036089D1&value=100000000000000`
example to interact with contract: `http://localhost:1234/?action=send&chainId=4&to=0x7286Cf0F6E80014ea75Dbc25F545A3be90F4904F&value=0&data=0xb76b97230000000000000000000000000000000000000000000000000000000000000001`