Flash

Get wallet balances

Changed on

Fetch the token balances a wallet holds as a flat array, with chain on every row.

An EVM address returns balances across every EVM chain Flash supports; a Solana address returns Solana balances. Each row's address and chain feed directly into POST /quote as targetAsset/contraAsset and targetChain/contraChain, and balance is in the same units as qty.

get/balances/{address}

Request

  • Base URL
    https://flash.definitive.fi/v1
  • Auth
    API key in header x-definitive-api-key

Path parameters

addressstring required

Wallet address to look up. An EVM address returns balances across every EVM chain Flash supports; a Solana address returns Solana balances.

Example:0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Response

Balances returned successfully

Example response

{
  "balances": [
    {
      "chain": "ethereum",
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "symbol": "USDC",
      "tokenDecimals": 6,
      "balance": "25.5",
      "notional": "25.50",
      "priceChange24h": "-0.0342"
    }
  ]
}

Changes

    • warning

      added the new elysium enum value to the ////// response property for the response status

    • warning

      added the new arc enum value to the ////// response property for the response status