Skip to content

NFT Aggregator Table Reference

This page documents the PostgreSQL tables generated and updated by the NFT Aggregator.
These tables power both the GraphQL API and REST API, and reflect the live state of marketplace activity on Aptos.

For querying, refer to:


Table NameDescription
nft_marketplace_activitiesHistorical data of all NFT marketplace events
current_nft_marketplace_listingLatest active listings per token
current_nft_marketplace_token_offerLatest active offers per token and buyer
current_nft_marketplace_collection_offerLatest active offers per collection
current_collections_v2Latest active collections
current_token_datas_v2Latest active tokens
current_token_ownerships_v2Latest active token ownerships
current_collection_ownerships_v2_viewLatest active collection ownerships
  • Use is_deleted = false to query only active records in current state tables.
  • The nft_marketplace_activities table is your source of truth for historical marketplace activity.

Historical table capturing all NFT marketplace events — listings, offers, sales, and more. Has an aggregate view for summary data called nft_marketplace_activities_aggregate.

Primary Key: txn_version, index, marketplace

Index NameColumns
idx_collection_event_tscollection_id, standard_event_type, block_timestamp DESC
idx_token_idtoken_data_id
idx_buyerbuyer
idx_sellerseller
idx_listing_idlisting_id
idx_offer_idoffer_id
idx_timestampblock_timestamp DESC
FieldTypeDescription
txn_versioni64Blockchain version of the transaction
indexi64Event index in the transaction
listing_idOption<String>Listing ID (if applicable)
offer_idOption<String>Offer ID (if applicable)
raw_event_typeStringRaw marketplace event type
standard_event_typeStringNormalized event type
creator_addressOption<String>Collection creator address
collection_idOption<String>Collection identifier
collection_nameOption<String>Collection name
token_data_idOption<String>Token identifier
token_nameOption<String>Token name
pricei64Price in Octas
token_amountOption<i64>Token amount (for bundles etc.)
buyerOption<String>Buyer’s address
sellerOption<String>Seller’s address
expiration_timeOption<String>Listing/offer expiration time
marketplaceStringMarketplace name
contract_addressStringContract address of the marketplace
json_dataserde_json::ValueInternal raw event payload (not public)
block_timestampNaiveDateTimeBlock timestamp of the event

Tracks current active listings. Updated in real-time.

Primary Key: token_data_id, marketplace

Index NameColumns
idx_current_nft_marketplace_listings_token_data_idtoken_data_id
idx_current_nft_marketplace_listings_collection_idcollection_id
idx_current_nft_marketplace_listings_collection_id_pricecollection_id, price
idx_current_nft_marketplace_listings_sellerseller
FieldTypeDescription
token_data_idStringToken identifier
listing_idOption<String>Listing ID
collection_idOption<String>Collection identifier
sellerStringSeller address
pricei64Listing price
token_amounti64Number of tokens listed
token_nameOption<String>Token name
standard_event_typeStringNormalized event type
is_deletedboolTrue if the listing is inactive
marketplaceStringMarketplace name
contract_addressStringMarketplace contract address
last_transaction_versioni64Last transaction version
last_transaction_timestampNaiveDateTimeLast update timestamp

Tracks current active token offers by token and buyer.

Primary Key: token_data_id, buyer, marketplace

Index NameColumns
idx_current_nft_marketplace_token_offers_token_data_idtoken_data_id
idx_current_nft_marketplace_token_offers_priceprice
idx_current_nft_marketplace_token_offers_buyerbuyer
FieldTypeDescription
token_data_idStringToken identifier
offer_idOption<String>Offer ID
buyerStringBuyer’s address
collection_idStringCollection identifier
pricei64Offer price
token_amountOption<i64>Token quantity
token_nameOption<String>Token name
standard_event_typeStringNormalized event type
bid_keyOption<i64>Unique bid key
is_deletedboolOffer active status
marketplaceStringMarketplace name
contract_addressStringMarketplace contract address
last_transaction_versioni64Last transaction version
last_transaction_timestampNaiveDateTimeLast update timestamp

Tracks current active collection-wide offers.

Primary Key: collection_offer_id

Index NameColumns
idx_current_nft_marketplace_collection_offers_collection_idcollection_id
idx_current_nft_marketplace_collection_offers_token_data_idtoken_data_id
idx_current_nft_marketplace_collection_offers_collection_offer_id_token_data_idcollection_offer_id, token_data_id
FieldTypeDescription
collection_offer_idStringUnique collection offer ID
token_data_idStringToken identifier
collection_idStringCollection identifier
buyerStringBuyer’s address
pricei64Offer price
remaining_token_amountOption<i64>Remaining quantity in the offer
standard_event_typeStringNormalized event type
is_deletedboolOffer active status
marketplaceStringMarketplace name
contract_addressStringMarketplace contract address
last_transaction_versioni64Last transaction version
last_transaction_timestampNaiveDateTimeLast update timestamp

More info on tables (e.g. current_token_datas_v2, current_collections_v2, current_token_ownerships_v2, current_collection_ownerships_v2_view) are available here