Retrieve Ordinals Activities API Documentation

·

This API interface returns all transaction records under a specific Ordinals collection, including comprehensive details about each transaction. The data is sorted in descending order by transaction time by default.

API Endpoint

Request Method: POST
Endpoint:
https://web3.okx.com/api/v5/mktplace/nft/ordinals/trade-history

Request Parameters

ParameterTypeRequiredDescription
slugStringYesUnique identifier of the collection (e.g., bitcoin-punks)
cursorStringNoPagination cursor for large datasets
limitStringNoNumber of records per page (default: 10, max: 100)
sortStringNoSort order (desc for descending, asc for ascending)
isBrc20BooleanNoFilter by BRC-20 tokens (default: true)
orderSourceListInteger[]NoPlatform codes (e.g., [34,54] for OKX/Magic Eden)
tradeWalletAddressStringNoWallet address involved in transactions
typeStringNoTransaction types (e.g., SALE,LIST)

Response Parameters

Returns an array of Ordinals Activities Model objects with these fields:

FieldTypeDescription
fromAddressStringSender's wallet address
inscriptionIdStringUnique inscription ID (e.g., 12345abc)
priceStringTransaction price in BTC
timestampLongUnix timestamp of transaction
toAddressStringReceiver's wallet address
unitPriceStringPrice per unit (for bulk orders)
amountStringQuantity of inscriptions transferred
isBrc20Booleantrue for BRC-20 tokens
orderSourceIntegerPlatform code (e.g., 34 for OKX)
orderSourceNameStringPlatform name (e.g., Magic Eden)
typeStringTransaction type (e.g., SALE)

Example Use Cases

  1. Tracking NFT Sales: Monitor recent sales of a Bitcoin-based Ordinals collection.
  2. Wallet Activity Analysis: Retrieve all transactions involving a specific wallet address.
  3. BRC-20 Token Transactions: Filter transactions to only show BRC-20 token transfers.

👉 Explore more Web3 APIs

FAQs

How do I handle pagination?

Use the cursor and limit parameters to navigate through large datasets. The API returns a nextCursor field in responses when more data is available.

Can I filter by transaction type?

Yes! Specify transaction types in the type parameter (e.g., type=SALE,LIST).

What's the difference between price and unitPrice?

Why isn't my wallet address returning data?

Ensure the address is correctly formatted and has participated in transactions for the specified collection.

👉 Get started with Ordinals API

Best Practices