Address Dimension Query: Transaction History and On-Chain Data Retrieval

·

Understanding Address-Based Queries

Address dimension queries allow you to retrieve transaction histories associated with specific blockchain addresses, sorted in reverse chronological order. This functionality is essential for:

API Request Structure

Endpoint

GET `https://web3.okx.com/api/v5/wallet/post-transaction/transactions-by-address`

Required Parameters

ParameterTypeDescription
addressStringTarget blockchain address
chainsStringComma-separated chain identifiers (max 50)

Optional Parameters

ParameterTypeDescription
tokenAddressStringFilter by token contract address
begin/endStringTimestamp range (milliseconds)
cursorStringPagination marker
limitStringResults per query (default: 20)

👉 Discover advanced blockchain query techniques

Response Data Structure

The API returns comprehensive transaction details including:

| Field            | Type    | Description |
|------------------|---------|-------------|
| `transactionList`| Array   | Complete transaction records |
| `cursor`         | String  | Pagination reference |

Practical Implementation

Key Features

👉 Explore real-world API implementation examples

FAQ Section

How do I handle pagination in large transaction sets?

Use the cursor parameter from the response to sequentially request additional batches of transactions.

What's the difference between iType values?

How current is the transaction data?

All data reflects real-time blockchain state with typical propagation delays of 1-2 blocks.

Can I filter by transaction status?

While the API doesn't support direct status filtering, you can process the txStatus field locally.

What's the maximum historical depth available?

The API provides complete transaction history for any address since its creation.

How are multi-chain queries handled?

Specify multiple chains in the chains parameter to get consolidated results across networks.

Best Practices

This comprehensive guide provides everything developers need to implement robust address-based query functionality. For more specialized requirements, consult the full API documentation.