getTransactionHistory
Return user-facing activity by merging rich local intents with the chain-reconstructed fallback. Local dependency parents and their note-level receive/spend events are hidden to avoid exposing planner internals or duplicating one user action after a rescan.
Import
import { getTransactionHistory } from "@0xcurvy/curvy-sdk/actions";Usage
const history = await getTransactionHistory({
accountId,
networkSlug,
config,
});Signature
function getTransactionHistory(parameters?: GetTransactionHistoryParameters): Promise<TransactionHistoryItem[]>Returns
Promise<TransactionHistoryItem[]>
The action resolves or returns the value shown in the signature.
Parameters
accountId
- Type:
string - Required: no
The account whose transaction records should be returned. Defaults to the active account.
const result = await getTransactionHistory({
accountId,
});networkSlug
- Type:
string - Required: no
Limit results to this network slug.
const result = await getTransactionHistory({
networkSlug,
});token
- Type:
string - Required: no
Vault token id as a decimal string.
const result = await getTransactionHistory({
token,
});limit
- Type:
number - Required: no
The maximum number of transaction records to return.
const result = await getTransactionHistory({
limit,
});config
- Type:
CurvyConfig - Required: no
Curvy config to use. Defaults to the ambient config.
const result = await getTransactionHistory({
config,
});Errors
Errors from config resolution and the underlying SDK operation are propagated to the caller.
Related
- Interacting with assets guide
executeIntent— Execute a handle returned by estimateIntent.
Source
packages/@0xcurvy/sdk/src/actions/history/getTransactionHistory.ts