submit

View as Markdown
Submit a gasless swap

Headers

0x-api-keystringRequired
Visit dashboard.0x.org to get your API Key
0x-versionstringRequired
API version

Request

This endpoint expects an object.
chainIdintegerRequired>=0
Chain ID. See [here](https://0x.org/docs/developer-resources/supported-chains) for the list of supported chains
tradeobjectRequired
The trade object from the quote endpoint including its signature
approvalobject or nullOptional
The gasless approval object from the quote endpoint including its signature

Response

Successful response
tradeHashstring
The hash for the trade according to [EIP-712](https://eips.ethereum.org/EIPS/eip-712)
typeenum

The transaction type determined by the trade route. This is currently just settler_metatransaction and could expand to more types in the future

Allowed values:
zidstring
The unique ZeroEx identifier of the request

Errors