Searchβ¦
Socket Overview
π‘
What is Socket?
π
Powered by Socket
π
Socket Liquidity Layer
π
SocketLL Overview
β
How SocketLL works?
π‘
Security
β
SocketLL V/S XYZ
π
Roadmap
π¬
FAQ
π
Use SocketLL
π½
Socket Data Layer
Socket DL overview
πΉ
Socket API
Introduction
Versioning
Errors
Contracts
V1
V2
Guides
Health
App
Token Lists
Approvals
Quote
Routes
Balance
Token Balance
Balances
Supported
Types
Additional Resources
π¨
Brand Assets
Join Discord
Support
API Status
Audits
FAQ
Knowledge Base
Powered By
GitBook
Token Balance
Returns user balance of token for the specified chain
v2/balances/token-balance
How this endpoint is to be used :
This endpoint is used to return token balance of a user
The "Max" button on the
Bungee App
also requires this API to allow the user to easily input max token balance for bridging.
get
https://api.socket.tech/v2
/balances/token-balance
Returns the token balances of an address
Description of response parameters
Parameter
Description
success
Indicates successful response from endpoint, as intended.
chainId
ID of chain, for example xDAI = 100
tokenAddress
Contract address of token
userAddress
Address of user
name
Name of token
symbol
Symbol of token
decimals
Decimal places for amount supported by token
balance
Balance of token in user's wallet
icon
Icon URL of the token
β
TEST QUERY :
β
https://api.socket.tech/v2/swagger/#/Balances/BalancesController_getBalance
β
Previous
Balance
Next
Balances
Last modified
1mo ago
Copy link
Outline
get
Returns the token balances of an address
Description of response parameters