Coder Social home page Coder Social logo

cdle / erc20-transfer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 858chain/erc20-transfer

0.0 0.0 0.0 128 KB

Transfer ERC20 compliant token from my wallet to arbitrary address

Shell 1.88% Ruby 6.27% Go 87.91% Makefile 2.64% Dockerfile 1.30%

erc20-transfer's Introduction

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  .

erc20-transfer's People

Contributors

cmingxu avatar dependabot[bot] avatar xiaods avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.