OpenSea · Schema
SwapExecuteRequest
Request body for executing a token swap
NFTMarketplaceWeb3BlockchainTradingDigital Assets
Properties
| Name | Type | Description |
|---|---|---|
| from_assets | array | Tokens to swap from (at least one required) |
| to_assets | array | Tokens to swap to (at least one required) |
| address | string | Wallet address executing the swap |
| recipient | string | Recipient address (defaults to sender address) |
| slippage_tolerance | number | Slippage tolerance as a decimal (0.0 to 0.5, default: 0.01) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://opensea.io/schemas/SwapExecuteRequest",
"title": "SwapExecuteRequest",
"type": "object",
"description": "Request body for executing a token swap",
"properties": {
"from_assets": {
"type": "array",
"description": "Tokens to swap from (at least one required)",
"items": {
"$ref": "#/components/schemas/SwapAssetInput"
}
},
"to_assets": {
"type": "array",
"description": "Tokens to swap to (at least one required)",
"items": {
"$ref": "#/components/schemas/SwapAssetInput"
}
},
"address": {
"type": "string",
"description": "Wallet address executing the swap",
"example": "0x1234567890abcdef1234567890abcdef12345678"
},
"recipient": {
"type": "string",
"description": "Recipient address (defaults to sender address)"
},
"slippage_tolerance": {
"type": "number",
"format": "double",
"description": "Slippage tolerance as a decimal (0.0 to 0.5, default: 0.01)",
"example": 0.01
}
},
"required": [
"address",
"from_assets",
"to_assets"
]
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/SwapExecuteRequest"
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.