curl --request GET \
--url https://api.example.com/v2/amplify/deposit \
--header 'x-api-key: <api-key>'{
"transaction": {
"to": "0xabcdef1234567890abcdef1234567890abcdef12",
"value": "0",
"data": "0x47e7ef24...",
"abi": [
"<string>"
],
"functionName": "deposit",
"args": [
"<string>"
]
}
}Returns ABI-encoded calldata for a vault deposit. Identify the vault by its BoringVault contract address. Provide a permit signature from the authorize step (GET /v2/core/permit) to use the gas-free permit path; omit to use a standard approve+deposit flow. Note: permit signatures are bound to a specific spender, amount, nonce, and deadline, so replay is bounded — but because they are passed as query params they may appear in access logs, browser history, and proxy/CDN caches. Callers should use short permitDeadline values to minimize the exposure window.
curl --request GET \
--url https://api.example.com/v2/amplify/deposit \
--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 deposit
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Amount to deposit in token base units (decimal string)
"1000000"
User wallet address — signs and submits the deposit transaction. Also used as the default share recipient when to is omitted.
"0x1234567890abcdef1234567890abcdef12345678"
Destination address that receives the vault shares. Defaults to userAddress when omitted. Must match the on-chain to argument on DistributorCodeDepositor.deposit().
"0x1234567890abcdef1234567890abcdef12345678"
EVM chain ID
1
EIP-2612 permit signature (65-byte hex, from the authorize step). Required when permitDeadline is provided.
"0xabc..."
Permit deadline as Unix timestamp. Required when permitSignature is provided.
9999999999
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