Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 94cef16

Browse files
authored
[indexer] Update deprecated tables (#933)
deprecation
1 parent 1d4b314 commit 94cef16

File tree

1 file changed

+28
-44
lines changed

1 file changed

+28
-44
lines changed

apps/nextra/pages/en/build/indexer/indexer-api/indexer-reference.mdx

Lines changed: 28 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Card, Cards } from '@components/index';
88

99
# Indexer API Reference
1010

11-
The Indexer API allows you to access rich data about tokens, accounts, transactions, and events on-chain using GraphQL queries. **You can access it [here](../indexer-api.mdx).**
11+
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](../indexer-api.mdx).**
1212

1313
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.
1414

@@ -34,7 +34,7 @@ B-tree indexes are ordered and perform optimally when queries utilize a left-mos
3434

3535
{/* Indexed columns are generated from https://docs.google.com/spreadsheets/d/1sQnMimoJnP5sVaLCCRK4H6AHXGCwsehAuBF9AD_0IyY/edit?gid=47194642#gid=47194642 */}
3636

37-
## Raw Data
37+
## General
3838

3939
### `user_transactions`
4040

@@ -48,17 +48,6 @@ Transactions filtered to user_transactions (not system).
4848
| ut_insat_index | inserted_at |
4949
| ut_sender_seq_index | sender, sequence_number |
5050

51-
### `events`
52-
53-
Events emitted by transaction.
54-
55-
| Index Name | Indexed Columns |
56-
|------------|----------------|
57-
| ev_addr_type_index | account_address |
58-
| ev_insat_index | inserted_at |
59-
| ev_itype_index | indexed_type |
60-
| events_pkey | transaction_version, event_index |
61-
6251
### `block_metadata_transactions`
6352

6453
A type of system transaction emitted once per block, useful for mapping to timestamp or epoch.
@@ -69,8 +58,6 @@ A type of system transaction emitted once per block, useful for mapping to times
6958
| block_metadata_transactions_pkey | version |
7059
| bmt_insat_index | inserted_at |
7160

72-
## General
73-
7461
### `account_transactions`
7562

7663
_Has an aggregate view for summary data called `account_transactions_aggregate`_
@@ -85,8 +72,6 @@ This table maps accounts and transactions that interact with that account.
8572

