Preview a GBLIN swap (buy ETH→GBLIN or sell GBLIN→ETH) with dynamic slippage and a MEV-saf
Preview a GBLIN swap (buy ETH→GBLIN or sell GBLIN→ETH) with dynamic slippage and a MEV-safe minOut.
1000 (raw units)
price
3
calls / 30d
1
unique payers
2026-08-30
updated
Provider
gblin.digital · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x0ebA5d314F4f5Dcb7A094953Fa9311a45172dd1B",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"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"
}
}
}Use it
curl
curl "https://gblin.digital/api/x402/quote" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://gblin.digital/api/x402/quote");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://gblin.digital/api/x402/quote")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4171.json, and this resource appears in /discovery/resources and /discovery/search.