Usage
Parameters
Return Value
Returns aPromise<Transaction> with the full transaction record including id, transactionHash, status, senderAddress, destinationAddress, amount, token, and timestamps.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fetches a single transaction by its hash or internal ID.
const transaction = await sdk.getTransaction("0x...", bearerToken);
| Parameter | Type | Required | Description |
|---|---|---|---|
hashOrId | string | Yes | Transaction hash (0x...) or internal database ID |
bearerToken | string | No | JWT token. Falls back to apiSecretKey if not provided |
Promise<Transaction> with the full transaction record including id, transactionHash, status, senderAddress, destinationAddress, amount, token, and timestamps.
// Fetch by transaction hash
const tx = await sdk.getTransaction(
"0x04abc...def",
bearerToken,
);
console.log(tx.status, tx.amount, tx.token);
// Fetch by internal ID
const tx2 = await sdk.getTransaction("tx-123", bearerToken);
Was this page helpful?
