Skip to content

UI Helpers

Base Url: box-v3.api.decent.xyz/api

Developers can access all of the functionality in Decent's hooks directly via API requests. This is particularly useful for any team primarily building with Decent server side.

All requests will require your Decent API key.

User Token Balances

Endpoint: /getTokens

Query Parameters

ParameterDescriptionTypeRequiredDefault
addressWallet address to evaluate.0x${string}trueN/A
chainIdId of chain on which to return tokens.ChainIdtrueN/A

The useUsersBalances hook enables developers to return token balances across chains in a single call. Loop through chain Id's to mimic that functionality via API requests.