Skip to main content

BalancesController_getBalance

GET 

https://api.socket.tech/v2/balances/token-balance

BalancesController_getBalance

Request​

Query Parameters

    tokenAddress stringrequired

    Token contract address on network, e.g USDC on Ethereum Mainnet

    Example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
    chainId stringrequired

    ID of chain, e.g Ethereum Mainnet = 1

    Example: 1
    userAddress stringrequired

    Address of the user

    Example: 0x0E1B5AB67aF1c99F8c7Ebc71f41f75D4D6211e53

Responses​

Returns the balance of the token on any given chain

Schema

    success booleanrequired

    result

    object

    required

    chainId number
    tokenAddress string
    userAddress string
    balance string
    decimals number
    icon string
    symbol string
    name string
Loading...