chain

Get Sui Balance

Retrieves the current or historical token balance for a specified SUI blockchain address, with the option to specify a block number for precise point-in-time analysis.

💡 Compute Unit Value: 185 (Fixed)

get/defi/v1/chain/getsuibalance

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/chain/getsuibalance
  • Auth
    API key in header X-API-Key

Query parameters

chainId'101' | '102' | '103'

The unique ID to direct queries or transactions to the correct blockchain. Find more here.

Example:101
chainSymbolstring

The abbreviated chain name for queries or transactions.

Example:ETH
blockNumberstring

The block number for which the balance is to be retrieved. Defaults to the latest block if not specified.

Example:100000
addressstring required

The public address for which the balance is to be retrieved.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
tokenAddressstring

The address of the token to retrieve the balance for.

Example:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
vsCurrenciesstring

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

Example:usd,eur,gbp

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "balance": "444322190134",
    "prices": {
      "usd": [
        {
          "0x2::sui::SUI": "3.7069046350777892"
        }
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.