POSTEncode wallet transactions
Encode wallet transactions
Authorization
x-api-keystringrequiredheaderPlayground key
You're using a shared playground keyCreate a free account and get your own API keys from the dashboard.
Get your keysBody
application/jsonsmartContractDelegationAddressstringrequiredwalletAddressstringrequiredResponse
Encode 7702 wallet transactions successful.
requestIdstringrequiredA unique ID for the request.
encodedobjectrequiredPOST
/wallet/encode_7702Request
curl --request POST \
--url 'https://trade-api.gateway.uniswap.org/v1/wallet/encode_7702' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"calls": "<object[]>",
"smartContractDelegationAddress": "<string>",
"walletAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}'Response
200
{ "requestId": "<string>", "encoded": { "to": "<string>", "from": "<string>", "data": "<string>", "value": "<string>", "gasLimit": "<string>", "chainId": "<number>", "maxFeePerGas": "<string>", "maxPriorityFeePerGas": "<string>", "gasPrice": "<string>" }}