List transactions
Parameters
client.listTransactions() takes an optional params object. Call it with no arguments to fetch the most recent transactions without filters.
This method does not require a separate auth token. The client uses stored credentials from an active connection.
Result
client.listTransactions() returns a Result<{ data: Transaction[]; pageInfo: PaginationInfo }, GetTransactionsError>.
Result envelope
Result<{ data: Transaction[]; pageInfo: PaginationInfo }, GetTransactionsError>
Transaction
Each entry in data is a full transaction. Key fields include id, status, source.amount, destination.amount, and createdAt. See the Transaction object for every field.
PaginationInfo
Cursor-based pagination details returned alongside the data. See the List transactions API for the exact field names used in this response.
GetTransactionsError
GetTransactionsError is the standard MoonPay Platform API error shape, DevPlatformApiError.
Example: page through transactions
Use the cursor returned inpageInfo to fetch additional pages. The exact cursor field name is documented in the List transactions API response.
Page through transactions