Construct a new BaseAPI object.
An instance of the Premia SDK.
Readonly
premiaGet a single transaction given its hash.
Uses caching with a one-minute time-to-live.
The hash of the transaction to retrieve.
A promise that resolves to the requested transaction.
Get a list of transactions with optional filter, search, order, and pagination parameters.
Uses caching with a one-minute time-to-live.
The filter for the transaction search. (all, add, remove)
The search query.
Optional
orderBy: string = 'timestamp'The attribute by which to order the transactions.
Optional
order: string = 'asc'The order in which to return the transactions (asc, desc).
Optional
first: number = 100The maximum number of transactions to return.
Optional
skip: number = 0The number of transactions to skip.
Optional
type: stringThe type of transactions to return. (token, vault)
Optional
poolAddress: stringOptional
account: stringThe account associated with the transactions to return.
Optional
startTime: numberThe start time for the transactions to return.
Optional
endTime: numberThe end time for the transactions to return.
Optional
searchInput: stringAn additional search input.
A promise that resolves to a list of transactions.
Get a single vault transaction given its hash.
Uses caching with a one-minute time-to-live.
The hash of the vault transaction to retrieve.
A promise that resolves to the requested vault transaction.
Get a list of vault transactions with optional filter, search, order, and pagination parameters.
Uses caching with a one-minute time-to-live.
The filter for the vault transaction search. (all, add, remove)
The search query.
Optional
orderBy: string = 'timestamp'The attribute by which to order the vault transactions.
Optional
order: string = 'asc'The order in which to return the vault transactions (asc, desc).
Optional
first: number = 100The maximum number of vault transactions to return.
Optional
skip: number = 0The number of vault transactions to skip.
Optional
type: stringThe type of vault transactions to return.
Optional
vaultAddress: stringThe address of the vault associated with the vault transactions to return.
Optional
account: stringThe account associated with the vault transactions to return.
Optional
startTime: numberThe start time for the vault transactions to return.
Optional
endTime: numberThe end time for the vault transactions to return.
Optional
searchInput: stringAn additional search input.
A promise that resolves to a list of vault transactions.
Generated using TypeDoc
TransactionAPI is a class extending the BaseAPI class, providing methods for interacting with transactions and vault transactions. It includes methods for getting a single transaction or vault transaction and for getting multiple transactions or vault transactions with optional parameters for more specific queries.