NodeChain EN
  • NodeChain
  • Learn
    • About NodeChain
    • Infrastructure
      • Connector
        • Wrapper APIs
      • Nodes
      • Startup script
    • License
    • Ecosystem
      • Supported APIs
      • Integrations
      • Acknowledgments
  • Develop
    • Quick start
      • Initial setup
      • Using command-line script
        • Commands
    • How-to
      • Run tests locally
      • Lint automatically with hooks
      • Integrate a new Blockchain/API
      • Connect to a public node
    • Wrapper API definition file
    • Contributing
  • Reference
    • API Reference
      • Admin
      • General Endpoints
      • REST Wrapper API
        • Bitcoin Cash
        • Bitcoin
        • Ethereum
          • ERC-20
      • JSON-RPC Wrapper API
        • Bitcoin Cash
        • Bitcoin
        • Ethereum
          • ERC-20
      • Real-Time Wrapper API
        • Bitcoin
        • Ethereum
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. REST Wrapper API
  4. Ethereum

ERC-20

ERC-20 endpoints

PreviousEthereumNextJSON-RPC Wrapper API

Last updated 3 years ago

Supported methods for Ethereum. Please note that to use these methods you must specify the API token, eth in this case, the network on which you want to make the call and the standard name, in this case erc20. For example, if you want to know the balance of a Bitcoin Cash address in the main network, the corresponding endpoint is as follows: http://server/eth/mainnet/erc20/getAddressBalance

Return the balance of the given addresses of the given ERC-20 Contracts

post

Return the balance of the given addresses of the given ERC-20 Contracts

Body
addressesstring[]Required

Ethereum address

Example: 0x625ACaEdeF812d2842eFd2Fb0294682A868455bd
contractAddressesstring[]Required

List of the ERC-20 Smart contract addresses

Example: 0xdAC17F958D2ee523a2206206994597C13D831ec7
Responses
200
Successful response
application/json
post
POST /erc20/getAddressesBalance HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 127

{
  "addresses": [
    "0x625ACaEdeF812d2842eFd2Fb0294682A868455bd"
  ],
  "contractAddresses": [
    "0xdAC17F958D2ee523a2206206994597C13D831ec7"
  ]
}
200

Successful response

{
  "ANY_ADDITIONAL_PROPERTY": [
    {
      "address": "0x625ACaEdeF812d2842eFd2Fb0294682A868455bd",
      "balance": {
        "confirmed": "10000",
        "unconfirmed": "0"
      }
    }
  ]
}