The Indexer API allows you to access rich data about tokens, fungible assets, and accounts on-chain using GraphQL queries. **You can access it [here](/build/indexer/indexer-api).**

For common queries, check out the sidebar for examples to work from. When building your own, this reference guide should help you determine which tables are most relevant, and how to format your queries.

Caution

Before relying on a table for production services, check the bottom of this page to see if that table is deprecated. If so, use the note section for guidance on what to do to migrate to a non-deprecated table.

Note

If you are looking up a table with the `_by_pk` suffix, search for the table name without that suffix. `_by_pk` tables are automatically generated for convenience to allow querying by primary key.

  

# Indexer Table Reference

[](#indexer-table-reference)

Note

Remember to use Ctrl + F to find the table you are interested in! When in doubt, you may also want to query the Hasura tables linked in the [Indexer API Access](/build/indexer/indexer-api) page to see examples of the data inside.

This page was checked against the mainnet GraphQL schema at `https://api.mainnet.aptoslabs.com/v1/graphql`. New tables such as `public_key_auth_keys`, `current_objects`, and `confidential_asset_activities` are included below.

## Filtering (with `where` clauses)

[](#filtering-with-where-clauses)

To ensure your queries filter data efficiently, check out the available indexes for each table. Some indexes are composite B-tree indexes, meaning they consist of multiple columns. B-tree indexes are ordered and perform optimally when queries utilize a left-most prefix of the indexed columns.

## General

[](#general)

### `user_transactions`

[](#user_transactions)

Transactions filtered to user\_transactions (not system).

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>user_transactions_pkey</td><td>version</td></tr><tr><td>user_transactions_sender_sequence_number_key</td><td>sender, sequence_number</td></tr><tr><td>ut_epoch_index</td><td>epoch</td></tr><tr><td>ut_insat_index</td><td>inserted_at</td></tr><tr><td>ut_sender_seq_index</td><td>sender, sequence_number</td></tr><tr><td>user_transactions_contract_info_index</td><td>entry_function_contract_address, entry_function_module_name, entry_function_function_name</td></tr></tbody></table>

### `block_metadata_transactions`

[](#block_metadata_transactions)

A type of system transaction emitted once per block, useful for mapping to timestamp or epoch.

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>block_metadata_transactions_block_height_key</td><td>block_height</td></tr><tr><td>block_metadata_transactions_pkey</td><td>version</td></tr><tr><td>bmt_insat_index</td><td>inserted_at</td></tr></tbody></table>

### `account_transactions`

[](#account_transactions)

_Has an aggregate view for summary data called `account_transactions_aggregate`_

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>account_transactions_pkey</td><td>account_address, transaction_version</td></tr><tr><td>at_insat_index</td><td>inserted_at</td></tr><tr><td>at_version_index</td><td>transaction_version DESC</td></tr></tbody></table>

This table maps accounts and transactions that interact with that account.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>delegated_staking_activities</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>fungible_asset_activities</td><td>Join</td><td></td><td>References <a href="#fungible_asset_activities">fungible_asset_activities</a>.</td></tr><tr><td>token_activities</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>token_activities_aggregate</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>token_activities_v2</td><td>Join</td><td></td><td>References <a href="#token_activities_v2">token_activities_v2</a>.</td></tr><tr><td>token_activities_v2_aggregate</td><td>Join</td><td></td><td>References <a href="#token_activities_v2">token_activities_v2</a>.</td></tr><tr><td>account_address</td><td>String!</td><td>Yes</td><td>This is an Aptos account address. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>transaction_version</td><td>bigint!</td><td>Yes</td><td>Blockchain version of the transaction. Ex. 10000000</td></tr></tbody></table>

### `ledger_infos`

[](#ledger_infos)

This table shares what chain is currently being queried.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>chain_id</td><td>int</td><td>Yes</td><td>The unique identifier for the chain you are accessing. Ex. 1 (for Mainnet), 2 (for Testnet), etc.</td></tr></tbody></table>

### `processor_status`

[](#processor_status)

This table shares how current this processor’s data is.

This table shares how current this processor’s data is. It reports the latest version processed per processor.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>last_success_version</td><td>bigint</td><td>Yes</td><td>The version number of the last successful processor run. Ex. 5000000</td></tr><tr><td>last_transaction_timestamp</td><td>String</td><td></td><td>Timestamp of the last processed transaction. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>last_updated</td><td>String</td><td></td><td>Timestamp of the last update to this processor’s status. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>processor</td><td>String</td><td>Yes</td><td>Name of the processor. Ex. “transaction_processor”</td></tr></tbody></table>

## NFT

[](#nft)

### `token_activities_v2`

[](#token_activities_v2)

_Has an aggregate view for summary data called `token_activities_v2_aggregate`_

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>ta2_from_type_index</td><td>from_address, type</td></tr><tr><td>ta2_insat_index</td><td>inserted_at</td></tr><tr><td>ta2_owner_type_index</td><td>event_account_address, type</td></tr><tr><td>ta2_tid_index</td><td>token_data_id</td></tr><tr><td>ta2_to_type_index</td><td>to_address, type</td></tr><tr><td>token_activities_v2_pkey</td><td>transaction_version, event_index</td></tr></tbody></table>

This table tracks token activities and is especially useful for tracking NFT activity. This includes both v1 and v2 data.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>aptos_names_from</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>aptos_names_from_aggregate</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>aptos_names_to</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>aptos_names_to_aggregate</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>current_token_data</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>after_value</td><td>String</td><td></td><td>The value of a token property after the transaction. Ex. “100”</td></tr><tr><td>before_value</td><td>String</td><td></td><td>The value of a token property before the transaction. Ex. “50”</td></tr><tr><td>entry_function_id_str</td><td>String</td><td></td><td>The identifier of the function called in this transaction. Ex. “0x1::aptos_account::transfer”</td></tr><tr><td>event_account_address</td><td>String</td><td></td><td>This is an Aptos account address related to the event. This address must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>event_index</td><td>bigint</td><td>Yes</td><td>Index of the event within the transaction. Ex. 1</td></tr><tr><td>from_address</td><td>String</td><td></td><td>This is an Aptos account address from which the token was sent. This address must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>is_fungible_v2</td><td>Boolean</td><td></td><td>Indicates whether the token is fungible. Soon to be deprecated. Ex. False for NFTs.</td></tr><tr><td>property_version_v1</td><td>bigint</td><td></td><td>The version of the token’s properties under schema version 1. This field is only for token standard v1. It is always 0 for v2. Ex. 0</td></tr><tr><td>to_address</td><td>String</td><td></td><td>This is an Aptos account address to which the token was sent. This address must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>token_amount</td><td>bigint</td><td></td><td>The amount of the token transferred in this activity. Ex. 3</td></tr><tr><td>token_data_id</td><td>String</td><td></td><td>Unique identifier for this particular token’s data. For token standard v1, this is derived from a combination of creator_address, collection_name, and token_name. This ID must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr><tr><td>transaction_timestamp</td><td>String</td><td></td><td>Timestamp when the transaction occurred. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>transaction_version</td><td>bigint</td><td>Yes</td><td>Blockchain version of the transaction. Ex. 10000000</td></tr><tr><td>type</td><td>String</td><td></td><td>Type of transfer - like “deposit” or “withdrawal”. Ex. “0x3::token::DepositEvent”</td></tr></tbody></table>

### `nft_metadata_crawler_parsed_asset_uris`

[](#nft_metadata_crawler_parsed_asset_uris)

This table allows you to look up the cdn and uris for NFT images / content.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>animation_optimizer_retry_count</td><td>Int</td><td></td><td>Number of retries to optimize animation. Ex. 3</td></tr><tr><td>asset_uri</td><td>String</td><td>Yes</td><td>URI of the asset. Ex. “<a href="https://example.com/nft/123">https://example.com/nft/123</a>”</td></tr><tr><td>cdn_animation_uri</td><td>String</td><td></td><td>Content Delivery Network URI for animation. Ex. “<a href="https://cdn.example.com/animations/123">https://cdn.example.com/animations/123</a>”</td></tr><tr><td>cdn_image_uri</td><td>String</td><td></td><td>Content Delivery Network URI for image. Ex. “<a href="https://cdn.example.com/images/123">https://cdn.example.com/images/123</a>”</td></tr><tr><td>cdn_json_uri</td><td>String</td><td></td><td>Content Delivery Network URI for JSON metadata. Ex. “<a href="https://cdn.example.com/metadata/123.json">https://cdn.example.com/metadata/123.json</a>”</td></tr><tr><td>raw_animation_uri</td><td>String</td><td></td><td>Original URI for animation before CDN optimization. Ex. “<a href="https://example.com/raw/animations/123">https://example.com/raw/animations/123</a>”</td></tr><tr><td>raw_image_uri</td><td>String</td><td></td><td>Original URI for image before CDN optimization. Ex. “<a href="https://example.com/raw/images/123">https://example.com/raw/images/123</a>”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>nft_inserted_at</td><td>inserted_at</td></tr><tr><td>nft_raw_animation_uri</td><td>raw_animation_uri</td></tr><tr><td>nft_raw_image_uri</td><td>raw_image_uri</td></tr><tr><td>parsed_asset_uris_pkey</td><td>asset_uri</td></tr></tbody></table>

### `current_token_ownerships_v2`

[](#current_token_ownerships_v2)

_Has an aggregate view for summary data called `current_token_ownerships_v2_aggregate`_

This table tracks who owns which NFTs. This includes both v1 and v2 tokens. Fungible tokens are not tracked as consistently.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>composed_nfts_aggregate</td><td>Join</td><td></td><td>Aggregate information about the composed NFTs, such as count or other statistics.</td></tr><tr><td>current_token_data</td><td>Join</td><td></td><td>Detailed information about the token’s current data; structure is defined in a related table.</td></tr><tr><td>amount</td><td>bigint</td><td></td><td>The amount of the token owned. Example: 1 for an NFT.</td></tr><tr><td>composed_nfts</td><td>Array</td><td></td><td>An array containing the IDs of NFTs that compose this token, if applicable.</td></tr><tr><td>is_fungible_v2</td><td>Boolean</td><td></td><td>Indicates whether the token is fungible. Example: true or null</td></tr><tr><td>is_soulbound_v2</td><td>Boolean</td><td></td><td>Indicates whether the token is soulbound (non-transferable once owned). Example: true or null</td></tr><tr><td>last_transaction_timestamp</td><td>String</td><td></td><td>Timestamp of the last transaction involving the token. Example: “2024-04-17T02:14:25.68771”</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>The version number of the last transaction involving the token. Example: 20747031</td></tr><tr><td>non_transferrable_by_owner</td><td>Boolean</td><td></td><td>Indicates whether the token is non-transferrable by the owner. Example: true or null</td></tr><tr><td>owner_address</td><td>String</td><td>Yes</td><td>The Aptos account address that currently owns the token. Addresses must be 66 characters so may be 0 padded. Example: “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>property_version_v1</td><td>bigint</td><td>Yes</td><td>The version number of the token’s properties as of the last update. This field is only for token standard v1. It is always 0 for v2. Example: 0</td></tr><tr><td>storage_id</td><td>String</td><td>Yes</td><td>A unique identifier used for storage purposes. IDs must be 66 characters long, so may be 0 padded. Ex. “0xd8d41ff9f67d17d7dee061b5b683b92013b420cb6a30c21fc7c287454792d7a8”</td></tr><tr><td>table_type_v1</td><td>String</td><td></td><td>The Move function type. Example: “0x3::token::TokenStore”</td></tr><tr><td>token_data_id</td><td>String</td><td>Yes</td><td>A unique identifier for the token data, typically a hash or a numeric ID. Ex. “0x3d911af2dc3e47848fbba17b8694cf526942be183b84f8393a6c048232fb976d”</td></tr><tr><td>token_properties_mutated_v1</td><td>Object</td><td></td><td>Properties of the token that have been mutated from the original. Often in JSON or similar format. Example:</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>The standard used to generate this token. Ex. “v1” or “v2”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>curr_to2_insat_index</td><td>inserted_at</td></tr><tr><td>curr_to2_owner_index</td><td>owner_address</td></tr><tr><td>curr_to2_wa_index</td><td>storage_id</td></tr><tr><td>current_token_ownerships_v2_pkey</td><td>token_data_id, property_version_v1, owner_address, storage_id</td></tr></tbody></table>

### `current_token_datas_v2`

[](#current_token_datas_v2)

This table tracks the metadata associated with each NFT (Ex. URI, supply, etc.). This tracks both v1 and v2 tokens.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>cdn_asset_uris</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>current_collection</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>current_token_ownerships</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>current_token_ownerships_aggregate</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>aptos_name</td><td>String</td><td></td><td>This is a name tied to this token using the Aptos Name Service (ANS). Ex. “EpicDragon”</td></tr><tr><td>collection_id</td><td>String</td><td>Yes</td><td>Identifier for the collection that includes this token. Ex. “0x360f6eeabb4d7a9d2fab1f35b01e02831e3b5c4b73c7fd6c98dcc1c301c817c8”</td></tr><tr><td>decimals</td><td>bigint</td><td></td><td>Number of decimal places for token value, typically for fungible tokens. Ex. 18</td></tr><tr><td>description</td><td>String</td><td></td><td>Description of the token. Ex. “A legendary dragon from the mystical lands.”</td></tr><tr><td>is_fungible_v2</td><td>Boolean</td><td></td><td>Whether the token is fungible. Ex. False for NFTs</td></tr><tr><td>largest_property_version_v1</td><td>bigint</td><td></td><td>The largest version number of the token’s properties under the first schema. Ex. 1</td></tr><tr><td>last_transaction_timestamp</td><td>bigint</td><td></td><td>Unix timestamp of the last transaction involving this token. Ex. 2024-03-27T07:41:58.800893</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>Blockchain version of the last transaction involving this token. Ex. 30000000</td></tr><tr><td>maximum</td><td>bigint</td><td></td><td>Maximum possible quantity of this token, relevant for fungibles. Ex. 1000000</td></tr><tr><td>supply</td><td>bigint</td><td></td><td>Current supply of the token in circulation. Ex. 500000</td></tr><tr><td>token_data_id</td><td>String</td><td></td><td>Unique identifier for the token’s data. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>token_name</td><td>String</td><td></td><td>The formal name of the token. Ex. “Mystic Dragon”</td></tr><tr><td>token_properties</td><td>Object</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr><tr><td>token_uri</td><td>String</td><td></td><td>URI linking to further information about the token. Ex. “<a href="https://example.com/tokens/987654321">https://example.com/tokens/987654321</a>”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>cur_td2_cid_name_index</td><td>collection_id, token_name</td></tr><tr><td>cur_td2_insat_index</td><td>inserted_at</td></tr><tr><td>current_token_datas_v2_pkey</td><td>token_data_id</td></tr></tbody></table>

### `current_collections_v2`

[](#current_collections_v2)

This table tracks the metadata associated with each NFT collection (Ex. collection\_id, creator\_address, etc.). This tracks both v1 and v2 tokens.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>cdn_asset_uris</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>collection_id</td><td>String</td><td>Yes</td><td>Unique identifier for the collection. IDs must be 66 characters long, and so may be 0 padded. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b88”</td></tr><tr><td>collection_name</td><td>String</td><td></td><td>The formal name of the collection. Ex. “Mythic Dragons”</td></tr><tr><td>creator_address</td><td>String</td><td></td><td>This is an Aptos account address that created the collection. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>current_supply</td><td>bigint</td><td></td><td>Current supply of tokens in this collection. Ex. 500</td></tr><tr><td>description</td><td>String</td><td></td><td>Description of the collection. Ex. “A collection of rare digital dragons.”</td></tr><tr><td>last_transaction_timestamp</td><td>String</td><td></td><td>Timestamp of the last transaction involving this collection. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>Blockchain version of the last transaction involving this collection. Ex. 3000000002</td></tr><tr><td>max_supply</td><td>bigint</td><td></td><td>Maximum possible quantity of tokens in this collection. If the max supply is 0, there is no limit on the supply. Ex. 1000</td></tr><tr><td>mutable_description</td><td>String</td><td></td><td>Changeable description of the collection. Ex. “Updated collection description.”</td></tr><tr><td>mutable_uri</td><td>Boolean</td><td></td><td>True if the uri is changeable by the creator. Ex. True</td></tr><tr><td>table_handle_v1</td><td>String</td><td></td><td>Legacy identifier handle for the collection in earlier schema versions. Ex. “handle_12345”</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr><tr><td>total_minted_v2</td><td>bigint</td><td></td><td>Total number of tokens minted in this collection under schema version 2. Ex. 800</td></tr><tr><td>uri</td><td>String</td><td></td><td>This is a URI to where the image live. This can also be JSON data. Ex. “<a href="https://example.com/collections/9876543210">https://example.com/collections/9876543210</a>”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>cur_col2_crea_cn_index</td><td>creator_address, collection_name</td></tr><tr><td>cur_col2_insat_index</td><td>inserted_at</td></tr><tr><td>current_collections_v2_pkey</td><td>collection_id</td></tr></tbody></table>

### `current_collection_ownership_v2_view`

[](#current_collection_ownership_v2_view)

_Has an aggregate view for summary data called `current_collection_ownership_v2_view_aggregate`_

This table maps collections to who owns them and helps count how much of a collection is owned by other accounts.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>current_collection</td><td>Join</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see these sub-fields.</td></tr><tr><td>collection_id</td><td>String</td><td>Yes</td><td>Unique identifier for the collection. IDs must be 66 characters long, and so may be 0 padded. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>collection_name</td><td>String</td><td></td><td>The formal name of the collection. Ex. “Mythic Dragons”</td></tr><tr><td>collection_uri</td><td>String</td><td></td><td>URI linking to further information about the collection. Ex. “<a href="https://example.com/collections/9876543210">https://example.com/collections/9876543210</a>”</td></tr><tr><td>creator_address</td><td>String</td><td></td><td>This is an Aptos account address that created the collection. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>distinct_tokens</td><td>bigint</td><td></td><td>The count of distinct tokens owned within this collection. Ex. 150</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>The version number of the last transaction involving this collection. Ex. 3000000002</td></tr><tr><td>owner_address</td><td>String</td><td>Yes</td><td>This is an Aptos account address that currently owns the token. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>single_token_uri</td><td>String</td><td></td><td>URI linking to information about a specific token within the collection. Ex. “<a href="https://example.com/tokens/9876543210">https://example.com/tokens/9876543210</a>”</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr></tbody></table>

## Fungible Assets

[](#fungible-assets)

### `fungible_asset_metadata`

[](#fungible_asset_metadata)

This tracks the metadata tied to each fungible asset (ex. decimals of precision). It includes v1 token data. This is a current\_ table.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>asset_type</td><td>String</td><td>Yes</td><td>The type of the asset, described by a Move resource. Ex. “0x1::aptos_coin::AptosCoin”</td></tr><tr><td>creator_address</td><td>String</td><td></td><td>This is an Aptos account address that created the asset. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>decimals</td><td>bigint</td><td></td><td>Number of decimal places for token value, typically for fungible tokens. Ex. 18</td></tr><tr><td>icon_uri</td><td>String</td><td></td><td>URI for the icon of the asset. Ex. “<a href="https://cdn.example.com/icons/123">https://cdn.example.com/icons/123</a>”</td></tr><tr><td>last_transaction_timestamp</td><td>String</td><td></td><td>Timestamp of the last transaction involving this asset. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>Blockchain version of the last transaction involving this asset. Ex. 10000000</td></tr><tr><td>name</td><td>String</td><td></td><td>The formal name of the asset. Ex. “Digital Gold”</td></tr><tr><td>project_uri</td><td>String</td><td></td><td>URI linking to the project information associated with this asset. Ex. “<a href="https://www.example.com/project%5C_name/">https://www.example.com/project\_name/</a>”</td></tr><tr><td>supply_aggregator_table_handle_v1</td><td>String</td><td></td><td>Legacy handle for the supply aggregator table from an earlier schema version. Ex. “handle_67890”</td></tr><tr><td>supply_aggregator_table_key_v1</td><td>String</td><td></td><td>Legacy key for accessing the supply aggregator table in earlier schema versions. Ex. “key_12345”</td></tr><tr><td>symbol</td><td>String</td><td></td><td>The trading symbol of the asset. Ex. “DGOLD”</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Standard that the asset adheres to. Ex. “v1”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>fam_creator_index</td><td>creator_address</td></tr><tr><td>fam_insat_index</td><td>inserted_at</td></tr><tr><td>fungible_asset_metadata_pkey</td><td>asset_type</td></tr></tbody></table>

### `fungible_asset_activities`

[](#fungible_asset_activities)

This tracks the activity of fungible assets. It includes v1 token data.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>owner_aptos_names</td><td>Join</td><td></td><td>References <a href="#current_aptos_names">owner_aptos_names</a>.</td></tr><tr><td>owner_aptos_names_aggregate</td><td>Join</td><td></td><td>References <a href="#current_aptos_names">owner_aptos_names</a>.</td></tr><tr><td>amount</td><td>bigint</td><td></td><td>The amount of the asset involved in the activity. Ex. 1000</td></tr><tr><td>asset_type</td><td>String</td><td>Yes</td><td>The type of the asset, described by a Move resource. For fungible assets, this will be the address of the metadata object. Ex. “0x1::aptos_coin::AptosCoin”</td></tr><tr><td>block_height</td><td>bigint</td><td></td><td>The blockchain id at which this activity occurred. Ex. 1500000</td></tr><tr><td>entry_function_id_str</td><td>String</td><td></td><td>The identifier of the function called in this transaction. Ex. “0x1::aptos_account::transfer”</td></tr><tr><td>event_index</td><td>bigint</td><td></td><td>Index of the event within the transaction. Ex. 1</td></tr><tr><td>gas_fee_payer_address</td><td>String</td><td></td><td>This is an Aptos account address that paid the gas fee for the transaction. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>is_frozen</td><td>Boolean</td><td></td><td>True if this activity is a freeze asset activity. Ex. null</td></tr><tr><td>is_gas_fee</td><td>Boolean</td><td></td><td>Indicates whether this activity involved a gas fee. Ex. True</td></tr><tr><td>is_transaction_success</td><td>Boolean</td><td></td><td>Indicates whether the transaction was successful. Ex. True</td></tr><tr><td>metadata</td><td>Object</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see fields for <code dir="auto">metadata</code> in this table.</td></tr><tr><td>owner_address</td><td>String</td><td></td><td>This is an Aptos account address that owns the asset. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>storage_id</td><td>String</td><td></td><td>Identifier for the storage used in the transaction. IDs must be 66 characters long, and so may be 0 padded. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>storage_refund_amount</td><td>bigint</td><td></td><td>Amount refunded for storage after the transaction. This is always in APT <a href="/network/glossary#Octa">octas</a>. Ex. 50</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr><tr><td>transaction_timestamp</td><td>String</td><td></td><td>Timestamp when the transaction occurred. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>transaction_version</td><td>bigint</td><td></td><td>Blockchain version of the transaction. Ex. 2</td></tr><tr><td>type</td><td>String</td><td></td><td>Type of the transaction, described by a Move entry function. Ex. “0x1::coin::WithdrawEvent”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>faa_at_index</td><td>asset_type</td></tr><tr><td>faa_gfpa_index</td><td>gas_fee_payer_address</td></tr><tr><td>faa_insat_idx</td><td>inserted_at</td></tr><tr><td>faa_owner_type_index</td><td>owner_address, type</td></tr><tr><td>faa_si_index</td><td>storage_id</td></tr><tr><td>fungible_asset_activities_pkey</td><td>transaction_version, event_index</td></tr></tbody></table>

### `current_fungible_asset_balances`

[](#current_fungible_asset_balances)

_Has an aggregate view for summary data called `current_fungible_asset_balances_aggregate`_

This tracks the asset balances of each account on-chain. It includes v1 token data.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>amount</td><td>bigint</td><td></td><td>The amount of the asset owned. Ex. 2000</td></tr><tr><td>asset_type</td><td>String</td><td></td><td>The type of the asset, described by a Move resource. For v2 tokens this is the address of the fungible asset metadata object. For v1 it’s the fully qualified path of the move resource. Ex. “0x1::aptos_coin::AptosCoin”</td></tr><tr><td>is_frozen</td><td>Boolean</td><td></td><td>Indicates whether the account is frozen. Ex. False</td></tr><tr><td>is_primary</td><td>Boolean</td><td></td><td>Indicates whether this is the primary balance of the owner. Ex. True</td></tr><tr><td>last_transaction_timestamp</td><td>String</td><td></td><td>Timestamp of the last transaction involving this balance. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>Blockchain version of the last transaction involving this balance. Ex. 30000000</td></tr><tr><td>metadata</td><td>Object</td><td></td><td>Use the <a href="https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql">Hasura explorer</a> to see fields for <code dir="auto">metadata</code> in <code dir="auto">current_fungible_asset_balances</code>.</td></tr><tr><td>owner_address</td><td>String</td><td></td><td>This is an Aptos account address that owns the asset. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>storage_id</td><td>String</td><td>Yes</td><td>Identifier for the storage associated with this balance. IDs must be 66 characters long, and so may be 0 padded. Ex. “0xa815a9a09105973084bfc31530e7c8f002846787c2f0521e1e34dc144ad83b89”</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>cufab_insat_index</td><td>inserted_at</td></tr><tr><td>cufab_owner_at_index</td><td>owner_address, asset_type</td></tr><tr><td>current_unified_fungible_asset_balances_pkey</td><td>storage_id</td></tr></tbody></table>

## Delegated Staking

[](#delegated-staking)

With [AIP-6](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-006-delegation-pool-for-node-operators.md) we added the ability for staking pools to be formed with delegated funds (delegation pools). Once these pools hold over 1M APT, they can become a staking pool (validator node).

### `current_delegated_staking_pool_balances`

[](#current_delegated_staking_pool_balances)

This table tracks the current balances of each account in a delegated staking pool.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>staking_pool_address</td><td>String</td><td>Yes</td><td>The address of the delegation pool.</td></tr><tr><td>total_coins</td><td>bigint</td><td></td><td>Amount of APT in the staking pool.</td></tr><tr><td>total_shares</td><td>bigint</td><td></td><td>The total number of shares in the delegation pool.</td></tr><tr><td>operator_commission_percentage</td><td>bigint</td><td></td><td>The commission percentage taken by the staking pool operator.</td></tr><tr><td>inactive_table_handle</td><td>String</td><td></td><td>The table handle for the inactive table.</td></tr><tr><td>active_table_handle</td><td>String</td><td></td><td>The table handle for the active table.</td></tr><tr><td>last_transaction_version</td><td>int8</td><td></td><td>Transaction version (identifier) for the last transaction involving this staking pool.</td></tr><tr><td>inserted_at</td><td>String</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>current_delegated_staking_pool_balances_pkey</td><td>staking_pool_address</td></tr></tbody></table>

### `current_delegated_voter`

[](#current_delegated_voter)

This table tracks the current delegated voters of a delegation pool.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>delegation_pool_address</td><td>String</td><td>Yes</td><td>The address of the delegation pool.</td></tr><tr><td>delegator_address</td><td>String</td><td>Yes</td><td>The address of the delegator.</td></tr><tr><td>table_handle</td><td>String</td><td></td><td>The table handle tracking this position.</td></tr><tr><td>voter</td><td>String</td><td></td><td>The address of the current voter in the delegation pool.</td></tr><tr><td>pending_voter</td><td>String</td><td></td><td>The address of the pending voter awaiting confirmation.</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>The transaction version (identifier) of the last transaction involving this delegation.</td></tr><tr><td>last_transaction_timestamp</td><td>Timestamp</td><td></td><td>The block timestamp of the last transaction involving this delegation.</td></tr><tr><td>inserted_at</td><td>Timestamp</td><td></td><td>The timestamp when the record was inserted into the database.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>current_delegated_voter_pkey</td><td>delegation_pool_address, delegator_address</td></tr><tr><td>cdv_da_index</td><td>delegator_address</td></tr></tbody></table>

### `current_delegator_balances`

[](#current_delegator_balances)

This table tracks the current balances of each account in a delegated staking pool.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>delegator_address</td><td>String</td><td>Yes</td><td>The address of the delegator.</td></tr><tr><td>pool_address</td><td>String</td><td></td><td>The address of the delegator pool.</td></tr><tr><td>pool_type</td><td>String</td><td></td><td>If the shares are active or inactive</td></tr><tr><td>table_handle</td><td>String</td><td></td><td>The table handle for the pool.</td></tr><tr><td>shares</td><td>bigint</td><td></td><td>The number of shares in the pool.</td></tr><tr><td>parent_table_handle</td><td>String</td><td></td><td>The table handle for the parent table.</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>Transaction version (identifier) for the last transaction involving this staking pool.</td></tr><tr><td>inserted_at</td><td>Timestamp</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>current_delegator_balances_pkey</td><td>delegator_address, pool_address, pool_type, table_handle</td></tr></tbody></table>

### `current_staking_pool_voter`

[](#current_staking_pool_voter)

This table tracks the current voters of a staking pool.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>staking_pool_address</td><td>String</td><td>Yes</td><td>The address of the staking pool.</td></tr><tr><td>voter_address</td><td>String</td><td></td><td>The address of the voter.</td></tr><tr><td>operator_address</td><td>String</td><td></td><td>The address of the operator.</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>Transaction version (identifier) for the last transaction involving this staking pool.</td></tr><tr><td>inserted_at</td><td>Timestamp</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>current_staking_pool_voter_pkey</td><td>staking_pool_address</td></tr><tr><td>ctpv_va_index</td><td>voter_address</td></tr><tr><td>ctpv_insat_index</td><td>inserted_at</td></tr></tbody></table>

### `delegated_staking_activities`

[](#delegated_staking_activities)

This table tracks delegated staking events.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint</td><td></td><td>Transaction version (identifier) for activity</td></tr><tr><td>event_index</td><td>bigint</td><td></td><td>The index of the event. Ex. 1</td></tr><tr><td>delegator_address</td><td>String</td><td></td><td>The address of the delegator.</td></tr><tr><td>pool_address</td><td>String</td><td></td><td>The address of the pool.</td></tr><tr><td>event_type</td><td>String</td><td></td><td>DistributeRewards, AddStake, UnlockStake, ReactivateStake, WithdrawStake</td></tr><tr><td>amount</td><td>bigint</td><td></td><td>The amount being staked. Ex. 1000</td></tr><tr><td>inserted_at</td><td>Timestamp</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>delegated_staking_activities_pkey</td><td>transaction_version, event_index</td></tr><tr><td>dsa_pa_da_index</td><td>pool_address, delegator_address, transaction_version, event_index</td></tr><tr><td>dsa_insat_index</td><td>inserted_at</td></tr></tbody></table>

### `delegated_staking_pool_balances`

[](#delegated_staking_pool_balances)

This table tracks the historical balances of each account in a delegated staking pool.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint</td><td></td><td>Transaction version (identifier) for activity</td></tr><tr><td>staking_pool_address</td><td>String</td><td></td><td>The address of the delegation pool.</td></tr><tr><td>total_coins</td><td>bigint</td><td></td><td>Amount of APT in the staking pool.</td></tr><tr><td>total_shares</td><td>bigint</td><td></td><td>The total number of shares in the delegation pool.</td></tr><tr><td>operator_commission_percentage</td><td>bigint</td><td></td><td>The commission percentage taken by the staking pool operator.</td></tr><tr><td>inactive_table_handle</td><td>String</td><td></td><td>The table handle for the inactive table.</td></tr><tr><td>active_table_handle</td><td>String</td><td></td><td>The table handle for the active table.</td></tr><tr><td>inserted_at</td><td>String</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>delegated_staking_pool_balances_pkey</td><td>transaction_version, staking_pool_address</td></tr></tbody></table>

### `delegated_staking_pools`

[](#delegated_staking_pools)

This table tracks when a delegated pool was created.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>staking_pool_address</td><td>String</td><td></td><td>The address of the staking pool.</td></tr><tr><td>first_transaction_version</td><td>bigint</td><td></td><td>The version number of the first transaction involving this pool. Ex. 5000000</td></tr><tr><td>inserted_at</td><td>Timestamp</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>delegated_staking_pools_pkey</td><td>staking_pool_address</td></tr></tbody></table>

### `delegator_balances`

[](#delegator_balances)

This table tracks the historical balances of each account in a delegation pool.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint</td><td></td><td>The version number of the transaction. Ex. 5000000</td></tr><tr><td>write_set_change_index</td><td>bigint</td><td></td><td>The index of the write set change. Ex. 1</td></tr><tr><td>delegator_address</td><td>String</td><td></td><td>The address of the delegator.</td></tr><tr><td>pool_address</td><td>String</td><td></td><td>The address of the delegator pool.</td></tr><tr><td>pool_type</td><td>String</td><td></td><td>The type of the pool. Ex. “delegated”</td></tr><tr><td>table_handle</td><td>String</td><td></td><td>The table handle for the pool.</td></tr><tr><td>shares</td><td>bigint</td><td></td><td>The number of shares in the pool.</td></tr><tr><td>parent_table_handle</td><td>String</td><td></td><td>The table handle for the parent table.</td></tr><tr><td>inserted_at</td><td>Timestamp</td><td></td><td>The timestamp when the record was inserted.</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>delegator_balances_pkey</td><td>transaction_version, write_set_change_index</td></tr></tbody></table>

## Aptos Naming Service (ANS)

[](#aptos-naming-service-ans)

### `current_aptos_names`

[](#current_aptos_names)

_Has an aggregate view for summary data called `current_aptos_names_aggregate`_

This view of [`current_ans_lookup_v2`](#current_ans_lookup_v2) helps query by name instead of account.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>domain</td><td>String</td><td></td><td>The domain associated with this Aptos name. Ex. “example.crypto”</td></tr><tr><td>domain_with_suffix</td><td>String</td><td></td><td>The full domain name including any suffix. Ex. “example.crypto.aptos”</td></tr><tr><td>expiration_timestamp</td><td>String</td><td></td><td>Timestamp when the domain registration expires. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>is_active</td><td>Boolean</td><td></td><td>Indicates whether the domain is currently active. Ex. True</td></tr><tr><td>is_domain_owner</td><td>Boolean</td><td></td><td>Indicates whether the registered address is the owner of the domain. Ex. False</td></tr><tr><td>is_primary</td><td>Boolean</td><td></td><td>Indicates whether this is the primary domain for the registered address. Ex. True</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>The version number of the last transaction involving this domain. Ex. 5000000</td></tr><tr><td>owner_address</td><td>String</td><td></td><td>This is an Aptos account address that owns the domain. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x123abc456def7890abcdef1234567890abcdef1234”</td></tr><tr><td>registered_address</td><td>String</td><td></td><td>This is an Aptos account address registered to the domain. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>subdomain</td><td>String</td><td></td><td>Any subdomain part of the domain name. Ex. “sub.example”</td></tr><tr><td>token_name</td><td>String</td><td></td><td>The name of the token associated with this domain. Ex. “ExampleToken”</td></tr><tr><td>token_standard</td><td>String</td><td></td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr></tbody></table>

### `current_ans_lookup_v2`

[](#current_ans_lookup_v2)

This table maps tokens, standards, and addresses to human readable names.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>domain</td><td>String</td><td>Yes</td><td>The domain associated with this Aptos name. Ex. “example.crypto”</td></tr><tr><td>expiration_timestamp</td><td>String</td><td></td><td>Timestamp when the domain registration expires. Ex. “2024-04-17T02:14:25.68771”</td></tr><tr><td>is_deleted</td><td>Boolean</td><td></td><td>Indicates whether the domain registration has been deleted. Ex. False</td></tr><tr><td>last_transaction_version</td><td>bigint</td><td></td><td>The version number of the last transaction involving this domain. Ex. 5000000</td></tr><tr><td>registered_address</td><td>String</td><td></td><td>This is an Aptos account address registered to the domain. Addresses must be 66 characters long, and so may be 0 padded. Ex. “0x50bc83f01d48ab3b9c00048542332201ab9cbbea61bda5f48bf81dc506caa78a”</td></tr><tr><td>subdomain</td><td>String</td><td>Yes</td><td>Any subdomain part of the domain name. Ex. “sub.example”</td></tr><tr><td>token_name</td><td>String</td><td></td><td>The name of the token associated with this domain. Ex. “ExampleToken”</td></tr><tr><td>token_standard</td><td>String</td><td>Yes</td><td>Aptos standard that the collection adheres to. Ex. “v1”</td></tr></tbody></table>

<table><thead><tr><th>Index Name</th><th>Indexed Columns</th></tr></thead><tbody><tr><td>ans_v2_et_index</td><td>expiration_timestamp</td></tr><tr><td>ans_v2_insat_index</td><td>inserted_at</td></tr><tr><td>ans_v2_ra_index</td><td>registered_address</td></tr><tr><td>ans_v2_tn_index</td><td>token_name, token_standard</td></tr><tr><td>current_ans_lookup_v2_pkey</td><td>domain, subdomain, token_standard</td></tr></tbody></table>

## Accounts, objects, and signatures

[](#accounts-objects-and-signatures)

These tables map authentication keys, objects, and transaction signatures. They are useful with [stateless accounts](/build/aips/aip-115) and key rotation.

### `public_key_auth_keys`

[](#public_key_auth_keys)

Maps public keys to authentication keys and whether the public key has been used on chain.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>auth_key</td><td>String!</td><td>Yes</td><td>Derived authentication key.</td></tr><tr><td>public_key</td><td>String!</td><td>Yes</td><td>Public key bytes as a hex string.</td></tr><tr><td>public_key_type</td><td>String!</td><td>Yes</td><td>Key type, for example Ed25519.</td></tr><tr><td>account_public_key</td><td>String</td><td></td><td>Account public key when the scheme uses one.</td></tr><tr><td>signature_type</td><td>String!</td><td></td><td>Signature scheme used with this key.</td></tr><tr><td>is_public_key_used</td><td>Boolean!</td><td></td><td>True if this public key has signed a committed transaction.</td></tr><tr><td>last_transaction_version</td><td>bigint!</td><td></td><td>Last transaction version that updated this row.</td></tr></tbody></table>

### `auth_key_account_addresses`

[](#auth_key_account_addresses)

Maps an authentication key to the account addresses that currently use it.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>account_address</td><td>String!</td><td>Yes</td><td>Account address using this authentication key.</td></tr><tr><td>auth_key</td><td>String!</td><td></td><td>Authentication key.</td></tr><tr><td>is_auth_key_used</td><td>Boolean!</td><td></td><td>True if this key has been used on chain.</td></tr><tr><td>last_transaction_version</td><td>bigint!</td><td></td><td>Last transaction version that updated this row.</td></tr></tbody></table>

### `current_objects`

[](#current_objects)

Current Object model owners and transfer settings (`0x1::object`).

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>object_address</td><td>String!</td><td>Yes</td><td>Address of the object.</td></tr><tr><td>owner_address</td><td>String!</td><td></td><td>Current owner of the object.</td></tr><tr><td>state_key_hash</td><td>String!</td><td></td><td>State key hash for the object.</td></tr><tr><td>allow_ungated_transfer</td><td>Boolean!</td><td></td><td>Whether ungated transfer is allowed.</td></tr><tr><td>is_deleted</td><td>Boolean!</td><td></td><td>True if the object has been deleted.</td></tr><tr><td>last_guid_creation_num</td><td>numeric!</td><td></td><td>Last GUID creation number for the object.</td></tr><tr><td>last_transaction_version</td><td>bigint!</td><td></td><td>Last transaction version that updated this row.</td></tr></tbody></table>

### `signatures`

[](#signatures)

Per-signer cryptographic material for committed transactions. Use this to inspect multi-agent, fee-payer, and multi-sig signatures.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint!</td><td>Yes</td><td>Transaction version.</td></tr><tr><td>is_sender_primary</td><td>Boolean!</td><td>Yes</td><td>True if this is the primary sender signature.</td></tr><tr><td>multi_agent_index</td><td>bigint!</td><td>Yes</td><td>Index among secondary signers.</td></tr><tr><td>multi_sig_index</td><td>bigint!</td><td>Yes</td><td>Index within a multi-sig authenticator.</td></tr><tr><td>transaction_block_height</td><td>bigint!</td><td></td><td>Block height of the transaction.</td></tr><tr><td>signer</td><td>String!</td><td></td><td>Signer address.</td></tr><tr><td>type</td><td>String!</td><td></td><td>Signature type string.</td></tr><tr><td>public_key</td><td>String!</td><td></td><td>Public key for this signature.</td></tr><tr><td>public_key_type</td><td>String</td><td></td><td>Public key type when present.</td></tr><tr><td>signature</td><td>String!</td><td></td><td>Signature bytes as hex.</td></tr><tr><td>threshold</td><td>bigint!</td><td></td><td>Multi-sig threshold when applicable.</td></tr><tr><td>public_key_indices</td><td>jsonb!</td><td></td><td>Indices of keys that signed, for multi-sig.</td></tr><tr><td>any_signature_type</td><td>String</td><td></td><td>Concrete signature variant when present.</td></tr><tr><td>function_info</td><td>String</td><td></td><td>Abstraction authenticator function info.</td></tr></tbody></table>

## Confidential assets

[](#confidential-assets)

### `confidential_asset_activities`

[](#confidential_asset_activities)

Activity for [confidential assets](/build/smart-contracts/confidential-asset). Amounts may be encrypted; `event_data` holds the raw event payload. Observed `event_type` values on mainnet include `Registered`, `Deposited`, `Withdrawn`, `Transferred`, `RolledOver`, `Normalized`, `KeyRotated`, `IncomingTransfersPauseChanged`, and `ConfidentialityForAssetTypeChanged`.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint!</td><td>Yes</td><td>Transaction version.</td></tr><tr><td>event_index</td><td>bigint!</td><td>Yes</td><td>Event index within the transaction.</td></tr><tr><td>owner_address</td><td>String!</td><td></td><td>Account that owns the confidential store.</td></tr><tr><td>counterparty_address</td><td>String</td><td></td><td>Counterparty when the event is a transfer.</td></tr><tr><td>asset_type</td><td>String</td><td></td><td>Fungible asset metadata address.</td></tr><tr><td>amount</td><td>numeric</td><td></td><td>Amount when the event exposes one; otherwise null.</td></tr><tr><td>event_type</td><td>String!</td><td></td><td>Confidential asset event type.</td></tr><tr><td>event_data</td><td>jsonb!</td><td></td><td>Raw event data, including ciphertexts.</td></tr><tr><td>event_data_version</td><td>String!</td><td></td><td>Event data schema version.</td></tr><tr><td>entry_function_id_str</td><td>String</td><td></td><td>Entry function that emitted the activity, when present.</td></tr><tr><td>is_transaction_success</td><td>Boolean!</td><td></td><td>Whether the transaction succeeded.</td></tr><tr><td>block_height</td><td>bigint!</td><td></td><td>Block height.</td></tr><tr><td>transaction_timestamp</td><td>timestamp!</td><td></td><td>Transaction timestamp.</td></tr><tr><td>metadata</td><td>Join</td><td></td><td>References <a href="#fungible_asset_metadata">fungible_asset_metadata</a>.</td></tr></tbody></table>

## Governance

[](#governance)

### `proposal_votes`

[](#proposal_votes)

On-chain governance votes from staking pools.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint!</td><td>Yes</td><td>Transaction version of the vote.</td></tr><tr><td>proposal_id</td><td>bigint!</td><td>Yes</td><td>Governance proposal id.</td></tr><tr><td>voter_address</td><td>String!</td><td>Yes</td><td>Voter address.</td></tr><tr><td>staking_pool_address</td><td>String!</td><td></td><td>Staking pool that voted.</td></tr><tr><td>num_votes</td><td>numeric!</td><td></td><td>Voting power applied.</td></tr><tr><td>should_pass</td><td>Boolean!</td><td></td><td>True if the vote is in favor.</td></tr><tr><td>transaction_timestamp</td><td>timestamp!</td><td></td><td>Timestamp of the vote transaction.</td></tr></tbody></table>

## Table items

[](#table-items)

These tables expose raw Move table contents. Prefer product tables (tokens, fungible assets) when they cover your use case.

### `table_items`

[](#table_items)

Historical writes to table items.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>transaction_version</td><td>bigint!</td><td>Yes</td><td>Transaction version.</td></tr><tr><td>write_set_change_index</td><td>bigint!</td><td>Yes</td><td>Write-set change index.</td></tr><tr><td>table_handle</td><td>String!</td><td></td><td>Table handle.</td></tr><tr><td>key</td><td>String!</td><td></td><td>Raw table key.</td></tr><tr><td>decoded_key</td><td>jsonb!</td><td></td><td>Decoded key.</td></tr><tr><td>decoded_value</td><td>jsonb</td><td></td><td>Decoded value, if present.</td></tr></tbody></table>

### `current_table_items`

[](#current_table_items)

Latest value for each table item.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>table_handle</td><td>String!</td><td>Yes</td><td>Table handle.</td></tr><tr><td>key_hash</td><td>String!</td><td>Yes</td><td>Hash of the table key.</td></tr><tr><td>key</td><td>String!</td><td></td><td>Raw table key.</td></tr><tr><td>decoded_key</td><td>jsonb!</td><td></td><td>Decoded key.</td></tr><tr><td>decoded_value</td><td>jsonb</td><td></td><td>Decoded value, if present.</td></tr><tr><td>is_deleted</td><td>Boolean!</td><td></td><td>True if the item was deleted.</td></tr><tr><td>last_transaction_version</td><td>bigint!</td><td></td><td>Last updating transaction version.</td></tr></tbody></table>

### `table_metadatas`

[](#table_metadatas)

Key and value types for a table handle.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>handle</td><td>String!</td><td>Yes</td><td>Table handle.</td></tr><tr><td>key_type</td><td>String!</td><td></td><td>Move type of keys.</td></tr><tr><td>value_type</td><td>String!</td><td></td><td>Move type of values.</td></tr></tbody></table>

## Token extras

[](#token-extras)

### `current_token_pending_claims`

[](#current_token_pending_claims)

Outstanding token v1 pending claims (direct-transfer offers).

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>token_data_id_hash</td><td>String!</td><td>Yes</td><td>Hash of the token data id.</td></tr><tr><td>from_address</td><td>String!</td><td>Yes</td><td>Address offering the token.</td></tr><tr><td>to_address</td><td>String!</td><td>Yes</td><td>Address that can claim the token.</td></tr><tr><td>property_version</td><td>numeric!</td><td>Yes</td><td>Token v1 property version.</td></tr><tr><td>token_data_id</td><td>String!</td><td></td><td>Token data id.</td></tr><tr><td>amount</td><td>numeric!</td><td></td><td>Amount offered.</td></tr><tr><td>table_handle</td><td>String!</td><td></td><td>Pending-claims table handle.</td></tr><tr><td>collection_id</td><td>String!</td><td></td><td>Collection id.</td></tr><tr><td>collection_data_id_hash</td><td>String!</td><td></td><td>Hash of the collection data id.</td></tr><tr><td>collection_name</td><td>String!</td><td></td><td>Collection name.</td></tr><tr><td>creator_address</td><td>String!</td><td></td><td>Collection creator.</td></tr><tr><td>name</td><td>String!</td><td></td><td>Token name.</td></tr><tr><td>last_transaction_timestamp</td><td>timestamp!</td><td></td><td>Last updating timestamp.</td></tr><tr><td>last_transaction_version</td><td>bigint!</td><td></td><td>Last updating transaction version.</td></tr></tbody></table>

### `current_token_royalty_v1`

[](#current_token_royalty_v1)

Token v1 royalty configuration.

<table><thead><tr><th>Field</th><th>Type</th><th>Primary Key</th><th>Description</th></tr></thead><tbody><tr><td>token_data_id</td><td>String!</td><td>Yes</td><td>Token data id.</td></tr><tr><td>payee_address</td><td>String!</td><td></td><td>Royalty recipient.</td></tr><tr><td>royalty_points_numerator</td><td>numeric!</td><td></td><td>Royalty numerator.</td></tr><tr><td>royalty_points_denominator</td><td>numeric!</td><td></td><td>Royalty denominator.</td></tr><tr><td>last_transaction_timestamp</td><td>timestamp!</td><td></td><td>Last updating timestamp.</td></tr><tr><td>last_transaction_version</td><td>bigint!</td><td></td><td>Last updating version.</td></tr></tbody></table>

## Delegated staking extras

[](#delegated-staking-extras)

### `delegator_distinct_pool`

[](#delegator_distinct_pool)

Distinct pools a delegator participates in, with current pool metadata. This is a GraphQL view (no `_by_pk` query).

<table><thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>delegator_address</td><td>String</td><td>Delegator address.</td></tr><tr><td>pool_address</td><td>String</td><td>Delegation pool address.</td></tr><tr><td>current_pool_balance</td><td>Join</td><td>References <a href="#current_delegated_staking_pool_balances">current_delegated_staking_pool_balances</a>.</td></tr><tr><td>staking_pool_metadata</td><td>Join</td><td>References <a href="#current_staking_pool_voter">current_staking_pool_voter</a>.</td></tr></tbody></table>

### `num_active_delegator_per_pool`

[](#num_active_delegator_per_pool)

Count of active delegators in each pool. This is a GraphQL view (no `_by_pk` query).

<table><thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>pool_address</td><td>String</td><td>Delegation pool address.</td></tr><tr><td>num_active_delegator</td><td>bigint</td><td>Number of active delegators.</td></tr></tbody></table>

## Deprecated Tables

[](#deprecated-tables)

The following tables are planned for deprecation, or are already deprecated. See the notes section for any direct replacements or notes on how to migrate if you currently depend on one of these tables. Please do not use any of the below tables for production services.

<table><thead><tr><th>Table</th><th>Notes</th></tr></thead><tbody><tr><td>address_version_from_move_resources</td><td>Replace with account_transactions</td></tr><tr><td>address_events_summary</td><td>To query custom events, you should create a <a href="https://geomi.dev/docs/no-code-indexing">No-Code Indexer</a></td></tr><tr><td>address_version_from_events</td><td>To query custom events, you should create a <a href="https://geomi.dev/docs/no-code-indexing">No-Code Indexer</a></td></tr><tr><td>coin_activities</td><td>Replace with fungible_asset_activities</td></tr><tr><td>coin_balances</td><td>Replace with current_fungible_asset_balances</td></tr><tr><td>coin_infos</td><td>Replace with fungible_asset_metadata</td></tr><tr><td>coin_supply</td><td>No replacement; non-realtime APT coin supply is available with this <a href="https://github.com/aptos-labs/explorer/blob/main/analytics/apt_supply.sql">query</a></td></tr><tr><td>collection_datas</td><td>Replace with current_collections_v2</td></tr><tr><td>current_ans_lookup</td><td>Replace with current_ans_lookup_v2</td></tr><tr><td>current_coin_balances</td><td>Replace with current_fungible_asset_balances</td></tr><tr><td>current_collection_datas</td><td>Replace with current_collections_v2</td></tr><tr><td>current_token_datas</td><td>Replace with current_token_datas_v2</td></tr><tr><td>current_token_ownerships</td><td>Replace with current_token_ownerships_v2</td></tr><tr><td>events_view</td><td>To query custom events, you should create a <a href="https://geomi.dev/docs/no-code-indexing">No-Code Indexer</a></td></tr><tr><td>move_resources</td><td>Replace with account_transactions</td></tr><tr><td>move_resources_view</td><td>Replace with account_transactions</td></tr><tr><td>nft_marketplace_v2_*</td><td>No direct replacement; query marketplace activity via the <a href="/build/indexer/indexer-api">Indexer API</a></td></tr><tr><td>token_activities</td><td>Replace with token_activities_v2</td></tr><tr><td>token_datas</td><td>Replace with current_token_datas_v2</td></tr><tr><td>token_ownerships</td><td>Replace with current_token_ownerships_v2</td></tr><tr><td>tokens</td><td>Replace with current_token_datas_v2</td></tr><tr><td>transactions</td><td>No replacement; non-realtime data is available in <a href="https://console.cloud.google.com/marketplace/product/bigquery-public-data/crypto-aptos-mainnet-us">BigQuery</a></td></tr><tr><td>transactions_view</td><td>No replacement; non-realtime data is available in <a href="https://console.cloud.google.com/marketplace/product/bigquery-public-data/crypto-aptos-mainnet-us">BigQuery</a></td></tr></tbody></table>