Skip to main content
GET
/
v1
/
wallets
/
{wallet_id}
/
actions
/
{action_id}
Get wallet action
curl --request GET \
  --url https://api.privy.io/v1/wallets/{wallet_id}/actions/{action_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'privy-app-id: <privy-app-id>'
{
  "id": "cm7oxq1el000e11o8iwp7d0d0",
  "status": "pending",
  "wallet_id": "fmfdj6yqly31huorjqzq38zc",
  "type": "swap",
  "caip2": "eip155:1",
  "input_token": "native",
  "output_token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "input_amount": null,
  "output_amount": null
}

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

Headers

privy-app-id
string
required

ID of your Privy app.

privy-authorization-signature
string

Request authorization signature. If multiple signatures are required, they should be comma separated.

Path Parameters

wallet_id
string
required

ID of the wallet.

action_id
string<uuid>
required

ID of the wallet action.

Response

200 - application/json

The wallet action with its current status.

Response for a swap action.

id
string
required

The ID of the wallet action.

status
enum<string>
required

The current status of the wallet action.

Available options:
pending,
succeeded,
rejected,
failed
wallet_id
string
required

The ID of the wallet involved in the action.

type
enum<string>
required
Available options:
swap
caip2
string
required

CAIP-2 chain identifier for the swap.

input_token
string
required

Token address or "native" for the token being sold.

output_token
string
required

Token address or "native" for the token being bought.

input_amount
string | null
required

Exact base-unit amount of input token. Populated after on-chain confirmation.

output_amount
string | null
required

Exact base-unit amount of output token. Populated after on-chain confirmation.

steps
(EVMTransactionWalletActionStep · object | EVMUserOperationWalletActionStep · object)[]

The steps of the wallet action. Only returned if ?include=steps is provided.

A wallet action step consisting of an EVM transaction.