{
  "x402Version": 2,
  "id": 4171,
  "slug": "4171",
  "resource": "https://gblin.digital/api/x402/quote",
  "description": "Preview a GBLIN swap (buy ETH→GBLIN or sell GBLIN→ETH) with dynamic slippage and a MEV-safe minOut.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x0ebA5d314F4f5Dcb7A094953Fa9311a45172dd1B",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "amount": "0.01",
            "direction": "buy"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "amount_in_eth": "0.01",
            "direction": "buy",
            "expected_gblin_out": "27.853214",
            "fees": {
              "founder_eth": "0.000005",
              "stability_eth": "0.000005",
              "total_fee_bps": 10
            },
            "next_step": "Call contract.buyGBLIN(safe_min_gblin_out) with msg.value = amount_in_eth.",
            "safe_min_gblin_out": "27.156885",
            "slippage_buffer_bps": 250,
            "slippage_reason": "normal"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "amount": {
                    "description": "Input amount as a decimal string (ETH for buy, GBLIN for sell)",
                    "type": "string"
                  },
                  "direction": {
                    "description": "Swap direction: buy = ETH→GBLIN, sell = GBLIN→ETH",
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "direction",
                  "amount"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "gblin.digital",
  "lastUpdated": "2026-08-30T16:49:03.347Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-30T16:49:03.148Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "gblin.digital",
    "manifest_name": "gblin.digital",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}