Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
/ erc20-transfer Public archive

Transfer ERC20 compliant token from my wallet to arbitrary address

Notifications You must be signed in to change notification settings

858chain/erc20-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get any erc20 token balance of arbitray address and transfer token

Examples

return all addresses in wallet

$ curl -sSL localhost:8081/v1/addresses  | jq  .
{
  "message": [
    "0x3b8830D7EaA1D98FDa4E67A8607877537241d71c",
    "0x6a151f72Ab86afe61232d2368f41115E8c5a5B7B"
  ]
}

Get ERC20 Balance of Address

$ 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

curl -sSL 'localhost:8081/v1/transfer?contract=0x722dd3F80BAC40c951b51BdD28Dd19d435762180&from=0x3b8830D7EaA1D98FDa4E67A8607877537241d71c&to=0x6a151f72ab86afe61232d2368f41115e8c5a5b7b&amount=0.01'  | jq  .

About

Transfer ERC20 compliant token from my wallet to arbitrary address

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published