Skip to content

Simple api to get balance Ethereum ERC20 tokens and Info about Ethereum ERC20 tokens

Notifications You must be signed in to change notification settings

SeptiyanAndika/TokenInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenInfo

Simple api to get balance Ethereum ERC20 tokens and Info about Ethereum ERC20 tokens

Config

To set Config provider and running port,

{
  "httpProvider":"https://kovan.infura.io",
  "port":3000
}

Get Token Info

This API response will show you the ERC20 token info.

http://localhost:3000/token/CONTRACT_ADDRESS
  • Response (JSON)
{
  "name": "Test Swipe Token",
  "symbol": "TSWIPE",
  "totalSupply": 10000000,
  "decimals": "18"
}

Get Balance Info

This API response will show Address Balance of ERC20 token.

http://localhost:3000/balance/CONTRACT_ADDRESS/USER_ADDRESS
  • Response (JSON)
{
  "symbol": "TSWIPE",
  "balance": 100
}

About

Simple api to get balance Ethereum ERC20 tokens and Info about Ethereum ERC20 tokens

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published