Balances
Table of contents
Constructors
Methods
Constructors
constructor
• new Balances()
Methods
getBalance
▸ Static getBalance(__namedParameters): CancelablePromise<TokenBalanceReponseDTO>
throws ApiError
Parameters
| Name | Type | Description |
|---|---|---|
__namedParameters | Object | - |
__namedParameters.chainId | ChainId | ID of chain, e.g Ethereum Mainnet = 1 |
__namedParameters.tokenAddress | string | Token contract address on network, e.g USDC on Ethereum Mainnet |
__namedParameters.userAddress | string | Address of the user |
Returns
CancelablePromise<TokenBalanceReponseDTO>
TokenBalanceReponseDTO Returns the balance of the token on any given chain
Defined in
socket-v2-sdk/src/client/services/Balances.ts:31
getBalances
▸ Static getBalances(__namedParameters): CancelablePromise<Balance>
throws ApiError
Parameters
| Name | Type |
|---|---|
__namedParameters | Object |
__namedParameters.userAddress | string |
Returns
Balance Returns the balance of all tokens for a user address on all supported chains