Skip to main content
POST
/
wallet
/
encode_7702
Encode wallet transactions
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>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
calls
object[]
required

Array of transaction requests to be encoded. All transactions must have the same chainId.

smartContractDelegationAddress
string
required

The address of the smart contract delegation implementation to use.

Response

Encode 7702 wallet transactions successful.

requestId
string
required

A unique ID for the request.

encoded
object
required
I