Get Coin Balances By Account

Query Template

Filtering Options

ParameterTypeDescription
whereobject특정 조건을 기준으로 결과를 필터링하는 객체.
limitinteger반환할 최대 결과 수.
offsetinteger결과의 시작 위치를 지정.
order_byobject결과를 정렬하는 기준을 지정하는 객체. 여러 필드를 기준으로 정렬할 수 있습니다.

Query Fields

ParameterTypeDescription
owner_addressstring소유자의 주소.
amountinteger자산의 양.
storage_idstring저장소 ID.
last_transaction_versioninteger마지막 트랜잭션 버전.
last_transaction_timestampstring마지막 트랜잭션 타임스탬프.
is_frozenboolean자산이 동결되었는지 여부.
metadataobject메타데이터 객체, 자산의 추가 정보 포함.
metadata.asset_typestring메타데이터 내 자산 유형.
metadata.creator_addressstring메타데이터 내 창작자 주소.
metadata.decimalsinteger메타데이터 내 소수점 이하 자릿수.
metadata.icon_uristring메타데이터 내 아이콘 URI.
metadata.namestring메타데이터 내 자산 이름.
metadata.project_uristring메타데이터 내 프로젝트 URI.
metadata.symbolstring메타데이터 내 자산 심볼.
metadata.token_standardstring메타데이터 내 토큰 표준.
metadata.maximum_v2integer최대 공급량.
metadata.supply_v2integer현재 공급량.

Example

Request Example

query MyQuery {
  current_fungible_asset_balances(
    limit: 10
    offset: 0
    where: {
      owner_address: {
        _eq: "0x274c398a921b8e2ba345feac3039e1c8b196a7eb1395cdd3584af3a85eb9ec50"
      }
    }
  ) {
    owner_address
    amount
    storage_id
    last_transaction_version
    last_transaction_timestamp
    is_frozen
    metadata {
      asset_type
      creator_address
      decimals
      icon_uri
      name
      project_uri
      symbol
      token_standard
      maximum_v2
      supply_v2
    }
  }
}

Response Example

{
  "data": {
    "current_fungible_asset_balances": [
      {
        "owner_address": "0x274c398a921b8e2ba345feac3039e1c8b196a7eb1395cdd3584af3a85eb9ec50",
        "amount": 3620886,
        "storage_id": "0xa8fbefaae9cecee45ec105ddd23207f836420c7cd244a119b8da855eccdef96d",
        "last_transaction_version": 102299947,
        "last_transaction_timestamp": "2023-03-15T09:54:27",
        "is_frozen": false,
        "metadata": {
          "asset_type": "0x1000000fa32d122c18a6a31c009ce5e71674f22d06a581bb0a15575e6addadcc::usda::USDA",
          "creator_address": "0x1000000fa32d122c18a6a31c009ce5e71674f22d06a581bb0a15575e6addadcc",
          "decimals": 6,
          "icon_uri": null,
          "name": "Argo USD",
          "project_uri": null,
          "symbol": "USDA",
          "token_standard": "v1",
          "maximum_v2": null,
          "supply_v2": null
        }
      },
      {
        "owner_address": "0x274c398a921b8e2ba345feac3039e1c8b196a7eb1395cdd3584af3a85eb9ec50",
        "amount": 284106049,
        "storage_id": "0x891d93d0d9f081cfc0a34c96f66b661c7bc12c0ed30e509a139163e9e4d38de2",
        "last_transaction_version": 102299750,
        "last_transaction_timestamp": "2023-03-15T09:53:53",
        "is_frozen": false,
        "metadata": {
          "asset_type": "0x159df6b7689437016108a019fd5bef736bac692b6d4a1f10c941f6fbb9a74ca6::oft::CakeOFT",
          "creator_address": "0x159df6b7689437016108a019fd5bef736bac692b6d4a1f10c941f6fbb9a74ca6",
          "decimals": 8,
          "icon_uri": null,
          "name": "PancakeSwap Token",
          "project_uri": null,
          "symbol": "Cake",
          "token_standard": "v1",
          "maximum_v2": null,
          "supply_v2": null
        }
      },
      {
        "owner_address": "0x274c398a921b8e2ba345feac3039e1c8b196a7eb1395cdd3584af3a85eb9ec50",
        "amount": 29829520,
        "storage_id": "0x607571217df151528914b3622272e371dadc8094d3bf8c10e3949783f938f128",
        "last_transaction_version": 108478684,
        "last_transaction_timestamp": "2023-03-26T21:48:28",
        "is_frozen": false,
        "metadata": {
          "asset_type": "0x1::aptos_coin::AptosCoin",
          "creator_address": "0x0000000000000000000000000000000000000000000000000000000000000001",
          "decimals": 8,
          "icon_uri": null,
          "name": "Aptos Coin",
          "project_uri": null,
          "symbol": "APT",
          "token_standard": "v1",
          "maximum_v2": null,
          "supply_v2": null
        }
      },
      {
        "owner_address": "0x274c398a921b8e2ba345feac3039e1c8b196a7eb1395cdd3584af3a85eb9ec50",
        "amount": 0,
        "storage_id": "0x9923a86b6cc957b5627640d2cea4e16fecd6149a4b73ba7c56c6e24e34d7fc08",
        "last_transaction_version": 102299947,
        "last_transaction_timestamp": "2023-03-15T09:54:27",
        "is_frozen": false,
        "metadata": null
      },
      {
        "owner_address": "0x274c398a921b8e2ba345feac3039e1c8b196a7eb1395cdd3584af3a85eb9ec50",
        "amount": 21507677,
        "storage_id": "0xcb9659248135a42c86757d9c8e64ce6d92d1720bf284031e712cb55d78745362",
        "last_transaction_version": 101375475,
        "last_transaction_timestamp": "2023-03-13T14:50:53",
        "is_frozen": false,
        "metadata": {
          "asset_type": "0x5c738a5dfa343bee927c39ebe85b0ceb95fdb5ee5b323c95559614f5a77c47cf::Aptoge::Aptoge",
          "creator_address": "0x5c738a5dfa343bee927c39ebe85b0ceb95fdb5ee5b323c95559614f5a77c47cf",
          "decimals": 6,
          "icon_uri": null,
          "name": "Aptoge",
          "project_uri": null,
          "symbol": "APTOGE",
          "token_standard": "v1",
          "maximum_v2": null,
          "supply_v2": null
        }
      }
    ]
  }
}