Skip to main content

/getBalances

  • GET | POST /getBalances { ownerAddress, chainId } [{ token: “ETH”, balance: “12.00” }, …]

    POST Data:

    { 
    "ownerAddress": "0x1234...1234",
    "chainId" : 1,
    "contractType" : "payment"
    }

    Where:

    • ownerAddress - address of the owner (not a smart wallet address)
    • chainId - from previous step
    • contractType - check contract types page for more information

    Response:

    [ 
    {
    "tokenAddress" : "0x1233....1233",
    "balance" : "12300.00",
    "token" : "usdt",
    "symbol": "...",
    "name": "...",
    "price": "...",
    "image" : "..."
    },
    {
    "tokenAddress" : "0x0000....0000",
    "balance" : "300.00",
    "token" : "eth",
    "symbol": "...",
    "name": "...",
    "price": "...",
    "image" : "..."
    }
    ]

    Please notice that ETH token (native token) has the address 0x0000000000000000000000000000000000000000. It is not WETH