getTransactions

suspend fun getTransactions(before: String? = null, after: String? = null, status: Status? = null, orderBy: OrderBy? = null, sort: Order? = null, limit: Int? = null, incoming: Boolean? = null, outgoing: Boolean? = null, sourceType: SourceType? = null, sourceId: String? = null, destType: DestType? = null, destId: String? = null, assets: List<String>? = null, txHash: String? = null, sourceWalletId: String? = null, destWalletId: String? = null, pageCursor: String? = null): Result<PaginatedResponse<TransactionResponse>>

Get transactions history Returns a list of transactions that were created within the specified time frame.

Return

A Result containing a PaginatedResponse of TransactionResponse if the transactions were successfully retrieved, or an EmbeddedWalletException in case of failure.

Parameters

before

Unix timestamp in milliseconds. Returns only transactions created before the specified date.

after

Unix timestamp in milliseconds. Returns only transactions created after the specified date.

status

You can filter by one of the statuses.

orderBy

OrderBy The field to order the results by Note: Ordering by a field that is not createdAt may result with transactions that receive updates as you request the next or previous pages of results, resulting with missing those transactions.

sort

The direction to order the results by (optional)

limit

Limits the number of results. If not provided, a limit of 200 will be used. The maximum allowed limit is 500 (default to 200)

incoming

Returns incoming transactions.

outgoing

Returns outgoing transactions.

sourceType

SourceType The source type of the transaction.

sourceId

The source ID of the transaction.

destType

DestType The destination type of the transaction.

destId

The destination ID of the transaction.

assets

A list of assets to filter by.

txHash

Returns only results with a specified txHash.

sourceWalletId

Returns only results where the source is a specific end user wallet.

destWalletId

Returns only results where the destination is a specific end user wallet.

See also