8673
| Field | Type | Primary Key | Description |
8774
| ----------------------------- | ------- | ----------- | ---------------------------------------------------------------------------------------------------------- |
88-
| coin_activities | Join | | Use the [Hasura explorer](https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql) to see these sub-fields. |
89-
| coin_activities_aggregate | Join | | Use the [Hasura explorer](https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql) to see these sub-fields. |
9075
| delegated_staking_activities | Join | | Use the [Hasura explorer](https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql) to see these sub-fields. |
9176
| fungible_asset_activities | Join | | References [fungible_asset_activities](#fungible_asset_activities). |
9277
| token_activities | Join | | Use the [Hasura explorer](https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql) to see these sub-fields. |
@@ -422,33 +407,32 @@ This table maps tokens, standards, and addresses to human readable names.
422407
| ans_v2_tn_index | token_name, token_standard |
423408
| current_ans_lookup_v2_pkey | domain, subdomain, token_standard |
424409

425-
<br/>
426-
# Deprecated Tables
410+
## Deprecated Tables
427411

428412
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.
429413

430-
| Table | Deprecation Date | Delete Date | Notes |
431-
| ------------------------------------------------------------- | ---------------- | ----------- | ----- |
432-
| address_version_from_move_resources | 6/7 | TBD | The move_resources table has been replaced with legacy_migration_v1.move_resources, which uses account_transactions in a view. To use the migrated view, you will need to backfill and run account_transactions processor. |
433-
| address_version_from_move_resources_aggregate | 6/7 | TBD | The move_resources table has been replaced with legacy_migration_v1.move_resources, which uses account_transactions in a view. To use the migrated view, you will need to backfill and run account_transactions processor. |
434-
| coin_activities | 7/22 | TBD | We will replace with fungible_asset_activities |
435-
| coin_activities_aggregate | 7/22 | TBD | We will replace with fungible_asset_activities |
436-
| coin_balances | 7/22 | TBD | Replace with fungible_asset_balances |
437-
| collection_datas | 7/22 | TBD | Replace with collection_v2 |
438-
| current_coin_balances | 7/22 | TBD | Replace with current_fungible_asset_balances |
439-
| current_token_ownerships | 7/22 | TBD | Replace with current_token_ownerships_v2 |
440-
| current_token_ownerships_aggregate | 7/22 | TBD | Replace with current_token_ownerships_v2 |
441-
| move_resources | 6/7 | TBD | Replace with account_transactions |
442-
| move_resources_aggregate | 6/7 | TBD | Replace with account_transactions |
443-
| nft_marketplace_v2_current_nft_marketplace_auctions | TBD | TBD | We're deprecating nft_marketplace processor so all the nft_marketplace tables should be deleted |
444-
| nft_marketplace_v2_current_nft_marketplace_collection_offers | TBD | TBD | We're deprecating nft_marketplace processor so all the nft_marketplace tables should be deleted |
445-
| nft_marketplace_v2_current_nft_marketplace_listings | TBD | TBD | We're deprecating nft_marketplace processor so all the nft_marketplace tables should be deleted |
446-
| nft_marketplace_v2_current_nft_marketplace_listings_aggregate | TBD | TBD | We're deprecating nft_marketplace processor so all the nft_marketplace tables should be deleted |
447-
| nft_marketplace_v2_current_nft_marketplace_token_offers | TBD | TBD | We're deprecating nft_marketplace processor so all the nft_marketplace tables should be deleted |
448-
| nft_marketplace_v2_nft_marketplace_activities | TBD | TBD | We're deprecating nft_marketplace processor so all the nft_marketplace tables should be deleted |
449-
| signatures | 6/21 | TBD | |
450-
| token_activities | 7/22 | TBD | Replace with token_activities_v2 |
451-
| token_activities_aggregate | 7/22 | TBD | Replace with token_activities_v2 |
452-
| token_datas | 7/22 | TBD | |
453-
| token_ownerships | 7/22 | TBD | Replace with token_ownerships_v2 |
454-
| tokens | 7/22 | TBD | Replaced with v2 tables |
414+
| Table | Notes |
415+
| ------------------------------------------------------------- | ----- |
416+
| address_version_from_move_resources | Replace with account_transactions |
417+
| address_events_summary | To query custom events, you should create a [No-Code Indexer](https://build.aptoslabs.com/docs/no-code-indexing) |
418+
| address_version_from_events | To query custom events, you should create a [No-Code Indexer](https://build.aptoslabs.com/docs/no-code-indexing) |
419+
| coin_activities | Replace with fungible_asset_activities |
420+
| coin_balances | Replace with current_fungible_asset_balances |
421+
| coin_infos | Replace with fungible_asset_metadata |
422+
| coin_supply | No replacement; non-realtime APT coin supply is available with this [query](https://github.com/aptos-labs/explorer/blob/main/analytics/apt_supply.sql) |
423+
| collection_datas | Replace with current_collections_v2 |
424+
| current_ans_lookup | Replace with current_ans_lookup_v2 |
425+
| current_coin_balances | Replace with current_fungible_asset_balances |
426+
| current_collection_datas | Replace with current_collections_v2 |
427+
| current_token_datas | Replace with current_token_datas_v2 |
428+
| current_token_ownerships | Replace with current_token_ownerships_v2 |
429+
| events_view | To query custom events, you should create a [No-Code Indexer](https://build.aptoslabs.com/docs/no-code-indexing) |
430+
| move_resources | Replace with account_transactions |
431+
| move_resources_view | Replace with account_transactions |
432+
| nft_marketplace_v2_* | Replace with [NFT Aggregator API](https://aptos.dev/en/build/indexer/nft-aggregator) |
433+
| token_activities | Replace with token_activities_v2 |
434+
| token_datas | Replace with current_token_datas_v2 |
435+
| token_ownerships | Replace with current_token_ownerships_v2 |
436+
| tokens | Replace with current_token_datas_v2 |
437+
| transactions | No replacement; non-realtime data is available in [BigQuery](https://console.cloud.google.com/marketplace/product/bigquery-public-data/crypto-aptos-mainnet-us) |
438+
| transactions_view | No replacement; non-realtime data is available in [BigQuery](https://console.cloud.google.com/marketplace/product/bigquery-public-data/crypto-aptos-mainnet-us) |

0 commit comments

Comments
 (0)