Gasless

Submit a gasless swap

post/gasless/submit

Request

  • Base URL
    https://api.0x.org
  • Auth
    none declared. Required headers: 0x-api-key, 0x-version

Headers

0x-api-keystring required

Visit dashboard.0x.org to get your API Key

0x-versionstring required
Example:v2

API version

Request body

chainIdinteger required

Chain ID. See here for the list of supported chains

Response

Successful response

tradeHashstring required

The hash for the trade according to EIP-712

type'settler_metatransaction' required

The transaction type for a Gasless trade

zidstring required

The unique ZeroEx identifier of the request

Changes

    • info

      added the new erc7597Permit enum value to the request property /

    • breaking

      added the new required request property ///

    • breaking

      added the new required request property ///

    • breaking

      added the new required request property ///

    • breaking

      added the new required request property ///

    • breaking

      added the new required request property ///

    • breaking

      removed subschema #1 subschema #2 from the // request property anyOf list

    • breaking

      removed the enum value settler_intent of the request property /

    • breaking

      the // request property type changed from no type to object

    • info

      removed the settler_intent enum value from the response property for the response status