https://github.com/858chain/erc20-transfer
Transfer ERC20 compliant token from my wallet to arbitrary address
https://github.com/858chain/erc20-transfer
erc20 eth ethereum geth transfer
Last synced: 5 months ago
JSON representation
Transfer ERC20 compliant token from my wallet to arbitrary address
- Host: GitHub
- URL: https://github.com/858chain/erc20-transfer
- Owner: 858chain
- Archived: true
- Created: 2019-05-05T14:53:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T21:55:08.000Z (over 3 years ago)
- Last Synced: 2024-06-19T05:55:16.760Z (almost 2 years ago)
- Topics: erc20, eth, ethereum, geth, transfer
- Language: Go
- Size: 154 KB
- Stars: 10
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
Awesome Lists containing this project
README
Get any erc20 token balance of arbitray address and transfer token
## Examples
### return all addresses in wallet
```bash
$ curl -sSL localhost:8081/v1/addresses | jq .
{
"message": [
"0x3b8830D7EaA1D98FDa4E67A8607877537241d71c",
"0x6a151f72Ab86afe61232d2368f41115E8c5a5B7B"
]
}
```
### Get ERC20 Balance of Address
```bash
$ curl -sSL 'localhost:8081/v1/getbalance?contract=0x722dd3F80BAC40c951b51BdD28Dd19d435762180&address=0x3b8830D7EaA1D98FDa4E67A8607877537241d71c' | jq .
{
"message": {
"balance": 0,
"decimal": 18,
"name": "Test Standard Token",
"symbol": "TST"
}
}
```
### transfer erc20 token to target address
```bash
curl -sSL 'localhost:8081/v1/transfer?contract=0x722dd3F80BAC40c951b51BdD28Dd19d435762180&from=0x3b8830D7EaA1D98FDa4E67A8607877537241d71c&to=0x6a151f72ab86afe61232d2368f41115e8c5a5b7b&amount=0.01' | jq .
```