omnia_getAssetBalance
Returns a list of assets owned by the wallet, including token details and current balance. Receives up to 100 contract addresses used to check the balance of the wallet. If no contract addresses are provided, it will use OMNIA's list of most used contracts per chain.
Parameters
DATA
, 20 Bytes - wallet. The wallet address that is checked for it's holdings. REQUIREDArray of DATA
, 20 Bytes - contracts. The contract addresses of the tokens for which the wallet is checked.
Beta version note: The feature of not providing a contracts
and relying solely on OMNIA's token contracts collection is still in beta, so you might experience some Internal Server Error responses. To avoid that, until the stable version is released, we recommend explicitly specifying token contract addresses in the params
field of the request body.
Returns
Array
- assets. Token holdings of the wallet address. Only tokens for which the balance is > 0 are returned.
Example
Request
Response
Last updated