Get Inscription Transactions | On-Chain Information Query via Wallet API

Β·

In the rapidly evolving world of Web3 and blockchain technology, accessing accurate, real-time on-chain data is essential for developers, analysts, and crypto enthusiasts alike. One of the most powerful tools in this space is the ability to query inscription transaction details using just a transaction hash. Whether you're tracking BRC-20 tokens, Runes, ARC-20 assets, or Ordinals NFTs, having a reliable API endpoint makes all the difference.

This guide dives deep into how you can retrieve detailed inscription transaction data across multiple Bitcoin-based chains β€” including BTC and Fractal Bitcoin β€” using a secure and scalable Wallet API. Designed for developers integrating Web3 services, this documentation ensures seamless access to critical blockchain insights.

πŸ‘‰ Discover powerful on-chain analytics tools that simplify blockchain development


Querying Inscription Transaction Details

The core functionality of this API allows users to fetch comprehensive transaction information by providing a transaction hash (txHash). This feature supports various token standards built on Bitcoin’s ecosystem, enabling granular visibility into token behavior and movement.

Supported Token Standards

The system currently supports the following protocols:

Additionally, BRC-20 transaction queries are also supported on the Fractal Bitcoin chain, expanding cross-chain interoperability for developers building on alternative BTC layers.


API Endpoint Overview

To retrieve inscription transaction details, use the following RESTful GET request:

GET https://web3.okx.com/api/v5/wallet/post-transaction/inscription-transaction-detail-by-txhash

This endpoint is optimized for speed and accuracy, returning structured JSON responses with full transaction metadata.


Request Parameters

Each request must include specific parameters to ensure precise data retrieval. Below are the required and optional fields:

ParameterTypeRequiredDescription
chainIndexStringYesUnique identifier for the target blockchain (e.g., BTC, Fractal BTC)
txHashStringYesThe transaction hash to query
protocolStringNoProtocol type: 1 (BRC-20), 2 (ARC-20), 3 (Runes), 4 (Ordinals NFT), 5 (SRC-20). Defaults to BRC-20 if not specified
cursorStringNoPagination cursor for retrieving subsequent result sets
limitStringNoNumber of records to return per call; default is 20, maximum is 100

These parameters allow flexible querying, whether you're debugging a single transaction or analyzing large-scale token activity.


Response Structure

Upon successful request, the API returns a structured JSON object containing detailed transaction data.

Key Response Fields

This level of detail empowers developers to build robust dashboards, audit trails, and analytics engines for Bitcoin-native assets.


Use Cases and Practical Applications

Understanding inscription transactions opens up numerous possibilities:

πŸ‘‰ Access advanced Web3 APIs to power your next blockchain project


Frequently Asked Questions (FAQ)

What is an inscription transaction?

An inscription transaction refers to the process of embedding data β€” such as tokens or digital art β€” directly onto a Bitcoin UTXO using protocols like Ordinals or Runes. These transactions create unique digital assets that can be tracked and transferred across the network.

Can I query pending inscription transactions?

No. The API only returns confirmed transactions with a status of either success or fail. Pending transactions are not supported due to potential malleability and confirmation uncertainty.

How do I distinguish between BRC-20 and Runes tokens in the response?

Use the protocol field:

Is there rate limiting on this API?

While specific rate limits are not disclosed publicly, it's recommended to implement retry logic with exponential backoff and cache frequently accessed transaction hashes to optimize performance.

Does this work with testnet or only mainnet?

Currently, the API supports mainnet chains only. Ensure you're using live network transaction hashes for accurate results.

How often is the data updated?

Transaction data is synced in near real-time with blockchain confirmations. Once a block is finalized on-chain, associated inscription details become immediately available via the API.


Final Thoughts

As Bitcoin continues to evolve beyond simple peer-to-peer payments, tools that unlock deeper on-chain insights become increasingly valuable. With support for BRC-20, Runes, ARC-20, SRC-20, and Ordinals NFTs β€” across both BTC and Fractal Bitcoin β€” this Wallet API delivers unmatched flexibility for developers building the next generation of Web3 applications.

Whether you're verifying a mint event, tracing token lineage, or building a full-fledged explorer, having direct access to structured inscription data streamlines development and enhances user trust.

πŸ‘‰ Start exploring blockchain data with powerful Web3 API tools today

By leveraging this service, developers gain a competitive edge in delivering fast, transparent, and reliable blockchain experiences β€” all without managing node infrastructure or parsing raw blockchain data manually.