0x · Schema

0x Gasless Trade

A meta-transaction trade submitted via POST /gasless/submit. The taker signs Permit2 and the trade off-chain; 0x relayers submit on-chain. Fees are deducted from the sell token.

CryptocurrencyDeFiDEX AggregatorSwapGaslessCross-ChainPermit2LiquidityTrade AnalyticsWeb3SettlementSmart Contracts

Properties

Name Type Description
tradeHash string Unique trade hash to poll with GET /gasless/status/{tradeHash}.
chainId integer
approval objectnull Approval payload — token, signature type (Permit, Permit2, ExecuteMetaTransaction), and the EIP-712 typed data signed by the taker.
trade object The trade payload (Permit2-based meta-transaction).
fees object
View JSON Schema on GitHub

JSON Schema

0x-gasless-trade-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/0x/main/json-schema/0x-gasless-trade-schema.json",
  "title": "0x Gasless Trade",
  "description": "A meta-transaction trade submitted via POST /gasless/submit. The taker signs Permit2 and the trade off-chain; 0x relayers submit on-chain. Fees are deducted from the sell token.",
  "x-schema-source": "openapi",
  "type": "object",
  "properties": {
    "tradeHash": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{64}$",
      "description": "Unique trade hash to poll with GET /gasless/status/{tradeHash}."
    },
    "chainId": {
      "type": "integer"
    },
    "approval": {
      "type": [
        "object",
        "null"
      ],
      "description": "Approval payload \u2014 token, signature type (Permit, Permit2, ExecuteMetaTransaction), and the EIP-712 typed data signed by the taker.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "permit",
            "permit2",
            "executeMetaTransaction"
          ]
        },
        "hash": {
          "type": "string"
        },
        "eip712": {
          "type": "object"
        }
      }
    },
    "trade": {
      "type": "object",
      "description": "The trade payload (Permit2-based meta-transaction).",
      "properties": {
        "type": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        },
        "eip712": {
          "type": "object"
        }
      }
    },
    "fees": {
      "type": "object",
      "properties": {
        "integratorFee": {
          "type": [
            "object",
            "null"
          ]
        },
        "zeroExFee": {
          "type": [
            "object",
            "null"
          ]
        },
        "gasFee": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    }
  },
  "required": [
    "chainId",
    "trade"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/0x-gasless-trade"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.