Wait for transaction by hash

Description

Same as /transactions/by_hash, but will wait for a pending transaction to be committed. To be used as a long poll optimization by clients, to reduce latency caused by polling. The "long" poll is generally a second or less but dictated by the server; the client must deal with the result as if the request was a normal /transactions/by_hash request, e.g., by retrying if the transaction is pending.

Authentication

Authentication is via an 'Authorization: Bearer YOUR_API_ACCESS_KEY' header (which you must add to the sample requests).

Path Params
string
required

Hash of transaction to retrieve

Headers
string
required

An API Access Key tied to the network you want to interact with (Testnet, Mainnet).

Responses

Response body
Headers
object
uint8

Chain ID of the current chain

uint64

Current ledger version of the chain

uint64

Oldest non-pruned ledger version of the chain

uint64

Current timestamp of the chain

uint64

Current epoch of the chain

uint64

Current block height of the chain

uint64

Oldest non-pruned block height of the chain

uint64

The cost of the call in terms of gas

string

Cursor to be used for endpoints that support cursor-based
pagination. Pass this to the start field of the endpoint
on the next call to get the next page of results.

Language