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>",
      "chainId": 1,
      "gasLimit": "<string>",
      "maxFeePerGas": "<string>",
      "maxPriorityFeePerGas": "<string>",
      "gasPrice": "<string>"
    }
  ],
  "smartContractDelegationAddress": "<string>",
  "walletAddress": "<string>"
}
'
{
  "requestId": "<string>",
  "encoded": {
    "to": "<string>",
    "from": "<string>",
    "data": "<string>",
    "value": "<string>",
    "chainId": 1,
    "gasLimit": "<string>",
    "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.

Pattern: ^(0x)?[0-9a-fA-F]{40}$
walletAddress
string
required

The address of the wallet for which the transactions will be encoded.

Pattern: ^(0x)?[0-9a-fA-F]{40}$

Response

Encode 7702 wallet transactions successful.

requestId
string
required

A unique ID for the request.

encoded
object
required