Skip to main content

Query currency balance

POST 

/transaction/balance

Query the balance of all currencies in a specific contract address.

Request

Body

    chainId int32required

    Chain ID

    This is the platform internal ID, not the chain ID on the chain or from the wallet, can be obtained from Get Chain List interface

    contractAddress stringrequired

    Contract address

    Contract address for querying currency balance

Responses

OK

Schema

    code int32required

    Status code

    msg stringrequired

    Status message on success or error message on failure

    description string

    Detailed description when error

    data

    object[]

    required

    List of currency balances

  • Array [

  • currencyId int32required

    Currency ID

    Can be obtained from Get Currency List interface

    balance stringrequired

    Currency balance

    Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)

    currencyAddress stringrequired

    Currency address on the chain

    currencySymbol stringrequired

    Currency symbol

    precision int32required

    Currency decimals

  • ]

Loading...