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

To get the status of a wallet action, make a GET request to
https://api.privy.io/v1/wallets/{wallet_id}/actions/{action_id}

Response

id
string
The unique identifier for the wallet action.
wallet_id
string
The ID of the wallet that initiated the action.
type
'swap' | 'transfer'
The type of the wallet action.
status
'pending' | 'succeeded' | 'rejected' | 'failed'
The current status of the action.
StatusDescription
pendingAt least one step is still in progress.
succeededAll steps completed successfully.
rejectedFailed before any onchain effects. Safe to retry.
failedSomething went wrong and there may be onchain effects. Inspect steps for details.
steps
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.
curl https://api.privy.io/v1/wallets/{wallet_id}/actions/{action_id}?include=steps \
  -u "<your-privy-app-id>:<your-privy-app-secret>" \
  -H "privy-app-id: <your-privy-app-id>"

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.