Encodes a list of transactions into a single transaction for smart contract wallet execution. All transactions must have the same chainId.
cURL
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": [ { "to": "<string>", "from": "<string>", "data": "<string>", "value": "<string>", "gasLimit": "<string>", "chainId": 1, "maxFeePerGas": "<string>", "maxPriorityFeePerGas": "<string>", "gasPrice": "<string>" } ], "smartContractDelegationAddress": "<string>" }'
{ "requestId": "<string>", "encoded": { "to": "<string>", "from": "<string>", "data": "<string>", "value": "<string>", "gasLimit": "<string>", "chainId": 1, "maxFeePerGas": "<string>", "maxPriorityFeePerGas": "<string>", "gasPrice": "<string>" } }
Encode 7702 wallet transactions successful.
The response is of type object.
object