curl --request GET \
--url https://api.example.com/v2/amplify/withdraw \
--header 'x-api-key: <api-key>'{
"transaction": {
"to": "0xabcdef1234567890abcdef1234567890abcdef12",
"value": "0",
"data": "0x47e7ef24...",
"abi": [
"<string>"
],
"functionName": "deposit",
"args": [
"<string>"
]
}
}Returns ABI-encoded calldata for submitting a vault withdrawal order. Identify the vault by its BoringVault contract address. The caller must have pre-approved the WithdrawQueue to spend vault shares.
curl --request GET \
--url https://api.example.com/v2/amplify/withdraw \
--header 'x-api-key: <api-key>'{
"transaction": {
"to": "0xabcdef1234567890abcdef1234567890abcdef12",
"value": "0",
"data": "0x47e7ef24...",
"abi": [
"<string>"
],
"functionName": "deposit",
"args": [
"<string>"
]
}
}API key in format: pxl_<public_id>_
BoringVault contract address (0x + 40 hex chars)
"0xbbbb000000000000000000000000000000000001"
ERC-20 token address to receive upon withdrawal
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Vault share amount to redeem, in share token base units (decimal string)
"1000000000000000000"
User wallet address — submits the withdrawal order. Also used as the default intendedDepositor, receiver, and refundReceiver when those optional params are omitted.
"0x1234567890abcdef1234567890abcdef12345678"
Address treated as the depositor of record for the withdrawn shares (on-chain SubmitOrderParams.intendedDepositor). Defaults to userAddress when omitted.
"0x1234567890abcdef1234567890abcdef12345678"
Address that receives the withdrawn wantAsset on settlement (on-chain SubmitOrderParams.receiver). Defaults to userAddress when omitted.
"0x1234567890abcdef1234567890abcdef12345678"
Address that receives refunded shares if the order is cancelled (on-chain SubmitOrderParams.refundReceiver). Defaults to userAddress when omitted.
"0x1234567890abcdef1234567890abcdef12345678"
EVM chain ID
1
Controls response fields. "encoded" (default): ABI-encoded calldata only. "full": calldata + ABI fragment, function name, args. "structured": ABI fragment, function name, args only.
encoded, full, structured Show child attributes