Skip to main content

balance

Function

Get the asset balance of the specified token on everPay for the corresponding account.

Parameter

{{endpoint}}/balance/{{tokenTag}}/{{account}}

Query FieldMandatoryDescription
tokenTagYESThe unique identifier of the token, which can be viewed through the info API.
accountYESeverPay Account ID.

Return Fields

FieldDescription
accideverPay Account ID.
balanceThe designated token asset balance of this everPay account, as follows BalanceItem Field Description.

BalanceItem Field Description

FieldDescription
tagThe unique identifier of the token, Generated by combining chainType, symbol, id from Token by -.
amountAsset balance, type uint.
decimalstoken decimals

Example

curl --location --request GET 'https://api.everpay.io/balance/ethereum-eth-0x0000000000000000000000000000000000000000/0x2ca81e1253f9426c62Df68b39a22A377164eec92'

Example Return

{
"accid": "0x2ca81e1253f9426c62Df68b39a22A377164eeC92",
"balance": {
"tag": "ethereum-eth-0x0000000000000000000000000000000000000000",
"amount": "0",
"decimals": 18
}
}