OpenSea · Example Payload

Get_Swap_Quote

NFTMarketplaceWeb3BlockchainTradingDigital Assets

Get_Swap_Quote is an example object payload from OpenSea, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathrequestresponse

Example Payload

Raw ↑
{
  "operationId": "get_swap_quote",
  "method": "GET",
  "path": "/api/v2/swap/quote",
  "request": {
    "parameters": {
      "from_chain": "string",
      "from_address": "string",
      "to_chain": "string",
      "to_address": "string",
      "quantity": "string"
    }
  },
  "response": {
    "200": {
      "quote": {
        "total_price_usd": 1850.5,
        "total_cost_usd": 1869,
        "slippage_tolerance": 0.01,
        "estimated_duration_ms": 30000,
        "marketplace_fee_bps": 50
      },
      "transactions": [
        {
          "chain": "ethereum",
          "to": "string",
          "data": "string",
          "value": "string"
        }
      ]
    }
  }
}