Uniswap · Schema

Encode4337Response

Response containing the encoded ERC-4337 UserOperation with gas and sponsorship details.

BlockchainCryptocurrencyDeFiDecentralized ExchangeLiquiditySwaps

Properties

Name Type Description
requestId string Unique identifier for this request.
userOperation object
sponsorMetadata object
gasSponsored boolean Whether gas for this operation is sponsored by a paymaster.
gasSponsorshipRejectionReason string Reason gas sponsorship was not granted. Present only when `gasSponsored` is `false`.
View JSON Schema on GitHub

JSON Schema

uniswap-encode4337-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/uniswap/refs/heads/main/json-schema/uniswap-encode4337-response-schema.json",
  "title": "Encode4337Response",
  "description": "Response containing the encoded ERC-4337 UserOperation with gas and sponsorship details.",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "description": "Unique identifier for this request."
    },
    "userOperation": {
      "$ref": "#/components/schemas/UserOperation"
    },
    "sponsorMetadata": {
      "$ref": "#/components/schemas/Encode4337SponsorMetadata"
    },
    "gasSponsored": {
      "type": "boolean",
      "description": "Whether gas for this operation is sponsored by a paymaster."
    },
    "gasSponsorshipRejectionReason": {
      "type": "string",
      "description": "Reason gas sponsorship was not granted. Present only when `gasSponsored` is `false`."
    }
  },
  "required": [
    "requestId",
    "userOperation",
    "gasSponsored"
  ]
}