To execute a transfer, make aDocumentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
POST request to /v1/wallets/{wallet_id}/transfer.
Body
In the body of the request, pass the following parameters.The source asset, amount, and chain for the transfer. Specify either
asset (for named assets) or
asset_address (for custom tokens), not both.The destination for the transfer.
Whether the
source.amount refers to the input token or the output token. Defaults to
exact_input.The maximum allowed slippage in basis points (1 bps = 0.01%). Must be between
0 and 10000.
Only relevant for cross-chain or cross-asset transfers.Response
The endpoint returns a200 response with a pending wallet action resource.
The transfer action is processed asynchronously. The response contains a pending wallet
action resource with
status: "pending" that Privy processes in the
background.The unique identifier for the wallet action.
The current status of the action.
The ID of the wallet initiating the transfer.
The ISO 8601 timestamp for when the action was created.
The type of action. For transfers, this is always
transfer.The named asset being transferred (e.g.
"usdc", "eth"). Present when the transfer was
initiated with a named asset; omitted for custom-token transfers.The token contract address (EVM) or mint address (Solana) of the transferred asset. Present when
the transfer was initiated with
asset_address.The number of decimals for the transferred token. Present when the transfer was initiated with
asset_address and the decimals were resolved on-chain.The amount sent on the source chain as a decimal string (e.g.
"1.5"). Omitted for exact_output
cross-chain transfers until the source amount is determined.The chain the transfer is sent from (e.g.
"base", "ethereum").The recipient wallet address.
The destination asset for cross-asset transfers. Omitted for same-asset transfers.
The destination chain for cross-chain transfers. Omitted for same-chain transfers.
The amount received on the destination chain. Populated immediately for
exact_output transfers,
or after fill confirmation for exact_input cross-chain transfers.Present on
rejected or failed actions when available. Contains a message string with a
human-readable description of the failure, and an optional details field with additional
context.
