Search
⌃K

Balances

Returns all token balances of a user for specified chain

v2/balances

How this endpoint is to be used :
  • This endpoint is used to return token balances of a user to filter tokens owned by a user in the token list.
get
https://api.socket.tech/v2
/balances
Returns the token balances of an address
API-KEY needs to be passed in the headers while making the GET request

Description of response parameters

Parameter
Description
success
Indicates successful response from endpoint, as intended.
chainId
ID of chain, for example xDAI = 100
address
Contract address of token
name
Name of token
symbol
Symbol of token
decimals
Decimal places for amount supported by token
amount
Balance of token in user's wallet
icon
Icon URL of the token
TEST QUERY :