Skip to main content
Wallet actions like transfers and swaps are processed asynchronously. When your application initiates an action, the response includes an id for the created wallet action. Your application can use this ID to poll for the action’s current status.

Usage

Use the getAction method from the useWalletActions hook to fetch the current status of a wallet action.

Response

string
The unique identifier for the wallet action.
string
The ID of the wallet that initiated the action.
'swap' | 'transfer'
The type of the wallet action.
'pending' | 'succeeded' | 'rejected' | 'failed'
The current status of the action.
array
The steps of the wallet action. Only returned when ?include=steps is passed as a query parameter. Each step includes its own status, chain identifier, and transaction hash.
The response also includes type-specific fields depending on whether the action is a swap or transfer. See the API reference for the full response schema.

Including step details

By default, the response only returns the overall state of the action to provide visibility into whether it succeeded or failed. For more granular information, such as transaction hashes, chain IDs, and per-step statuses, pass ?include=steps as a query parameter.
The getAction method on the React and React Native useWalletActions hook does not yet support the include=steps query parameter. Use the REST API directly if you need step-level detail from a client-side app.

Listing all wallet actions

Use the listActions method from the useWalletActions hook to list wallet actions for a wallet.
The response includes a data array of wallet actions and a next_cursor field for pagination. See the API reference for the full request and response schema.

Polling recommendations

Wallet actions typically complete within a few seconds, but can take longer depending on network conditions. Poll infrequently and stop once the status reaches a terminal value (succeeded, rejected, or failed).

API reference

See the API reference for the full request and response schema, or the list endpoint for retrieving all actions for a wallet.