{"openapi":"3.1.0","info":{"title":"Igneos Systems data API (x402)","version":"1","description":"Pay-per-call Base on-chain data and domain security checks for AI agents. USDC on Base (eip155:8453) via x402 V2. No account, no API key. MCP: https://igneos.systems/mcp.php","x-mcp-endpoint":"https://igneos.systems/mcp.php","x-guidance":"Read-only Base on-chain data and domain DNS/RDAP checks, priced per call in USDC on Base (eip155:8453) via x402 V2. Call any paid GET route with its query parameters: an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header naming the exact USDC amount and payTo; sign it and retry with PAYMENT-SIGNATURE. Invalid input answers 400 and an unavailable upstream answers 503 before any payment is taken; a payment is used once (replays get 409). No account or API key.","contact":{"name":"Igneos Systems","email":"principal@igneos.systems","url":"https://igneos.systems"}},"servers":[{"url":"https://igneos.systems"}],"x-mcp":{"endpoint":"https://igneos.systems/mcp.php","transport":"streamable-http","protocolVersion":"2025-06-18","payments":"x402 V2 over MCP (_meta x402/payment, x402/payment-response)","tools":51},"mcp_endpoint":"https://igneos.systems/mcp.php","paths":{"/api/v1/base/token-liquidity.php":{"get":{"operationId":"v1_base_token_liquidity","summary":"Base token pre-swap check: pools vs USDC/WETH, USD liquidity, slippage at $100/$1k/$10k, proxy/owner.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4ed4e862860bed51a9570b96d89af5e1b0efefed"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","token","symbol","decimals","totalSupplyRaw","blockNumber","blockHash","observedAt","methodVersion","priceUsd","liquidityUsd","pools","quotes","signals","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":["integer","null"],"minimum":0},"totalSupplyRaw":{"type":["string","null"]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"priceUsd":{"type":["string","null"]},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","quoteSymbol","reserveTokenRaw","reserveQuoteRaw","feeBps","priceUsd","liquidityUsd"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"quoteSymbol":{"type":"string","enum":["USDC","WETH"]},"reserveTokenRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserveQuoteRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"feeBps":{"type":["integer","null"],"minimum":0},"priceUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}},"quotes":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["sizeUsd","pool","amountOutRaw","priceImpactBps"],"properties":{"sizeUsd":{"type":"integer","enum":[100,1000,10000]},"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amountOutRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"priceImpactBps":{"type":"integer","minimum":0,"maximum":10000}}}},"signals":{"type":"array","items":{"type":"object","required":["code","state","evidence"],"additionalProperties":false,"properties":{"code":{"type":"string"},"state":{"type":"string","enum":["observed","absent","unknown"]},"evidence":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","symbol":"TKN","decimals":18,"totalSupplyRaw":"1000000","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"token-liquidity/1","priceUsd":"0.04","liquidityUsd":"84000","pools":[{"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"aerodrome-volatile","quoteSymbol":"USDC","reserveTokenRaw":"1","reserveQuoteRaw":"1","feeBps":30,"priceUsd":"0.04","liquidityUsd":"84000"}],"quotes":[{"sizeUsd":1000,"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","amountOutRaw":"1","priceImpactBps":263}],"signals":[{"code":"owner_set","state":"absent","evidence":"zero owner"}],"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Base token pre-swap check: pools vs USDC/WETH, USD liquidity, slippage at $100/$1k/$10k, proxy/owner."}},"/api/v1/base/price-impact.php":{"get":{"operationId":"v1_base_price_impact","summary":"Base token/USDC trade-size price impact, output and buy depth; finalized block. Not advice.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4ed4e862860bed51a9570b96d89af5e1b0efefed"},{"name":"tradeSizeUsd","in":"query","required":true,"schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,5})(\\.[0-9]{1,2})?$"},"example":"1000"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","schemaVersion","token","decimals","tradeSizeUsd","blockNumber","blockHash","observedAt","coverage","pools","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"schemaVersion":{"type":"string"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":36},"tradeSizeUsd":{"type":"string","pattern":"^(0|[1-9][0-9]{0,5})(\\.[0-9]{1,2})?$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"coverage":{"type":"object","additionalProperties":false,"required":["poolModel","quote","venues","stableQuote"],"properties":{"poolModel":{"type":"string","enum":["v2_constant_product"]},"quote":{"type":"string","enum":["USDC"]},"venues":{"type":"array","items":{"type":"string"}},"stableQuote":{"type":"string"},"flowWindows":{"type":"string"}}},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","feeBps","reserveUsdc","reserveTokenRaw","priceUsdc","amountOutCurveRaw","amountOutRaw","priceImpactBpsCurve","priceImpactBpsWithFee","buyDepthUsdc"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"feeBps":{"type":"integer","minimum":0,"maximum":1000},"reserveUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"reserveTokenRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"priceUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"amountOutCurveRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"amountOutRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"priceImpactBpsCurve":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"priceImpactBpsWithFee":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"buyDepthUsdc":{"type":"object","additionalProperties":false,"required":["bps50","bps100","bps300"],"properties":{"bps50":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"bps100":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"bps300":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"schemaVersion":"price-impact/1","token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","decimals":6,"tradeSizeUsd":"1000","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","coverage":{"poolModel":"v2_constant_product","quote":"USDC","venues":["uniswap-v2","aerodrome-volatile"],"stableQuote":"USDC=1USD"},"pools":[{"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"uniswap-v2","feeBps":30,"reserveUsdc":"1000000","reserveTokenRaw":"500000000000","priceUsdc":"2","amountOutCurveRaw":"499500499","amountOutRaw":"498003490","priceImpactBpsCurve":"9.99","priceImpactBpsWithFee":"39.93","buyDepthUsdc":{"bps50":"5025.12","bps100":"10101.01","bps300":"30927.83"}}],"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Base token/USDC trade-size price impact, output and buy depth; finalized block. Not advice."}},"/api/v1/base/liquidity-risk.php":{"get":{"operationId":"v1_base_liquidity_risk","summary":"Base token price impact, 24h/7d liquidity flow, proxy flags.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4ed4e862860bed51a9570b96d89af5e1b0efefed"},{"name":"tradeSizeUsd","in":"query","required":true,"schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,5})(\\.[0-9]{1,2})?$"},"example":"1000"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.020000"}},"x-x402":{"price":{"amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","schemaVersion","token","decimals","tradeSizeUsd","blockNumber","blockHash","observedAt","coverage","pools","warnings","holders","flags"],"properties":{"chainId":{"type":"integer","enum":[8453]},"schemaVersion":{"type":"string"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":36},"tradeSizeUsd":{"type":"string","pattern":"^(0|[1-9][0-9]{0,5})(\\.[0-9]{1,2})?$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"coverage":{"type":"object","additionalProperties":false,"required":["poolModel","quote","venues","stableQuote"],"properties":{"poolModel":{"type":"string","enum":["v2_constant_product"]},"quote":{"type":"string","enum":["USDC"]},"venues":{"type":"array","items":{"type":"string"}},"stableQuote":{"type":"string"},"flowWindows":{"type":"string"}}},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","reserveUsdc","priceImpactBpsWithFee","liquidityFlow"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"reserveUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"priceImpactBpsWithFee":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"liquidityFlow":{"type":"object","additionalProperties":false,"required":["24h","7d"],"properties":{"24h":{"type":"object","additionalProperties":false,"required":["mintUsdc","burnUsdc"],"properties":{"mintUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"burnUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}},"7d":{"type":"object","additionalProperties":false,"required":["mintUsdc","burnUsdc"],"properties":{"mintUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"burnUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}}}}}},"warnings":{"type":"array","items":{"type":"string"}},"holders":{"type":"object","additionalProperties":false,"required":["top10Pct","reason"],"properties":{"top10Pct":{"type":"null"},"reason":{"type":"string"}}},"flags":{"type":"object","additionalProperties":false,"required":["eip1967Proxy","ownerSet"],"properties":{"eip1967Proxy":{"type":"boolean"},"ownerSet":{"type":["boolean","null"]}}}}},"example":{"chainId":8453,"schemaVersion":"liquidity-risk/1","token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","decimals":6,"tradeSizeUsd":"1000","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","coverage":{"poolModel":"v2_constant_product","quote":"USDC","venues":["uniswap-v2","aerodrome-volatile"],"stableQuote":"USDC=1USD","flowWindows":"blocks 24h=43200,7d=302400"},"pools":[{"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"uniswap-v2","reserveUsdc":"1000000","priceImpactBpsWithFee":"39.93","liquidityFlow":{"24h":{"mintUsdc":"0","burnUsdc":"1250"},"7d":{"mintUsdc":"40000","burnUsdc":"1250"}}}],"warnings":[],"holders":{"top10Pct":null,"reason":"needs Transfer history"},"flags":{"eip1967Proxy":false,"ownerSet":null}}}}},"402":{"description":"x402 V2 payment required: 0.02 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Base token price impact, 24h/7d liquidity flow, proxy flags."}},"/api/v1/base/token-security.php":{"get":{"operationId":"v1_base_token_security","summary":"Base pre-trade token security verdict SAFE/CAUTION/AVOID: bytecode, mint/pause/blacklist/owner selectors, buy/sell transfer-tax simulation, pool depth and exact exit slippage for your size.","parameters":[{"name":"token_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4ed4e862860bed51a9570b96d89af5e1b0efefed"},{"name":"trade_amount_usd","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,6}$"},"example":"1000"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.020000"}},"x-x402":{"price":{"amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","token","symbol","decimals","blockNumber","blockHash","observedAt","methodVersion","verdict","reasons","checks","privilegedFunctions","simulation","priceUsd","liquidityUsd","exit","pools","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":["integer","null"],"minimum":0},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"verdict":{"type":"string","enum":["SAFE","CAUTION","AVOID"]},"reasons":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","state","evidence"],"properties":{"code":{"type":"string"},"state":{"type":"string","enum":["pass","warn","fail","unknown"]},"evidence":{"type":"string"}}}},"privilegedFunctions":{"type":"array","items":{"type":"string"}},"simulation":{"type":"object","additionalProperties":false,"required":["method","buyTaxBps","sellTaxBps","sellReverted"],"properties":{"method":{"type":"string","enum":["eth_simulateV1","eth_call","none"]},"buyTaxBps":{"type":["integer","null"],"minimum":0,"maximum":10000},"sellTaxBps":{"type":["integer","null"],"minimum":0,"maximum":10000},"sellReverted":{"type":["boolean","null"]}}},"priceUsd":{"type":["string","null"]},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"exit":{"type":"object","additionalProperties":false,"required":["tradeAmountUsd","pool","venue","amountInTokenRaw","expectedOutUsd","slippageBps"],"properties":{"tradeAmountUsd":{"type":"integer","minimum":1},"pool":{"type":["string","null"]},"venue":{"type":["string","null"]},"amountInTokenRaw":{"type":["string","null"]},"expectedOutUsd":{"type":["string","null"]},"slippageBps":{"type":["integer","null"],"minimum":0,"maximum":10000}}},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","quoteSymbol","reserveTokenRaw","reserveQuoteRaw","feeBps","priceUsd","liquidityUsd"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"quoteSymbol":{"type":"string","enum":["USDC","WETH"]},"reserveTokenRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserveQuoteRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"feeBps":{"type":["integer","null"],"minimum":0},"priceUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","symbol":"TKN","decimals":18,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"token-security/1","verdict":"CAUTION","reasons":["exit slippage 512 bps for $1000"],"checks":[],"privilegedFunctions":["ownership"],"simulation":{"method":"eth_simulateV1","buyTaxBps":0,"sellTaxBps":0,"sellReverted":false},"priceUsd":"0.04","liquidityUsd":"84000","exit":{"tradeAmountUsd":1000,"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"aerodrome-volatile","amountInTokenRaw":"25000000000000000000000","expectedOutUsd":"948.8","slippageBps":512},"pools":[],"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.02 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","base"],"description":"Base pre-trade token security verdict SAFE/CAUTION/AVOID: bytecode, mint/pause/blacklist/owner selectors, buy/sell transfer-tax simulation, pool depth and exact exit slippage for your size."}},"/api/v1/base/wallet-risk.php":{"get":{"operationId":"v1_base_wallet_risk","summary":"Base wallet risk & holdings snapshot: ETH + major token balances in USD, tx count, account age, recent DEX router use and a deterministic 0-100 counterparty risk score.","parameters":[{"name":"wallet_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x505c88e6dfa6e54b8851939dbeb5303c2080f816"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.020000"}},"x-x402":{"price":{"amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","wallet","blockNumber","blockHash","observedAt","methodVersion","isContract","txCount","firstSeenBlock","firstSeenAt","accountAgeDays","holdings","totalUsd","recentDexInteractions","dexHistorySource","riskScore","riskLevel","flags","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string"},"methodVersion":{"type":"string"},"isContract":{"type":"boolean"},"txCount":{"type":"integer","minimum":0},"firstSeenBlock":{"type":["integer","null"]},"firstSeenAt":{"type":["string","null"]},"accountAgeDays":{"type":["integer","null"],"minimum":0},"holdings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["symbol","token","decimals","balanceRaw","balance","usd"],"properties":{"symbol":{"type":"string"},"token":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0},"balanceRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"balance":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"usd":{"type":["string","null"]}}}},"totalUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"recentDexInteractions":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"required":["router","name","count"],"properties":{"router":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"name":{"type":"string"},"count":{"type":"integer","minimum":1}}}},"dexHistorySource":{"type":"string","enum":["alchemy_getAssetTransfers","unavailable"]},"riskScore":{"type":"integer","minimum":0,"maximum":100},"riskLevel":{"type":"string","enum":["low","medium","high"]},"flags":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","points","evidence"],"properties":{"code":{"type":"string"},"points":{"type":"integer"},"evidence":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"wallet":"0x1111111111111111111111111111111111111111","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"wallet-risk/1","isContract":false,"txCount":412,"firstSeenBlock":9000000,"firstSeenAt":"2024-01-10T12:00:00Z","accountAgeDays":688,"holdings":[{"symbol":"ETH","token":null,"decimals":18,"balanceRaw":"500000000000000000","balance":"0.5","usd":"1650"}],"totalUsd":"1650","recentDexInteractions":[{"router":"0xcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcf","name":"aerodrome-router","count":7}],"dexHistorySource":"alchemy_getAssetTransfers","riskScore":0,"riskLevel":"low","flags":[],"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.02 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","base"],"description":"Base wallet risk & holdings snapshot: ETH + major token balances in USD, tx count, account age, recent DEX router use and a deterministic 0-100 counterparty risk score."}},"/api/v1/domain/security-audit.php":{"get":{"operationId":"v1_domain_security_audit","summary":"Domain security posture audit: A/AAAA/MX/TXT/CAA DNS, SPF+DMARC email grade, RDAP registration age/expiry and an A-F grade.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","pattern":"^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+([a-z]{2,63}|xn--[a-z0-9-]{1,59})$","minLength":4,"maxLength":253},"example":"example.com"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"}},"x-x402":{"price":{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["domain","observedAt","methodVersion","grade","score","dns","email","rdap","tls","findings","warnings"],"properties":{"domain":{"type":"string"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"grade":{"type":"string","enum":["A","B","C","D","F"]},"score":{"type":"integer","minimum":0,"maximum":100},"dns":{"type":"object","additionalProperties":false,"required":["a","aaaa","mx","txt","caa","resolver"],"properties":{"a":{"type":"array","items":{"type":"string"}},"aaaa":{"type":"array","items":{"type":"string"}},"txt":{"type":"array","items":{"type":"string"}},"caa":{"type":"array","items":{"type":"string"}},"mx":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["preference","exchange"],"properties":{"preference":{"type":"integer"},"exchange":{"type":"string"}}}},"resolver":{"type":"string"}}},"email":{"type":"object","additionalProperties":false,"required":["spf","spfAll","spfLookups","dmarc","dmarcPolicy","dmarcPct","dmarcRua","grade"],"properties":{"spf":{"type":["string","null"]},"spfAll":{"type":["string","null"],"enum":["-all","~all","?all","+all",null]},"spfLookups":{"type":["integer","null"],"minimum":0},"dmarc":{"type":["string","null"]},"dmarcPolicy":{"type":["string","null"],"enum":["reject","quarantine","none",null]},"dmarcPct":{"type":["integer","null"],"minimum":0,"maximum":100},"dmarcRua":{"type":"boolean"},"grade":{"type":"string","enum":["A","B","C","D","F"]}}},"rdap":{"type":"object","additionalProperties":false,"required":["available","registrar","registeredAt","expiresAt","updatedAt","ageDays","daysToExpiry","status","nameservers","source"],"properties":{"available":{"type":"boolean"},"registrar":{"type":["string","null"]},"registeredAt":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"updatedAt":{"type":["string","null"]},"ageDays":{"type":["integer","null"]},"daysToExpiry":{"type":["integer","null"]},"status":{"type":"array","items":{"type":"string"}},"nameservers":{"type":"array","items":{"type":"string"}},"source":{"type":["string","null"]}}},"tls":{"type":"object","additionalProperties":false,"required":["checked","ip","valid","error","issuer","subject","sans","notBefore","notAfter","daysToExpiry","protocol"],"properties":{"checked":{"type":"boolean"},"ip":{"type":["string","null"]},"valid":{"type":["boolean","null"]},"error":{"type":["string","null"]},"issuer":{"type":["string","null"]},"subject":{"type":["string","null"]},"sans":{"type":"array","items":{"type":"string"}},"notBefore":{"type":["string","null"]},"notAfter":{"type":["string","null"]},"daysToExpiry":{"type":["integer","null"]},"protocol":{"type":["string","null"]}}},"findings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","severity","points","evidence"],"properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["info","low","medium","high"]},"points":{"type":"integer"},"evidence":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"domain":"example.com","observedAt":"2026-11-28T06:00:00Z","methodVersion":"domain-audit/1","grade":"B","score":85,"dns":{"a":["93.184.215.14"],"aaaa":[],"mx":[],"txt":["v=spf1 -all"],"caa":[],"resolver":"cloudflare-dns.com"},"email":{"spf":"v=spf1 -all","spfAll":"-all","spfLookups":0,"dmarc":"v=DMARC1;p=reject","dmarcPolicy":"reject","dmarcPct":100,"dmarcRua":false,"grade":"A"},"rdap":{"available":true,"registrar":"Example Registrar","registeredAt":"1995-08-14T04:00:00Z","expiresAt":"2027-08-13T04:00:00Z","updatedAt":null,"ageDays":11429,"daysToExpiry":258,"status":[],"nameservers":[],"source":null},"tls":{"checked":false,"ip":null,"valid":null,"error":null,"issuer":null,"subject":null,"sans":[],"notBefore":null,"notAfter":null,"daysToExpiry":null,"protocol":null},"findings":[{"code":"no_caa","severity":"low","points":5,"evidence":"no CAA records"}],"warnings":["TLS certificate is not part of this audit"]}}}},"402":{"description":"x402 V2 payment required: 0.01 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","network","dns"],"description":"Domain security posture audit: A/AAAA/MX/TXT/CAA DNS, SPF+DMARC email grade, RDAP registration age/expiry and an A-F grade."}},"/api/v1/domain/batch-risk.php":{"get":{"operationId":"v1_domain_batch_risk","summary":"Batch domain risk sweep for up to 20 domains: SPF/DMARC anti-spoofing posture, RDAP domain age/expiry and A-F grade per domain plus a summary, in one call.","parameters":[{"name":"domains","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z0-9.,-]+$","minLength":4,"maxLength":2048},"example":"example.com,example.org"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.040000"}},"x-x402":{"price":{"amount":"40000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["observedAt","methodVersion","count","summary","domains"],"properties":{"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"count":{"type":"integer","minimum":1,"maximum":20},"summary":{"type":"object","additionalProperties":false,"required":["ok","errors","grades","spoofable","newDomains","tlsInvalid","expiringSoon"],"properties":{"ok":{"type":"integer"},"errors":{"type":"integer"},"grades":{"type":"object","additionalProperties":false,"required":["A","B","C","D","F"],"properties":{"A":{"type":"integer"},"B":{"type":"integer"},"C":{"type":"integer"},"D":{"type":"integer"},"F":{"type":"integer"}}},"spoofable":{"type":"integer"},"newDomains":{"type":"integer"},"tlsInvalid":{"type":"integer"},"expiringSoon":{"type":"integer"}}},"domains":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["domain","status","grade","score","spfAll","dmarcPolicy","emailGrade","spoofable","registrar","ageDays","daysToExpiry","tlsValid","tlsDaysToExpiry","findings"],"properties":{"domain":{"type":"string"},"status":{"type":"string","enum":["ok","error"]},"grade":{"type":["string","null"],"enum":["A","B","C","D","F",null]},"score":{"type":["integer","null"]},"spfAll":{"type":["string","null"]},"dmarcPolicy":{"type":["string","null"]},"emailGrade":{"type":["string","null"],"enum":["A","B","C","D","F",null]},"spoofable":{"type":["boolean","null"]},"registrar":{"type":["string","null"]},"ageDays":{"type":["integer","null"]},"daysToExpiry":{"type":["integer","null"]},"tlsValid":{"type":["boolean","null"]},"tlsDaysToExpiry":{"type":["integer","null"]},"findings":{"type":"array","items":{"type":"string"}}}}}}},"example":{"observedAt":"2026-11-28T06:00:00Z","methodVersion":"domain-batch-risk/1","count":2,"summary":{"ok":2,"errors":0,"grades":{"A":1,"B":0,"C":0,"D":1,"F":0},"spoofable":1,"newDomains":1,"tlsInvalid":0,"expiringSoon":0},"domains":[{"domain":"example.com","status":"ok","grade":"A","score":95,"spfAll":"-all","dmarcPolicy":"reject","emailGrade":"A","spoofable":false,"registrar":"Example Registrar","ageDays":11429,"daysToExpiry":258,"tlsValid":null,"tlsDaysToExpiry":null,"findings":["no_caa"]},{"domain":"examp1e-login.com","status":"ok","grade":"D","score":45,"spfAll":null,"dmarcPolicy":null,"emailGrade":"F","spoofable":true,"registrar":"Cheap Registrar","ageDays":3,"daysToExpiry":362,"tlsValid":null,"tlsDaysToExpiry":null,"findings":["no_spf","no_dmarc","no_caa","new_domain"]}]}}}},"402":{"description":"x402 V2 payment required: 0.04 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","network","dns"],"description":"Batch domain risk sweep for up to 20 domains: SPF/DMARC anti-spoofing posture, RDAP domain age/expiry and A-F grade per domain plus a summary, in one call."}},"/api/v1/perp/funding-divergence.php":{"get":{"operationId":"v1_perp_funding_divergence","summary":"On-chain perp funding/OI divergence: Hyperliquid L1 + Synthetix v3 Base funding 1h/8h/annual, OI USD, long/short skew, cross-venue spread, carry and crowding bias.","parameters":[{"name":"asset","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{1,15}$"},"example":"ETH"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.050000"}},"x-x402":{"price":{"amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["asset","observedAt","methodVersion","venues","divergence","signal","warnings"],"properties":{"asset":{"type":"string"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"venues":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["venue","status","chain","market","blockNumber","fundingRateHourly","funding8hBps","fundingAnnualizedPct","openInterestUsd","longOpenInterestUsd","shortOpenInterestUsd","skewPct","markPrice","indexPrice","premiumBps"],"properties":{"venue":{"type":"string","enum":["hyperliquid","synthetix-v3-base"]},"status":{"type":"string","enum":["ok","not_listed","unavailable"]},"chain":{"type":"string"},"market":{"type":["string","null"]},"blockNumber":{"type":["integer","null"]},"fundingRateHourly":{"type":["number","null"]},"funding8hBps":{"type":["number","null"]},"fundingAnnualizedPct":{"type":["number","null"]},"openInterestUsd":{"type":["number","null"]},"longOpenInterestUsd":{"type":["number","null"]},"shortOpenInterestUsd":{"type":["number","null"]},"skewPct":{"type":["number","null"]},"markPrice":{"type":["number","null"]},"indexPrice":{"type":["number","null"]},"premiumBps":{"type":["number","null"]}}}},"divergence":{"type":"object","additionalProperties":false,"required":["venuesCompared","fundingSpreadAnnualizedPct","funding8hSpreadBps","highFundingVenue","lowFundingVenue","carryTrade","totalOpenInterestUsd","oiWeightedSkewPct"],"properties":{"venuesCompared":{"type":"integer","minimum":0},"fundingSpreadAnnualizedPct":{"type":["number","null"]},"funding8hSpreadBps":{"type":["number","null"]},"highFundingVenue":{"type":["string","null"]},"lowFundingVenue":{"type":["string","null"]},"carryTrade":{"type":["string","null"]},"totalOpenInterestUsd":{"type":["number","null"]},"oiWeightedSkewPct":{"type":["number","null"]}}},"signal":{"type":"object","additionalProperties":false,"required":["bias","strength","reasons"],"properties":{"bias":{"type":"string","enum":["long_crowded","short_crowded","neutral","mixed","unknown"]},"strength":{"type":"string","enum":["none","low","medium","high"]},"reasons":{"type":"array","items":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"asset":"ETH","observedAt":"2026-11-28T06:00:00Z","methodVersion":"perp-funding-divergence/1","venues":[{"venue":"hyperliquid","status":"ok","chain":"hyperliquid-l1","market":"ETH","blockNumber":null,"fundingRateHourly":1.25e-05,"funding8hBps":1.0,"fundingAnnualizedPct":10.95,"openInterestUsd":1250000000.0,"longOpenInterestUsd":null,"shortOpenInterestUsd":null,"skewPct":null,"markPrice":3000.5,"indexPrice":3000.0,"premiumBps":1.67},{"venue":"synthetix-v3-base","status":"ok","chain":"eip155:8453","market":"100","blockNumber":23000000,"fundingRateHourly":4.17e-05,"funding8hBps":3.33,"fundingAnnualizedPct":36.5,"openInterestUsd":12000000.0,"longOpenInterestUsd":7200000.0,"shortOpenInterestUsd":4800000.0,"skewPct":20.0,"markPrice":null,"indexPrice":3000.0,"premiumBps":null}],"divergence":{"venuesCompared":2,"fundingSpreadAnnualizedPct":25.55,"funding8hSpreadBps":2.33,"highFundingVenue":"synthetix-v3-base","lowFundingVenue":"hyperliquid","carryTrade":"short synthetix-v3-base / long hyperliquid","totalOpenInterestUsd":1262000000.0,"oiWeightedSkewPct":20.0},"signal":{"bias":"long_crowded","strength":"low","reasons":["OI-weighted annualized funding 11.2% (longs pay shorts)","synthetix-v3-base skew +20.0% long"]},"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.05 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"On-chain perp funding/OI divergence: Hyperliquid L1 + Synthetix v3 Base funding 1h/8h/annual, OI USD, long/short skew, cross-venue spread, carry and crowding bias."}},"/api/v1/base/dex-spread.php":{"get":{"operationId":"v1_base_dex_spread","summary":"Base cross-DEX spread + arbitrage net of pool fees (Uniswap v3, PancakeSwap v3, Aerodrome, Uniswap v2).","parameters":[{"name":"token_in","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4200000000000000000000000000000000000006"},{"name":"token_out","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},{"name":"amount_in","in":"query","required":true,"schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$"},"example":"1"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.030000"}},"x-x402":{"price":{"amount":"30000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","blockNumber","blockHash","observedAt","methodVersion","tokenIn","tokenOut","amountIn","amountInRaw","pools","best","worst","executionSpreadBps","arbitrage","excludes","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"tokenIn":{"type":"object","additionalProperties":false,"required":["address","symbol","decimals"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0,"maximum":36}}},"tokenOut":{"type":"object","additionalProperties":false,"required":["address","symbol","decimals"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0,"maximum":36}}},"amountIn":{"type":"string"},"amountInRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["venue","pool","feeBps","amountOutRaw","amountOut","effectivePrice","vsBestBps"],"properties":{"venue":{"type":"string","enum":["uniswap-v3","pancakeswap-v3","aerodrome-volatile","aerodrome-stable","uniswap-v2"]},"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"feeBps":{"type":["number","null"]},"amountOutRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"amountOut":{"type":"string"},"effectivePrice":{"type":"string"},"vsBestBps":{"type":"number","minimum":0}}}},"best":{"type":["object","null"]},"worst":{"type":["object","null"]},"executionSpreadBps":{"type":["number","null"]},"arbitrage":{"type":"object","additionalProperties":false,"required":["buyPool","buyVenue","sellPool","sellVenue","roundTripOutRaw","netBps","profitable"],"properties":{"buyPool":{"type":["string","null"]},"buyVenue":{"type":["string","null"]},"sellPool":{"type":["string","null"]},"sellVenue":{"type":["string","null"]},"roundTripOutRaw":{"type":["string","null"]},"netBps":{"type":["number","null"]},"profitable":{"type":"boolean"}}},"excludes":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"base-dex-spread/1","tokenIn":{"address":"0x4200000000000000000000000000000000000006","symbol":"WETH","decimals":18},"tokenOut":{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","symbol":"USDC","decimals":6},"amountIn":"1","amountInRaw":"1000000000000000000","pools":[{"venue":"uniswap-v3","pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","feeBps":5,"amountOutRaw":"2998500000","amountOut":"2998.5","effectivePrice":"2998.5","vsBestBps":0}],"best":{"venue":"uniswap-v3","pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"},"worst":{"venue":"uniswap-v3","pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"},"executionSpreadBps":null,"arbitrage":{"buyPool":null,"buyVenue":null,"sellPool":null,"sellVenue":null,"roundTripOutRaw":null,"netBps":null,"profitable":false},"excludes":["gas","mev","transfer taxes"],"warnings":["single quotable pool"]}}}},"402":{"description":"x402 V2 payment required: 0.03 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Base cross-DEX spread + arbitrage net of pool fees (Uniswap v3, PancakeSwap v3, Aerodrome, Uniswap v2)."}},"/api/v1/base/upgrade-watch.php":{"get":{"operationId":"v1_base_upgrade_watch","summary":"Base proxy upgrade watch: proxy type, implementation, admin and 1/7/30-day upgrade history.","parameters":[{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.030000"}},"x-x402":{"price":{"amount":"30000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","contract","blockNumber","blockHash","observedAt","methodVersion","hasCode","codeSize","codeSha256","proxyType","upgradeable","implementation","implementationCodeSize","implementationCodeSha256","admin","adminIsContract","adminOwner","beacon","history","risk","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"contract":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"hasCode":{"type":"boolean"},"codeSize":{"type":"integer","minimum":0},"codeSha256":{"type":["string","null"]},"proxyType":{"type":"string","enum":["none","erc1967-transparent","erc1967-uups","erc1967-beacon","eip1822","eip1167-minimal","gnosis-safe","oz-legacy"]},"upgradeable":{"type":"boolean"},"implementation":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"implementationCodeSize":{"type":["integer","null"]},"implementationCodeSha256":{"type":["string","null"]},"admin":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"adminIsContract":{"type":["boolean","null"]},"adminOwner":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"beacon":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"history":{"type":"object","additionalProperties":false,"required":["archiveAvailable","implementation1d","implementation7d","implementation30d","implementationChanged30d","lastChangeBlock","lastChangeAgeDays","codeChanged30d"],"properties":{"archiveAvailable":{"type":"boolean"},"implementation1d":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"implementation7d":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"implementation30d":{"type":["string","null"],"pattern":"^0x[0-9a-f]{40}$"},"implementationChanged30d":{"type":["boolean","null"]},"lastChangeBlock":{"type":["integer","null"]},"lastChangeAgeDays":{"type":["number","null"]},"codeChanged30d":{"type":["boolean","null"]}}},"risk":{"type":"object","additionalProperties":false,"required":["level","flags"],"properties":{"level":{"type":"string","enum":["low","medium","high"]},"flags":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","severity","evidence"],"properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["info","medium","high"]},"evidence":{"type":"string"}}}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"contract":"0xc1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"base-upgrade-watch/1","hasCode":true,"codeSize":1214,"codeSha256":"abababababababababababababababababababababababababababababababab","proxyType":"erc1967-uups","upgradeable":true,"implementation":"0xd2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2","implementationCodeSize":18003,"implementationCodeSha256":"cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd","admin":null,"adminIsContract":null,"adminOwner":null,"beacon":null,"history":{"archiveAvailable":true,"implementation1d":"0xd2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2","implementation7d":"0xd2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2","implementation30d":"0xe3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3e3","implementationChanged30d":true,"lastChangeBlock":22500000,"lastChangeAgeDays":11.57,"codeChanged30d":false},"risk":{"level":"medium","flags":[{"code":"upgraded_30d","severity":"medium","evidence":"implementation changed 11.6 days ago"}]},"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.03 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","base"],"description":"Base proxy upgrade watch: proxy type, implementation, admin and 1/7/30-day upgrade history."}},"/api/v1/base/gas-priority.php":{"get":{"operationId":"v1_base_gas_priority","summary":"Base L2 fee market: next-block base fee, p25/p50/p90 tips, L1 data fee and USD cost of a transfer and a swap.","parameters":[],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","blockNumber","blockHash","observedAt","methodVersion","baseFeeGwei","tipGwei","gasUsedRatio","l1","ethUsd","costs","assumptions","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"baseFeeGwei":{"type":"number","minimum":0},"tipGwei":{"type":"object","additionalProperties":false,"required":["p25","p50","p90"],"properties":{"p25":{"type":"number","minimum":0},"p50":{"type":"number","minimum":0},"p90":{"type":"number","minimum":0}}},"gasUsedRatio":{"type":"number","minimum":0},"l1":{"type":"object","additionalProperties":false,"required":["baseFeeGwei","blobBaseFeeGwei","baseFeeScalar","blobBaseFeeScalar"],"properties":{"baseFeeGwei":{"type":"number","minimum":0},"blobBaseFeeGwei":{"type":"number","minimum":0},"baseFeeScalar":{"type":"integer"},"blobBaseFeeScalar":{"type":"integer"}}},"ethUsd":{"type":["number","null"]},"costs":{"type":"object","additionalProperties":false,"required":["erc20_transfer","swap"],"properties":{"erc20_transfer":{"type":"object","additionalProperties":false,"required":["gasUsed","compressedBytes","l2FeeGwei","l1DataFeeGwei","totalGwei","totalUsd"],"properties":{"gasUsed":{"type":"integer"},"compressedBytes":{"type":"integer"},"l2FeeGwei":{"type":"number","minimum":0},"l1DataFeeGwei":{"type":"number","minimum":0},"totalGwei":{"type":"number","minimum":0},"totalUsd":{"type":["number","null"]}}},"swap":{"type":"object","additionalProperties":false,"required":["gasUsed","compressedBytes","l2FeeGwei","l1DataFeeGwei","totalGwei","totalUsd"],"properties":{"gasUsed":{"type":"integer"},"compressedBytes":{"type":"integer"},"l2FeeGwei":{"type":"number","minimum":0},"l1DataFeeGwei":{"type":"number","minimum":0},"totalGwei":{"type":"number","minimum":0},"totalUsd":{"type":["number","null"]}}}}},"assumptions":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"base-gas-priority/1","baseFeeGwei":0.005,"tipGwei":{"p25":0.0001,"p50":0.001,"p90":0.01},"gasUsedRatio":0.31,"l1":{"baseFeeGwei":4.2,"blobBaseFeeGwei":0.001,"baseFeeScalar":1368,"blobBaseFeeScalar":810949},"ethUsd":3000.0,"costs":{"erc20_transfer":{"gasUsed":65000,"compressedBytes":110,"l2FeeGwei":390.0,"l1DataFeeGwei":1700.0,"totalGwei":2090.0,"totalUsd":0.00627},"swap":{"gasUsed":180000,"compressedBytes":250,"l2FeeGwei":1080.0,"l1DataFeeGwei":3900.0,"totalGwei":4980.0,"totalUsd":0.01494}},"assumptions":["next-block estimate at the p50 tip","erc20_transfer: 65000 gas, 110 compressed bytes","swap: 180000 gas, 250 compressed bytes"],"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["payments","crypto","base"],"description":"Base L2 fee market: next-block base fee, p25/p50/p90 tips, L1 data fee and USD cost of a transfer and a swap."}},"/api/v1/base/tx-preflight.php":{"get":{"operationId":"v1_base_tx_preflight","summary":"Base transaction preflight: simulated success or decoded revert reason, gas estimate and cost, sender balance check, all at one block.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},{"name":"value","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{1,30}$"},"example":null},{"name":"data","in":"query","required":false,"schema":{"type":"string","pattern":"^0x([0-9a-fA-F]{2}){0,500}$"},"example":"0xa9059cbb000000000000000000000000b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b20000000000000000000000000000000000000000000000000000000000000001"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","blockNumber","blockHash","observedAt","methodVersion","from","to","valueWei","calldataBytes","selector","toIsContract","simulation","gas","sender","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"from":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"to":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"valueWei":{"type":"string"},"calldataBytes":{"type":"integer","minimum":0},"selector":{"type":["string","null"]},"toIsContract":{"type":"boolean"},"simulation":{"type":"object","additionalProperties":false,"required":["status","returnData","returnTruncated","revert"],"properties":{"status":{"type":"string","enum":["success","reverted"]},"returnData":{"type":"string"},"returnTruncated":{"type":"boolean"},"revert":{"type":["object","null"],"additionalProperties":false,"required":["kind"],"properties":{"kind":{"type":"string","enum":["error","panic","custom","empty"]},"message":{"type":["string","null"]},"code":{"type":["integer","null"]},"selector":{"type":["string","null"]}}}}},"gas":{"type":"object","additionalProperties":false,"required":["estimate","priceGwei","l2CostEth"],"properties":{"estimate":{"type":["integer","null"]},"priceGwei":{"type":"number","minimum":0},"l2CostEth":{"type":["number","null"]}}},"sender":{"type":"object","additionalProperties":false,"required":["balanceEth","canAfford"],"properties":{"balanceEth":{"type":"number","minimum":0},"canAfford":{"type":["boolean","null"]}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-29T04:00:00Z","methodVersion":"base-tx-preflight/1","from":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","to":"0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2","valueWei":"0","calldataBytes":68,"selector":"0xa9059cbb","toIsContract":true,"simulation":{"status":"success","returnData":"0x0000000000000000000000000000000000000000000000000000000000000001","returnTruncated":false,"revert":null},"gas":{"estimate":51234,"priceGwei":0.0051,"l2CostEth":2.6e-07},"sender":{"balanceEth":0.12,"canAfford":true},"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["payments","crypto","base"],"description":"Base transaction preflight: simulated success or decoded revert reason, gas estimate and cost, sender balance check, all at one block."}},"/api/v1/base/wallet-nonce.php":{"get":{"operationId":"v1_base_wallet_nonce","summary":"Base wallet nonce check: confirmed vs pending nonce, pending gap, ETH balance and how many transfers the balance covers at the current L2 gas price.","parameters":[{"name":"wallet_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x505c88e6dfa6e54b8851939dbeb5303c2080f816"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","wallet","blockNumber","blockHash","observedAt","methodVersion","confirmedNonce","pendingNonce","pendingGap","stuckStatus","ethBalanceWei","ethBalance","gasBudget","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"confirmedNonce":{"type":"integer","minimum":0},"pendingNonce":{"type":"integer","minimum":0},"pendingGap":{"type":"integer","minimum":0},"stuckStatus":{"type":"string","enum":["none","unverified"]},"ethBalanceWei":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"ethBalance":{"type":"string"},"gasBudget":{"type":"object","additionalProperties":false,"required":["nextBlockGasPriceGwei","transferL2FeeWei","transfersCovered","note"],"properties":{"nextBlockGasPriceGwei":{"type":"number","minimum":0},"transferL2FeeWei":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"transfersCovered":{"type":["integer","null"],"minimum":0},"note":{"type":"string"}}},"warnings":{"type":"array","items":{"type":"string"}}}},"example":{"chainId":8453,"wallet":"0x1111111111111111111111111111111111111111","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-29T06:00:00Z","methodVersion":"base-wallet-nonce/1","confirmedNonce":412,"pendingNonce":413,"pendingGap":1,"stuckStatus":"unverified","ethBalanceWei":"500000000000000000","ethBalance":"0.5","gasBudget":{"nextBlockGasPriceGwei":0.002,"transferL2FeeWei":"130000000000","transfersCovered":3846153846,"note":"L2 execution fee only; the L1 data fee is not included"},"warnings":["pending nonce reflects the answering provider's mempool and is not pinned to a block"]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","base"],"description":"Base wallet nonce check: confirmed vs pending nonce, pending gap, ETH balance and how many transfers the balance covers at the current L2 gas price."}},"/api/v1/convert/encoding.php":{"get":{"operationId":"v1_convert_encoding","summary":"Convert text or bytes between UTF-8, hex, Base64, Base64URL, Base58, URL-encoding, HTML entities and IDNA punycode, with byte and character counts. Local computation only.","parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","maxLength":1500},"example":"hello"},{"name":"from","in":"query","required":false,"schema":{"type":"string","enum":["utf8","hex","base64","base64url","base58","url","html","idna"]},"example":"utf8"},{"name":"to","in":"query","required":true,"schema":{"type":"string","enum":["utf8","hex","base64","base64url","base58","url","html","idna"]},"example":"base58"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["from","to","output","byteLength","charLength","validUtf8","isAscii","methodVersion","warnings"],"properties":{"from":{"type":"string"},"to":{"type":"string"},"output":{"type":"string"},"byteLength":{"type":"integer"},"charLength":{"type":["integer","null"]},"validUtf8":{"type":"boolean"},"isAscii":{"type":"boolean"},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"from":"utf8","to":"base58","output":"Cn8eVZg","byteLength":5,"charLength":5,"validUtf8":true,"isAscii":true,"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["data-conversion","utility","encoding"],"description":"Convert text or bytes between UTF-8, hex, Base64, Base64URL, Base58, URL-encoding, HTML entities and IDNA punycode, with byte and character counts. Local computation only."}},"/api/v1/crypto/hash-hmac.php":{"get":{"operationId":"v1_crypto_hash_hmac","summary":"SHA-256, SHA-512, SHA3-256, Keccak-256, BLAKE2b-256 (and RIPEMD-160 where available) digests, HMAC, and an OpenZeppelin-style Merkle root with an inclusion proof.","parameters":[{"name":"input","in":"query","required":false,"schema":{"type":"string","maxLength":1500},"example":"hello"},{"name":"encoding","in":"query","required":false,"schema":{"type":"string","enum":["utf8","hex","base64"]},"example":null},{"name":"algorithms","in":"query","required":false,"schema":{"type":"string","description":"comma-separated: sha256,sha512,sha3_256,keccak256,blake2b256,ripemd160"},"example":"sha256,keccak256"},{"name":"hmac_key","in":"query","required":false,"schema":{"type":"string"},"example":null},{"name":"leaves","in":"query","required":false,"schema":{"type":"string","description":"2-64 comma-separated 0x bytes32"},"example":null},{"name":"index","in":"query","required":false,"schema":{"type":"integer"},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["digests","hmac","merkle","inputBytes","methodVersion","warnings"],"properties":{"digests":{"type":"object"},"hmac":{"type":"object"},"merkle":{"type":["object","null"]},"inputBytes":{"type":"integer"},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"digests":{"sha256":"0x2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","keccak256":"0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"},"hmac":{},"merkle":null,"inputBytes":5,"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["encoding-crypto","developer-tools","utility"],"description":"SHA-256, SHA-512, SHA3-256, Keccak-256, BLAKE2b-256 (and RIPEMD-160 where available) digests, HMAC, and an OpenZeppelin-style Merkle root with an inclusion proof."}},"/api/v1/crypto/uuid-id-gen.php":{"get":{"operationId":"v1_crypto_uuid_id_gen","summary":"Batches of up to 100 UUIDv4, time-ordered UUIDv7, ULID or NanoID values from a CSPRNG, or the timestamp inside a UUIDv7/ULID.","parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["uuid4","uuid7","ulid","nanoid"]},"example":"uuid7"},{"name":"count","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"example":3},{"name":"size","in":"query","required":false,"schema":{"type":"integer","minimum":8,"maximum":64},"example":null},{"name":"decode","in":"query","required":false,"schema":{"type":"string"},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["kind","ids","decoded","methodVersion","warnings"],"properties":{"kind":{"type":"string"},"ids":{"type":"array","items":{"type":"string"}},"decoded":{"type":["object","null"]},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"kind":"uuid7","ids":["01937a2c-5e00-7abc-8def-0123456789ab"],"decoded":null,"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["generators","utility","developer-tools"],"description":"Batches of up to 100 UUIDv4, time-ordered UUIDv7, ULID or NanoID values from a CSPRNG, or the timestamp inside a UUIDv7/ULID."}},"/api/v1/convert/units-currency-math.php":{"get":{"operationId":"v1_convert_units_currency_math","summary":"Exact decimal conversion (no float rounding) between wei/gwei/ether, lamports/SOL, token atomic units for any decimals, and basis points/percent/fraction.","parameters":[{"name":"value","in":"query","required":true,"schema":{"type":"string","maxLength":100},"example":"1.5"},{"name":"from","in":"query","required":true,"schema":{"type":"string","enum":["wei","gwei","ether","lamports","sol","atomic","token","bps","percent","fraction"]},"example":"ether"},{"name":"to","in":"query","required":true,"schema":{"type":"string","enum":["wei","gwei","ether","lamports","sol","atomic","token","bps","percent","fraction"]},"example":"wei"},{"name":"decimals","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":36},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["value","from","to","result","isExact","family","decimals","table","methodVersion","warnings"],"properties":{"value":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"result":{"type":"string"},"isExact":{"type":"boolean"},"family":{"type":"string"},"decimals":{"type":["integer","null"]},"table":{"type":"object"},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"value":"1.5","from":"ether","to":"wei","result":"1500000000000000000","isExact":true,"family":"evm","decimals":null,"table":{"wei":"1500000000000000000","gwei":"1500000000","ether":"1.5"},"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["math-finance","utility","data-conversion"],"description":"Exact decimal conversion (no float rounding) between wei/gwei/ether, lamports/SOL, token atomic units for any decimals, and basis points/percent/fraction."}},"/api/v1/convert/datetime-normalize.php":{"get":{"operationId":"v1_convert_datetime_normalize","summary":"Parse Unix s/ms/us/ns, ISO-8601 or RFC-2822 times to UTC, convert to IANA zones, ISO week and the calendar and business-day delta to a second time.","parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","maxLength":100},"example":"1764374400"},{"name":"unit","in":"query","required":false,"schema":{"type":"string","enum":["s","ms","us","ns"]},"example":null},{"name":"tz","in":"query","required":false,"schema":{"type":"string","description":"comma-separated IANA zones, up to 10"},"example":"America/New_York"},{"name":"until","in":"query","required":false,"schema":{"type":"string","description":"second time for delta and business days"},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["detectedFormat","utc","unix","unixMs","rfc2822","weekday","isoWeek","dayOfYear","zones","delta","methodVersion","warnings"],"properties":{"detectedFormat":{"type":"string"},"utc":{"type":"string"},"unix":{"type":"integer"},"unixMs":{"type":"integer"},"rfc2822":{"type":"string"},"weekday":{"type":"string"},"isoWeek":{"type":"string"},"dayOfYear":{"type":"integer"},"zones":{"type":"object"},"delta":{"type":["object","null"]},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"detectedFormat":"unix_s","utc":"2025-11-29T00:00:00.000Z","unix":1764374400,"unixMs":1764374400000,"rfc2822":"Sat, 29 Nov 2025 00:00:00 +0000","weekday":"Saturday","isoWeek":"2025-W48","dayOfYear":333,"zones":{"America/New_York":{"local":"2025-11-28T19:00:00-05:00","offset":"-0500","abbreviation":"EST"}},"delta":null,"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["time","utility","data-conversion"],"description":"Parse Unix s/ms/us/ns, ISO-8601 or RFC-2822 times to UTC, convert to IANA zones, ISO week and the calendar and business-day delta to a second time."}},"/api/v1/util/regex-cron-check.php":{"get":{"operationId":"v1_util_regex_cron_check","summary":"Static ReDoS check of a regex (nested quantifiers, overlapping repeated alternation; never executed) and 5-field cron validation with the next N UTC run times.","parameters":[{"name":"regex","in":"query","required":false,"schema":{"type":"string","maxLength":1000},"example":"^(a+)+$"},{"name":"cron","in":"query","required":false,"schema":{"type":"string","maxLength":200},"example":"*/15 9-17 * * 1-5"},{"name":"count","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20},"example":null},{"name":"from","in":"query","required":false,"schema":{"type":"string","description":"start time for next runs (default now, UTC)"},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["regex","cron","methodVersion","warnings"],"properties":{"regex":{"type":["object","null"]},"cron":{"type":["object","null"]},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"regex":{"pattern":"^(a+)+$","dialect":"python re (common PCRE/JS constructs)","valid":true,"error":null,"position":null,"groups":1,"risk":"high","findings":[{"kind":"nested_quantifier","severity":"high","detail":"a repeated group contains another unbounded repeat, e.g. (a+)+; backtracking can grow exponentially"}]},"cron":{"expression":"*/15 9-17 * * 1-5","valid":true,"timezone":"UTC","from":"2026-11-29T00:00:00.000Z","nextRuns":["2026-11-30T09:00:00Z","2026-11-30T09:15:00Z","2026-11-30T09:30:00Z","2026-11-30T09:45:00Z","2026-11-30T10:00:00Z"]},"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["time","validation","developer-tools"],"description":"Static ReDoS check of a regex (nested quantifiers, overlapping repeated alternation; never executed) and 5-field cron validation with the next N UTC run times."}},"/api/v1/crypto/evm-abi-codec.php":{"get":{"operationId":"v1_crypto_evm_abi_codec","summary":"Solidity function selector and event topic0 from a signature, plus calldata encoding and decoding for address, bool, intN/uintN, bytesN, bytes, string and T[].","parameters":[{"name":"signature","in":"query","required":true,"schema":{"type":"string","maxLength":500},"example":"transfer(address,uint256)"},{"name":"args","in":"query","required":false,"schema":{"type":"string","description":"JSON array of values to encode"},"example":"[\"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816\",1000000]"},{"name":"calldata","in":"query","required":false,"schema":{"type":"string","description":"0x calldata to decode"},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["kind","canonical","types","selector","topic0","calldata","decoded","methodVersion","warnings"],"properties":{"kind":{"type":"string"},"canonical":{"type":"string"},"types":{"type":"array","items":{"type":"string"}},"selector":{"type":"string","pattern":"^0x[0-9a-f]{8}$"},"topic0":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"calldata":{"type":["string","null"]},"decoded":{"type":["object","null"]},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"kind":"function","canonical":"transfer(address,uint256)","types":["address","uint256"],"selector":"0xa9059cbb","topic0":"0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b","calldata":"0xa9059cbb000000000000000000000000505c88e6dfa6e54b8851939dbeb5303c2080f81600000000000000000000000000000000000000000000000000000000000f4240","decoded":null,"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["encoding-crypto","developer-tools","utility"],"description":"Solidity function selector and event topic0 from a signature, plus calldata encoding and decoding for address, bool, intN/uintN, bytesN, bytes, string and T[]."}},"/api/v1/validate/text-diff-similarity.php":{"get":{"operationId":"v1_validate_text_diff_similarity","summary":"Unified line or word diff plus Levenshtein distance, Jaro-Winkler, Jaccard bigram and word, cosine term-frequency and SequenceMatcher similarity for two strings up to 1000 characters.","parameters":[{"name":"a","in":"query","required":true,"schema":{"type":"string","maxLength":1000},"example":"kitten"},{"name":"b","in":"query","required":true,"schema":{"type":"string","maxLength":1000},"example":"sitting"},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["line","word"]},"example":null}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["equal","mode","unifiedDiff","levenshtein","levenshteinSimilarity","jaroWinkler","jaccardBigram","jaccardWords","cosineTermFrequency","ratio","methodVersion","warnings"],"properties":{"equal":{"type":"boolean"},"mode":{"type":"string"},"unifiedDiff":{"type":"array","items":{"type":"string"}},"levenshtein":{"type":"integer"},"levenshteinSimilarity":{"type":"number"},"jaroWinkler":{"type":"number"},"jaccardBigram":{"type":"number"},"jaccardWords":{"type":"number"},"cosineTermFrequency":{"type":"number"},"ratio":{"type":"number"},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"equal":false,"mode":"line","unifiedDiff":["--- a","+++ b","@@ -1 +1 @@","-kitten","+sitting"],"levenshtein":3,"levenshteinSimilarity":0.571429,"jaroWinkler":0.746032,"jaccardBigram":0.222222,"jaccardWords":0.0,"cosineTermFrequency":0.0,"ratio":0.615385,"methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["validation","text-processing","utility"],"description":"Unified line or word diff plus Levenshtein distance, Jaro-Winkler, Jaccard bigram and word, cosine term-frequency and SequenceMatcher similarity for two strings up to 1000 characters."}},"/api/v1/util/json-schema-validate.php":{"get":{"operationId":"v1_util_json_schema_validate","summary":"Validate a JSON value against a JSON Schema (2020-12/Draft-07 core keywords, local $ref) with JSON-pointer error paths and type-coercion hints. Nothing is fetched.","parameters":[{"name":"schema","in":"query","required":true,"schema":{"type":"string","description":"JSON Schema as JSON text"},"example":"{\"type\":\"object\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"integer\"}}}"},{"name":"instance","in":"query","required":true,"schema":{"type":"string","description":"the JSON value to check"},"example":"{\"id\":\"7\"}"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","required":["valid","errorCount","errors","dialect","methodVersion","warnings"],"properties":{"valid":{"type":"boolean"},"errorCount":{"type":"integer"},"errors":{"type":"array","items":{"type":"object"}},"dialect":{"type":"string"},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"valid":false,"errorCount":1,"errors":[{"instancePath":"/id","keyword":"type","message":"expected integer, got string","coercible":true,"coercedValue":7}],"dialect":"2020-12 (assumed)","methodVersion":"igneos-pure/1","warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["validation","developer-tools","utility"],"description":"Validate a JSON value against a JSON Schema (2020-12/Draft-07 core keywords, local $ref) with JSON-pointer error paths and type-coercion hints. Nothing is fetched."}},"/api/v1/evm/fee-budget.php":{"get":{"operationId":"v1_evm_fee_budget","summary":"Calculate EIP-1559 gas cost, maximum fee exposure and balance shortfall from supplied fee inputs.","parameters":[{"name":"gasLimit","in":"query","required":true,"schema":{"type":"string"},"example":"21000"},{"name":"baseFeeWei","in":"query","required":true,"schema":{"type":"string"},"example":"1000000000"},{"name":"tipWei","in":"query","required":true,"schema":{"type":"string"},"example":"100000000"},{"name":"maxFeeWei","in":"query","required":true,"schema":{"type":"string"},"example":"2000000000"},{"name":"l1FeeWei","in":"query","required":true,"schema":{"type":"string"},"example":"0"},{"name":"balanceWei","in":"query","required":true,"schema":{"type":"string"},"example":"50000000000000"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"includable":{"type":"boolean"},"estimatedFeeWei":{"type":"string"},"maximumFeeWei":{"type":"string"},"shortfallWei":{"type":"string"}},"required":["includable","estimatedFeeWei","maximumFeeWei","shortfallWei"],"additionalProperties":false},"example":{"includable":true,"estimatedFeeWei":"23100000000000","maximumFeeWei":"42000000000000","shortfallWei":"0"}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["payments","crypto","evm"],"description":"Calculate EIP-1559 gas cost, maximum fee exposure and balance shortfall from supplied fee inputs."}},"/api/v1/defi/swap-guard.php":{"get":{"operationId":"v1_defi_swap_guard","summary":"Calculate an exact minimum output or maximum input with basis-point tolerance and integer rounding.","parameters":[{"name":"amount","in":"query","required":true,"schema":{"type":"string"},"example":"1000000"},{"name":"toleranceBps","in":"query","required":true,"schema":{"type":"string"},"example":"50"},{"name":"mode","in":"query","required":true,"schema":{"type":"string"},"example":"min-out"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string"},"limitRaw":{"type":"string"},"rounding":{"type":"string"}},"required":["mode","limitRaw","rounding"],"additionalProperties":false},"example":{"mode":"min-out","limitRaw":"995000","rounding":"down"}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Calculate an exact minimum output or maximum input with basis-point tolerance and integer rounding."}},"/api/v1/defi/amm-quote.php":{"get":{"operationId":"v1_defi_amm_quote","summary":"Calculate exact-input or exact-output constant-product AMM quotes and post-swap reserves from supplied pool balances.","parameters":[{"name":"reserveIn","in":"query","required":true,"schema":{"type":"string"},"example":"1000000"},{"name":"reserveOut","in":"query","required":true,"schema":{"type":"string"},"example":"1000000"},{"name":"amount","in":"query","required":true,"schema":{"type":"string"},"example":"10000"},{"name":"feeBps","in":"query","required":true,"schema":{"type":"string"},"example":"30"},{"name":"mode","in":"query","required":true,"schema":{"type":"string"},"example":"exact-in"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"amountInRaw":{"type":"string"},"amountOutRaw":{"type":"string"},"reserveInAfterRaw":{"type":"string"},"reserveOutAfterRaw":{"type":"string"}},"required":["amountInRaw","amountOutRaw","reserveInAfterRaw","reserveOutAfterRaw"],"additionalProperties":false},"example":{"amountInRaw":"10000","amountOutRaw":"9871","reserveInAfterRaw":"1010000","reserveOutAfterRaw":"990129"}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Calculate exact-input or exact-output constant-product AMM quotes and post-swap reserves from supplied pool balances."}},"/api/v1/defi/lp-withdraw.php":{"get":{"operationId":"v1_defi_lp_withdraw","summary":"Calculate proportional pool withdrawals and remaining LP supply from balances and share count.","parameters":[{"name":"reserve0","in":"query","required":true,"schema":{"type":"string"},"example":"1000000"},{"name":"reserve1","in":"query","required":true,"schema":{"type":"string"},"example":"2000000"},{"name":"totalSupply","in":"query","required":true,"schema":{"type":"string"},"example":"10000"},{"name":"shares","in":"query","required":true,"schema":{"type":"string"},"example":"250"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"token0Raw":{"type":"string"},"token1Raw":{"type":"string"},"remainingSupplyRaw":{"type":"string"}},"required":["token0Raw","token1Raw","remainingSupplyRaw"],"additionalProperties":false},"example":{"token0Raw":"25000","token1Raw":"50000","remainingSupplyRaw":"9750"}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Calculate proportional pool withdrawals and remaining LP supply from balances and share count."}},"/api/v1/crypto/atomic-split.php":{"get":{"operationId":"v1_crypto_atomic_split","summary":"Split integer token amounts by up to 20 weights with deterministic remainder allocation and exact total preservation.","parameters":[{"name":"total","in":"query","required":true,"schema":{"type":"string"},"example":"1000001"},{"name":"weights","in":"query","required":true,"schema":{"type":"string"},"example":"1,2,3"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"allocationsRaw":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":20},"totalRaw":{"type":"string"}},"required":["allocationsRaw","totalRaw"],"additionalProperties":false},"example":{"allocationsRaw":["166667","333334","500000"],"totalRaw":"1000001"}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["payments","math-finance","crypto"],"description":"Split integer token amounts by up to 20 weights with deterministic remainder allocation and exact total preservation."}},"/api/v1/base/pre-trade-bundle.php":{"get":{"operationId":"v1_base_pre_trade_bundle","summary":"Base pre-trade bundle: token security verdict, liquidity and slippage at $100/$1k/$10k, price impact at your size and gas cost in one call; returns safeToSwap, verdict and riskScore.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4ed4e862860bed51a9570b96d89af5e1b0efefed"},{"name":"tradeSizeUsd","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,4}$"},"example":"1000"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.080000"}},"x-x402":{"price":{"amount":"80000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","methodVersion","observedAt","reasons","reports","riskScore","rules","safeToSwap","swapCostUsd","token","tradeSizeUsd","verdict","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"verdict":{"type":"string","enum":["SAFE","CAUTION","AVOID"]},"riskScore":{"type":"integer","minimum":0,"maximum":100},"reasons":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"string"}},"reports":{"type":"object","additionalProperties":false,"required":["gasPriority","priceImpact","tokenLiquidity","tokenSecurity"],"properties":{"tokenSecurity":{"type":["object","null"],"additionalProperties":false,"required":["chainId","token","symbol","decimals","blockNumber","blockHash","observedAt","methodVersion","verdict","reasons","checks","privilegedFunctions","simulation","priceUsd","liquidityUsd","exit","pools","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":["integer","null"],"minimum":0},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"verdict":{"type":"string","enum":["SAFE","CAUTION","AVOID"]},"reasons":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","state","evidence"],"properties":{"code":{"type":"string"},"state":{"type":"string","enum":["pass","warn","fail","unknown"]},"evidence":{"type":"string"}}}},"privilegedFunctions":{"type":"array","items":{"type":"string"}},"simulation":{"type":"object","additionalProperties":false,"required":["method","buyTaxBps","sellTaxBps","sellReverted"],"properties":{"method":{"type":"string","enum":["eth_simulateV1","eth_call","none"]},"buyTaxBps":{"type":["integer","null"],"minimum":0,"maximum":10000},"sellTaxBps":{"type":["integer","null"],"minimum":0,"maximum":10000},"sellReverted":{"type":["boolean","null"]}}},"priceUsd":{"type":["string","null"]},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"exit":{"type":"object","additionalProperties":false,"required":["tradeAmountUsd","pool","venue","amountInTokenRaw","expectedOutUsd","slippageBps"],"properties":{"tradeAmountUsd":{"type":"integer","minimum":1},"pool":{"type":["string","null"]},"venue":{"type":["string","null"]},"amountInTokenRaw":{"type":["string","null"]},"expectedOutUsd":{"type":["string","null"]},"slippageBps":{"type":["integer","null"],"minimum":0,"maximum":10000}}},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","quoteSymbol","reserveTokenRaw","reserveQuoteRaw","feeBps","priceUsd","liquidityUsd"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"quoteSymbol":{"type":"string","enum":["USDC","WETH"]},"reserveTokenRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserveQuoteRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"feeBps":{"type":["integer","null"],"minimum":0},"priceUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"tokenLiquidity":{"type":["object","null"],"additionalProperties":false,"required":["chainId","token","symbol","decimals","totalSupplyRaw","blockNumber","blockHash","observedAt","methodVersion","priceUsd","liquidityUsd","pools","quotes","signals","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":["integer","null"],"minimum":0},"totalSupplyRaw":{"type":["string","null"]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"priceUsd":{"type":["string","null"]},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","quoteSymbol","reserveTokenRaw","reserveQuoteRaw","feeBps","priceUsd","liquidityUsd"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"quoteSymbol":{"type":"string","enum":["USDC","WETH"]},"reserveTokenRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserveQuoteRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"feeBps":{"type":["integer","null"],"minimum":0},"priceUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"liquidityUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}},"quotes":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["sizeUsd","pool","amountOutRaw","priceImpactBps"],"properties":{"sizeUsd":{"type":"integer","enum":[100,1000,10000]},"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amountOutRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"priceImpactBps":{"type":"integer","minimum":0,"maximum":10000}}}},"signals":{"type":"array","items":{"type":"object","required":["code","state","evidence"],"additionalProperties":false,"properties":{"code":{"type":"string"},"state":{"type":"string","enum":["observed","absent","unknown"]},"evidence":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"priceImpact":{"type":["object","null"],"additionalProperties":false,"required":["chainId","schemaVersion","token","decimals","tradeSizeUsd","blockNumber","blockHash","observedAt","coverage","pools","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"schemaVersion":{"type":"string"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":36},"tradeSizeUsd":{"type":"string","pattern":"^(0|[1-9][0-9]{0,5})(\\.[0-9]{1,2})?$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"coverage":{"type":"object","additionalProperties":false,"required":["poolModel","quote","venues","stableQuote"],"properties":{"poolModel":{"type":"string","enum":["v2_constant_product"]},"quote":{"type":"string","enum":["USDC"]},"venues":{"type":"array","items":{"type":"string"}},"stableQuote":{"type":"string"},"flowWindows":{"type":"string"}}},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["pool","venue","feeBps","reserveUsdc","reserveTokenRaw","priceUsdc","amountOutCurveRaw","amountOutRaw","priceImpactBpsCurve","priceImpactBpsWithFee","buyDepthUsdc"],"properties":{"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"venue":{"type":"string","enum":["uniswap-v2","aerodrome-volatile"]},"feeBps":{"type":"integer","minimum":0,"maximum":1000},"reserveUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"reserveTokenRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"priceUsdc":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"amountOutCurveRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"amountOutRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"priceImpactBpsCurve":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"priceImpactBpsWithFee":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"buyDepthUsdc":{"type":"object","additionalProperties":false,"required":["bps50","bps100","bps300"],"properties":{"bps50":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"bps100":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"bps300":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"}}}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"gasPriority":{"type":["object","null"],"additionalProperties":false,"required":["chainId","blockNumber","blockHash","observedAt","methodVersion","baseFeeGwei","tipGwei","gasUsedRatio","l1","ethUsd","costs","assumptions","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"baseFeeGwei":{"type":"number","minimum":0},"tipGwei":{"type":"object","additionalProperties":false,"required":["p25","p50","p90"],"properties":{"p25":{"type":"number","minimum":0},"p50":{"type":"number","minimum":0},"p90":{"type":"number","minimum":0}}},"gasUsedRatio":{"type":"number","minimum":0},"l1":{"type":"object","additionalProperties":false,"required":["baseFeeGwei","blobBaseFeeGwei","baseFeeScalar","blobBaseFeeScalar"],"properties":{"baseFeeGwei":{"type":"number","minimum":0},"blobBaseFeeGwei":{"type":"number","minimum":0},"baseFeeScalar":{"type":"integer"},"blobBaseFeeScalar":{"type":"integer"}}},"ethUsd":{"type":["number","null"]},"costs":{"type":"object","additionalProperties":false,"required":["erc20_transfer","swap"],"properties":{"erc20_transfer":{"type":"object","additionalProperties":false,"required":["gasUsed","compressedBytes","l2FeeGwei","l1DataFeeGwei","totalGwei","totalUsd"],"properties":{"gasUsed":{"type":"integer"},"compressedBytes":{"type":"integer"},"l2FeeGwei":{"type":"number","minimum":0},"l1DataFeeGwei":{"type":"number","minimum":0},"totalGwei":{"type":"number","minimum":0},"totalUsd":{"type":["number","null"]}}},"swap":{"type":"object","additionalProperties":false,"required":["gasUsed","compressedBytes","l2FeeGwei","l1DataFeeGwei","totalGwei","totalUsd"],"properties":{"gasUsed":{"type":"integer"},"compressedBytes":{"type":"integer"},"l2FeeGwei":{"type":"number","minimum":0},"l1DataFeeGwei":{"type":"number","minimum":0},"totalGwei":{"type":"number","minimum":0},"totalUsd":{"type":["number","null"]}}}}},"assumptions":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}}}}},"warnings":{"type":"array","items":{"type":"string"}},"token":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"tradeSizeUsd":{"type":"integer","minimum":1},"safeToSwap":{"type":"boolean"},"swapCostUsd":{"type":["number","null"]}}},"example":{"chainId":8453,"observedAt":"2026-11-29T06:00:00Z","methodVersion":"pre-trade-bundle/1","verdict":"CAUTION","riskScore":50,"reasons":["exit slippage 512 bps for $1000"],"rules":["verdict is the token-security verdict (SAFE / CAUTION / AVOID)","SAFE becomes CAUTION when the best pool's price impact (with fee) at tradeSizeUsd is 300 bps or more, or a sub-report is unavailable","safeToSwap is true only when verdict is SAFE","riskScore: SAFE 10, CAUTION 50, AVOID 90, plus 3 per non-pass security check (capped at 100)"],"token":"0x4ed4e862860bed51a9570b96d89af5e1b0efefed","tradeSizeUsd":1000,"safeToSwap":false,"swapCostUsd":0.01494,"reports":{"tokenSecurity":{"chainId":8453,"token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","symbol":"TKN","decimals":18,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"token-security/1","verdict":"CAUTION","reasons":["exit slippage 512 bps for $1000"],"checks":[],"privilegedFunctions":["ownership"],"simulation":{"method":"eth_simulateV1","buyTaxBps":0,"sellTaxBps":0,"sellReverted":false},"priceUsd":"0.04","liquidityUsd":"84000","exit":{"tradeAmountUsd":1000,"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"aerodrome-volatile","amountInTokenRaw":"25000000000000000000000","expectedOutUsd":"948.8","slippageBps":512},"pools":[],"warnings":[]},"tokenLiquidity":{"chainId":8453,"token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","symbol":"TKN","decimals":18,"totalSupplyRaw":"1000000","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"token-liquidity/1","priceUsd":"0.04","liquidityUsd":"84000","pools":[{"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"aerodrome-volatile","quoteSymbol":"USDC","reserveTokenRaw":"1","reserveQuoteRaw":"1","feeBps":30,"priceUsd":"0.04","liquidityUsd":"84000"}],"quotes":[{"sizeUsd":1000,"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","amountOutRaw":"1","priceImpactBps":263}],"signals":[{"code":"owner_set","state":"absent","evidence":"zero owner"}],"warnings":[]},"priceImpact":{"chainId":8453,"schemaVersion":"price-impact/1","token":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","decimals":6,"tradeSizeUsd":"1000","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","coverage":{"poolModel":"v2_constant_product","quote":"USDC","venues":["uniswap-v2","aerodrome-volatile"],"stableQuote":"USDC=1USD"},"pools":[{"pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","venue":"uniswap-v2","feeBps":30,"reserveUsdc":"1000000","reserveTokenRaw":"500000000000","priceUsdc":"2","amountOutCurveRaw":"499500499","amountOutRaw":"498003490","priceImpactBpsCurve":"9.99","priceImpactBpsWithFee":"39.93","buyDepthUsdc":{"bps50":"5025.12","bps100":"10101.01","bps300":"30927.83"}}],"warnings":[]},"gasPriority":{"chainId":8453,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"base-gas-priority/1","baseFeeGwei":0.005,"tipGwei":{"p25":0.0001,"p50":0.001,"p90":0.01},"gasUsedRatio":0.31,"l1":{"baseFeeGwei":4.2,"blobBaseFeeGwei":0.001,"baseFeeScalar":1368,"blobBaseFeeScalar":810949},"ethUsd":3000.0,"costs":{"erc20_transfer":{"gasUsed":65000,"compressedBytes":110,"l2FeeGwei":390.0,"l1DataFeeGwei":1700.0,"totalGwei":2090.0,"totalUsd":0.00627},"swap":{"gasUsed":180000,"compressedBytes":250,"l2FeeGwei":1080.0,"l1DataFeeGwei":3900.0,"totalGwei":4980.0,"totalUsd":0.01494}},"assumptions":["next-block estimate at the p50 tip","erc20_transfer: 65000 gas, 110 compressed bytes","swap: 180000 gas, 250 compressed bytes"],"warnings":[]}},"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.08 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Base pre-trade bundle: token security verdict, liquidity and slippage at $100/$1k/$10k, price impact at your size and gas cost in one call; returns safeToSwap, verdict and riskScore."}},"/api/v1/base/arb-execution-bundle.php":{"get":{"operationId":"v1_base_arb_execution_bundle","summary":"Base arbitrage execution bundle: cross-DEX spread and round-trip net, perp funding divergence and gas cost in one call; returns verdict EXECUTABLE/MARGINAL/NO_EDGE and riskScore.","parameters":[{"name":"token_in","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x4200000000000000000000000000000000000006"},{"name":"token_out","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"},{"name":"amount_in","in":"query","required":true,"schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$"},"example":"1"},{"name":"asset","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{1,15}$"},"example":"ETH"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.080000"}},"x-x402":{"price":{"amount":"80000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","methodVersion","netEdgeBps","observedAt","reasons","reports","riskScore","rules","swapCostUsd","verdict","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"verdict":{"type":"string","enum":["EXECUTABLE","MARGINAL","NO_EDGE"]},"riskScore":{"type":"integer","minimum":0,"maximum":100},"reasons":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"string"}},"reports":{"type":"object","additionalProperties":false,"required":["dexSpread","fundingDivergence","gasPriority"],"properties":{"dexSpread":{"type":["object","null"],"additionalProperties":false,"required":["chainId","blockNumber","blockHash","observedAt","methodVersion","tokenIn","tokenOut","amountIn","amountInRaw","pools","best","worst","executionSpreadBps","arbitrage","excludes","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"tokenIn":{"type":"object","additionalProperties":false,"required":["address","symbol","decimals"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0,"maximum":36}}},"tokenOut":{"type":"object","additionalProperties":false,"required":["address","symbol","decimals"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"symbol":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0,"maximum":36}}},"amountIn":{"type":"string"},"amountInRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"pools":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["venue","pool","feeBps","amountOutRaw","amountOut","effectivePrice","vsBestBps"],"properties":{"venue":{"type":"string","enum":["uniswap-v3","pancakeswap-v3","aerodrome-volatile","aerodrome-stable","uniswap-v2"]},"pool":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"feeBps":{"type":["number","null"]},"amountOutRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"amountOut":{"type":"string"},"effectivePrice":{"type":"string"},"vsBestBps":{"type":"number","minimum":0}}}},"best":{"type":["object","null"]},"worst":{"type":["object","null"]},"executionSpreadBps":{"type":["number","null"]},"arbitrage":{"type":"object","additionalProperties":false,"required":["buyPool","buyVenue","sellPool","sellVenue","roundTripOutRaw","netBps","profitable"],"properties":{"buyPool":{"type":["string","null"]},"buyVenue":{"type":["string","null"]},"sellPool":{"type":["string","null"]},"sellVenue":{"type":["string","null"]},"roundTripOutRaw":{"type":["string","null"]},"netBps":{"type":["number","null"]},"profitable":{"type":"boolean"}}},"excludes":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}}},"fundingDivergence":{"type":["object","null"],"additionalProperties":false,"required":["asset","observedAt","methodVersion","venues","divergence","signal","warnings"],"properties":{"asset":{"type":"string"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"venues":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["venue","status","chain","market","blockNumber","fundingRateHourly","funding8hBps","fundingAnnualizedPct","openInterestUsd","longOpenInterestUsd","shortOpenInterestUsd","skewPct","markPrice","indexPrice","premiumBps"],"properties":{"venue":{"type":"string","enum":["hyperliquid","synthetix-v3-base"]},"status":{"type":"string","enum":["ok","not_listed","unavailable"]},"chain":{"type":"string"},"market":{"type":["string","null"]},"blockNumber":{"type":["integer","null"]},"fundingRateHourly":{"type":["number","null"]},"funding8hBps":{"type":["number","null"]},"fundingAnnualizedPct":{"type":["number","null"]},"openInterestUsd":{"type":["number","null"]},"longOpenInterestUsd":{"type":["number","null"]},"shortOpenInterestUsd":{"type":["number","null"]},"skewPct":{"type":["number","null"]},"markPrice":{"type":["number","null"]},"indexPrice":{"type":["number","null"]},"premiumBps":{"type":["number","null"]}}}},"divergence":{"type":"object","additionalProperties":false,"required":["venuesCompared","fundingSpreadAnnualizedPct","funding8hSpreadBps","highFundingVenue","lowFundingVenue","carryTrade","totalOpenInterestUsd","oiWeightedSkewPct"],"properties":{"venuesCompared":{"type":"integer","minimum":0},"fundingSpreadAnnualizedPct":{"type":["number","null"]},"funding8hSpreadBps":{"type":["number","null"]},"highFundingVenue":{"type":["string","null"]},"lowFundingVenue":{"type":["string","null"]},"carryTrade":{"type":["string","null"]},"totalOpenInterestUsd":{"type":["number","null"]},"oiWeightedSkewPct":{"type":["number","null"]}}},"signal":{"type":"object","additionalProperties":false,"required":["bias","strength","reasons"],"properties":{"bias":{"type":"string","enum":["long_crowded","short_crowded","neutral","mixed","unknown"]},"strength":{"type":"string","enum":["none","low","medium","high"]},"reasons":{"type":"array","items":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"gasPriority":{"type":["object","null"],"additionalProperties":false,"required":["chainId","blockNumber","blockHash","observedAt","methodVersion","baseFeeGwei","tipGwei","gasUsedRatio","l1","ethUsd","costs","assumptions","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"baseFeeGwei":{"type":"number","minimum":0},"tipGwei":{"type":"object","additionalProperties":false,"required":["p25","p50","p90"],"properties":{"p25":{"type":"number","minimum":0},"p50":{"type":"number","minimum":0},"p90":{"type":"number","minimum":0}}},"gasUsedRatio":{"type":"number","minimum":0},"l1":{"type":"object","additionalProperties":false,"required":["baseFeeGwei","blobBaseFeeGwei","baseFeeScalar","blobBaseFeeScalar"],"properties":{"baseFeeGwei":{"type":"number","minimum":0},"blobBaseFeeGwei":{"type":"number","minimum":0},"baseFeeScalar":{"type":"integer"},"blobBaseFeeScalar":{"type":"integer"}}},"ethUsd":{"type":["number","null"]},"costs":{"type":"object","additionalProperties":false,"required":["erc20_transfer","swap"],"properties":{"erc20_transfer":{"type":"object","additionalProperties":false,"required":["gasUsed","compressedBytes","l2FeeGwei","l1DataFeeGwei","totalGwei","totalUsd"],"properties":{"gasUsed":{"type":"integer"},"compressedBytes":{"type":"integer"},"l2FeeGwei":{"type":"number","minimum":0},"l1DataFeeGwei":{"type":"number","minimum":0},"totalGwei":{"type":"number","minimum":0},"totalUsd":{"type":["number","null"]}}},"swap":{"type":"object","additionalProperties":false,"required":["gasUsed","compressedBytes","l2FeeGwei","l1DataFeeGwei","totalGwei","totalUsd"],"properties":{"gasUsed":{"type":"integer"},"compressedBytes":{"type":"integer"},"l2FeeGwei":{"type":"number","minimum":0},"l1DataFeeGwei":{"type":"number","minimum":0},"totalGwei":{"type":"number","minimum":0},"totalUsd":{"type":["number","null"]}}}}},"assumptions":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}}}}},"warnings":{"type":"array","items":{"type":"string"}},"netEdgeBps":{"type":["number","null"]},"swapCostUsd":{"type":["number","null"]}}},"example":{"chainId":8453,"observedAt":"2026-11-29T06:00:00Z","methodVersion":"arb-execution-bundle/1","verdict":"NO_EDGE","riskScore":90,"reasons":["no profitable DEX round trip at this size"],"rules":["netEdgeBps is the DEX round-trip netBps minus the swap gas cost in bps of the trade value (two swaps)","EXECUTABLE when the round trip is profitable and netEdgeBps is 5 or more; MARGINAL when above 0; else NO_EDGE","riskScore: EXECUTABLE 30, MARGINAL 60, NO_EDGE 90; +10 when a sub-report is unavailable (capped at 100)"],"netEdgeBps":null,"swapCostUsd":0.01494,"reports":{"dexSpread":{"chainId":8453,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"base-dex-spread/1","tokenIn":{"address":"0x4200000000000000000000000000000000000006","symbol":"WETH","decimals":18},"tokenOut":{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","symbol":"USDC","decimals":6},"amountIn":"1","amountInRaw":"1000000000000000000","pools":[{"venue":"uniswap-v3","pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1","feeBps":5,"amountOutRaw":"2998500000","amountOut":"2998.5","effectivePrice":"2998.5","vsBestBps":0}],"best":{"venue":"uniswap-v3","pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"},"worst":{"venue":"uniswap-v3","pool":"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"},"executionSpreadBps":null,"arbitrage":{"buyPool":null,"buyVenue":null,"sellPool":null,"sellVenue":null,"roundTripOutRaw":null,"netBps":null,"profitable":false},"excludes":["gas","mev","transfer taxes"],"warnings":["single quotable pool"]},"fundingDivergence":{"asset":"ETH","observedAt":"2026-11-28T06:00:00Z","methodVersion":"perp-funding-divergence/1","venues":[{"venue":"hyperliquid","status":"ok","chain":"hyperliquid-l1","market":"ETH","blockNumber":null,"fundingRateHourly":1.25e-05,"funding8hBps":1.0,"fundingAnnualizedPct":10.95,"openInterestUsd":1250000000.0,"longOpenInterestUsd":null,"shortOpenInterestUsd":null,"skewPct":null,"markPrice":3000.5,"indexPrice":3000.0,"premiumBps":1.67},{"venue":"synthetix-v3-base","status":"ok","chain":"eip155:8453","market":"100","blockNumber":23000000,"fundingRateHourly":4.17e-05,"funding8hBps":3.33,"fundingAnnualizedPct":36.5,"openInterestUsd":12000000.0,"longOpenInterestUsd":7200000.0,"shortOpenInterestUsd":4800000.0,"skewPct":20.0,"markPrice":null,"indexPrice":3000.0,"premiumBps":null}],"divergence":{"venuesCompared":2,"fundingSpreadAnnualizedPct":25.55,"funding8hSpreadBps":2.33,"highFundingVenue":"synthetix-v3-base","lowFundingVenue":"hyperliquid","carryTrade":"short synthetix-v3-base / long hyperliquid","totalOpenInterestUsd":1262000000.0,"oiWeightedSkewPct":20.0},"signal":{"bias":"long_crowded","strength":"low","reasons":["OI-weighted annualized funding 11.2% (longs pay shorts)","synthetix-v3-base skew +20.0% long"]},"warnings":[]},"gasPriority":{"chainId":8453,"blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"base-gas-priority/1","baseFeeGwei":0.005,"tipGwei":{"p25":0.0001,"p50":0.001,"p90":0.01},"gasUsedRatio":0.31,"l1":{"baseFeeGwei":4.2,"blobBaseFeeGwei":0.001,"baseFeeScalar":1368,"blobBaseFeeScalar":810949},"ethUsd":3000.0,"costs":{"erc20_transfer":{"gasUsed":65000,"compressedBytes":110,"l2FeeGwei":390.0,"l1DataFeeGwei":1700.0,"totalGwei":2090.0,"totalUsd":0.00627},"swap":{"gasUsed":180000,"compressedBytes":250,"l2FeeGwei":1080.0,"l1DataFeeGwei":3900.0,"totalGwei":4980.0,"totalUsd":0.01494}},"assumptions":["next-block estimate at the p50 tip","erc20_transfer: 65000 gas, 110 compressed bytes","swap: 180000 gas, 250 compressed bytes"],"warnings":[]}},"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.08 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["defi","crypto","financial-data"],"description":"Base arbitrage execution bundle: cross-DEX spread and round-trip net, perp funding divergence and gas cost in one call; returns verdict EXECUTABLE/MARGINAL/NO_EDGE and riskScore."}},"/api/v1/base/wallet-due-diligence.php":{"get":{"operationId":"v1_base_wallet_due_diligence","summary":"Base wallet due diligence: wallet risk score, holdings, account age, DEX history, nonce and gas budget in one call; returns verdict LOW/MEDIUM/HIGH and riskScore.","parameters":[{"name":"wallet_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"example":"0x505c88e6dfa6e54b8851939dbeb5303c2080f816"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.030000"}},"x-x402":{"price":{"amount":"30000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["chainId","methodVersion","observedAt","reasons","reports","riskScore","rules","verdict","wallet","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"verdict":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"riskScore":{"type":"integer","minimum":0,"maximum":100},"reasons":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"string"}},"reports":{"type":"object","additionalProperties":false,"required":["walletNonce","walletRisk"],"properties":{"walletRisk":{"type":["object","null"],"additionalProperties":false,"required":["chainId","wallet","blockNumber","blockHash","observedAt","methodVersion","isContract","txCount","firstSeenBlock","firstSeenAt","accountAgeDays","holdings","totalUsd","recentDexInteractions","dexHistorySource","riskScore","riskLevel","flags","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string"},"methodVersion":{"type":"string"},"isContract":{"type":"boolean"},"txCount":{"type":"integer","minimum":0},"firstSeenBlock":{"type":["integer","null"]},"firstSeenAt":{"type":["string","null"]},"accountAgeDays":{"type":["integer","null"],"minimum":0},"holdings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["symbol","token","decimals","balanceRaw","balance","usd"],"properties":{"symbol":{"type":"string"},"token":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0},"balanceRaw":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"balance":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"usd":{"type":["string","null"]}}}},"totalUsd":{"type":"string","pattern":"^(0|[1-9][0-9]*)(\\.[0-9]+)?$"},"recentDexInteractions":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"required":["router","name","count"],"properties":{"router":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"name":{"type":"string"},"count":{"type":"integer","minimum":1}}}},"dexHistorySource":{"type":"string","enum":["alchemy_getAssetTransfers","unavailable"]},"riskScore":{"type":"integer","minimum":0,"maximum":100},"riskLevel":{"type":"string","enum":["low","medium","high"]},"flags":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","points","evidence"],"properties":{"code":{"type":"string"},"points":{"type":"integer"},"evidence":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"walletNonce":{"type":["object","null"],"additionalProperties":false,"required":["chainId","wallet","blockNumber","blockHash","observedAt","methodVersion","confirmedNonce","pendingNonce","pendingGap","stuckStatus","ethBalanceWei","ethBalance","gasBudget","warnings"],"properties":{"chainId":{"type":"integer","enum":[8453]},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"blockNumber":{"type":"integer","minimum":0},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"observedAt":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},"methodVersion":{"type":"string"},"confirmedNonce":{"type":"integer","minimum":0},"pendingNonce":{"type":"integer","minimum":0},"pendingGap":{"type":"integer","minimum":0},"stuckStatus":{"type":"string","enum":["none","unverified"]},"ethBalanceWei":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"ethBalance":{"type":"string"},"gasBudget":{"type":"object","additionalProperties":false,"required":["nextBlockGasPriceGwei","transferL2FeeWei","transfersCovered","note"],"properties":{"nextBlockGasPriceGwei":{"type":"number","minimum":0},"transferL2FeeWei":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"transfersCovered":{"type":["integer","null"],"minimum":0},"note":{"type":"string"}}},"warnings":{"type":"array","items":{"type":"string"}}}}}},"warnings":{"type":"array","items":{"type":"string"}},"wallet":{"type":"string","pattern":"^0x[0-9a-f]{40}$"}}},"example":{"chainId":8453,"observedAt":"2026-11-29T06:00:00Z","methodVersion":"wallet-due-diligence/1","verdict":"MEDIUM","riskScore":10,"reasons":["pending nonce gap 1"],"rules":["verdict is wallet-risk riskLevel (low / medium / high) in capitals","LOW becomes MEDIUM when the pending nonce gap is above 0 or a sub-report is unavailable","riskScore is wallet-risk riskScore, plus 10 for a pending nonce gap above 0 (capped at 100)"],"wallet":"0x1111111111111111111111111111111111111111","reports":{"walletRisk":{"chainId":8453,"wallet":"0x1111111111111111111111111111111111111111","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-28T06:00:00Z","methodVersion":"wallet-risk/1","isContract":false,"txCount":412,"firstSeenBlock":9000000,"firstSeenAt":"2024-01-10T12:00:00Z","accountAgeDays":688,"holdings":[{"symbol":"ETH","token":null,"decimals":18,"balanceRaw":"500000000000000000","balance":"0.5","usd":"1650"}],"totalUsd":"1650","recentDexInteractions":[{"router":"0xcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcf","name":"aerodrome-router","count":7}],"dexHistorySource":"alchemy_getAssetTransfers","riskScore":0,"riskLevel":"low","flags":[],"warnings":[]},"walletNonce":{"chainId":8453,"wallet":"0x1111111111111111111111111111111111111111","blockNumber":23000000,"blockHash":"0xabababababababababababababababababababababababababababababababab","observedAt":"2026-11-29T06:00:00Z","methodVersion":"base-wallet-nonce/1","confirmedNonce":412,"pendingNonce":413,"pendingGap":1,"stuckStatus":"unverified","ethBalanceWei":"500000000000000000","ethBalance":"0.5","gasBudget":{"nextBlockGasPriceGwei":0.002,"transferL2FeeWei":"130000000000","transfersCovered":3846153846,"note":"L2 execution fee only; the L1 data fee is not included"},"warnings":["pending nonce reflects the answering provider's mempool and is not pinned to a block"]}},"warnings":[]}}}},"402":{"description":"x402 V2 payment required: 0.03 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","base"],"description":"Base wallet due diligence: wallet risk score, holdings, account age, DEX history, nonce and gas budget in one call; returns verdict LOW/MEDIUM/HIGH and riskScore."}},"/api/v1/solana/priority-fees.php":{"get":{"operationId":"v1_solana_priority_fees","summary":"Recent Solana priority fee distribution with p50, p75 and p90 micro-lamports per compute unit, using recent slot samples.","parameters":[{"name":"sampleSlots","in":"query","required":true,"schema":{"type":"string"},"example":"30"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003000"}},"x-x402":{"price":{"amount":"3000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"sampleCount":{"type":"string"},"latestSlot":{"type":"string"},"p50MicroLamportsPerCU":{"type":"string"},"p75MicroLamportsPerCU":{"type":"string"},"p90MicroLamportsPerCU":{"type":"string"}},"required":["sampleCount","latestSlot","p50MicroLamportsPerCU","p75MicroLamportsPerCU","p90MicroLamportsPerCU"],"additionalProperties":false},"example":{"sampleCount":"30","latestSlot":"30","p50MicroLamportsPerCU":"1500","p75MicroLamportsPerCU":"2300","p90MicroLamportsPerCU":"2700"}}}},"402":{"description":"x402 V2 payment required: 0.003 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["payments","crypto","solana"],"description":"Recent Solana priority fee distribution with p50, p75 and p90 micro-lamports per compute unit, using recent slot samples."}},"/api/v1/solana/mint-audit.php":{"get":{"operationId":"v1_solana_mint_audit","summary":"Inspect a Solana SPL mint: supply, decimals, mint and freeze authority status, token program and Token-2022 extension names.","parameters":[{"name":"mint","in":"query","required":true,"schema":{"type":"string"},"example":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"mint":{"type":"string"},"status":{"type":"string"},"program":{"type":"string"},"supplyRaw":{"type":"string"},"decimals":{"type":"string"},"mintAuthorityActive":{"type":"boolean"},"freezeAuthorityActive":{"type":"boolean"},"extensions":{"type":"array","items":{"type":"string"},"maxItems":64}},"required":["mint","status","program","supplyRaw","decimals","mintAuthorityActive","freezeAuthorityActive","extensions"],"additionalProperties":false},"example":{"mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","status":"initialized","program":"spl-token","supplyRaw":"1000000","decimals":"6","mintAuthorityActive":true,"freezeAuthorityActive":false,"extensions":[]}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","solana"],"description":"Inspect a Solana SPL mint: supply, decimals, mint and freeze authority status, token program and Token-2022 extension names."}},"/api/v1/solana/fee-budget.php":{"get":{"operationId":"v1_solana_fee_budget","summary":"Estimate Solana transaction fees in lamports and SOL from compute units, priority rate and a 5000-lamport base fee per signature.","parameters":[{"name":"computeUnits","in":"query","required":true,"schema":{"type":"string"},"example":"200000"},{"name":"microLamportsPerUnit","in":"query","required":true,"schema":{"type":"string"},"example":"50000"},{"name":"signatures","in":"query","required":true,"schema":{"type":"string"},"example":"1"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"baseLamports":{"type":"string"},"priorityLamports":{"type":"string"},"totalLamports":{"type":"string"},"totalSol":{"type":"string"}},"required":["baseLamports","priorityLamports","totalLamports","totalSol"],"additionalProperties":false},"example":{"baseLamports":"5000","priorityLamports":"10000","totalLamports":"15000","totalSol":"0.000015"}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["payments","crypto","solana"],"description":"Estimate Solana transaction fees in lamports and SOL from compute units, priority rate and a 5000-lamport base fee per signature."}},"/api/v1/agent/spend-budget.php":{"get":{"operationId":"v1_agent_spend_budget","summary":"Calculate fixed-price paid API call costs, remaining USDC budget, maximum affordable calls and budget fit.","parameters":[{"name":"calls","in":"query","required":true,"schema":{"type":"string"},"example":"10000"},{"name":"priceUsdc","in":"query","required":true,"schema":{"type":"string"},"example":"0.003"},{"name":"budgetUsdc","in":"query","required":true,"schema":{"type":"string"},"example":"50"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"x-x402":{"price":{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"totalUsdc":{"type":"string"},"budgetRemainingUsdc":{"type":"string"},"affordableCalls":{"type":"string"},"withinBudget":{"type":"boolean"}},"required":["totalUsdc","budgetRemainingUsdc","affordableCalls","withinBudget"],"additionalProperties":false},"example":{"totalUsdc":"30","budgetRemainingUsdc":"20","affordableCalls":"16666","withinBudget":true}}}},"402":{"description":"x402 V2 payment required: 0.001 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["math-finance","agent-infrastructure","budgeting"],"description":"Calculate fixed-price paid API call costs, remaining USDC budget, maximum affordable calls and budget fit."}},"/api/v1/aws/workload-budget.php":{"get":{"operationId":"v1_aws_workload_budget","summary":"Estimate agent workload model token costs and separate paid tool USDC costs from caller-supplied rates and volumes.","parameters":[{"name":"requests","in":"query","required":true,"schema":{"type":"string"},"example":"10000"},{"name":"inputTokensPerRequest","in":"query","required":true,"schema":{"type":"string"},"example":"1500"},{"name":"outputTokensPerRequest","in":"query","required":true,"schema":{"type":"string"},"example":"300"},{"name":"inputUsdPerMillion","in":"query","required":true,"schema":{"type":"string"},"example":"3"},{"name":"outputUsdPerMillion","in":"query","required":true,"schema":{"type":"string"},"example":"15"},{"name":"paidToolCallsPerRequest","in":"query","required":true,"schema":{"type":"string"},"example":"2"},{"name":"paidToolPriceUsdc","in":"query","required":true,"schema":{"type":"string"},"example":"0.003"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"inputCostUsd":{"type":"string"},"outputCostUsd":{"type":"string"},"toolCostUsdc":{"type":"string"},"modelCostUsd":{"type":"string"}},"required":["inputCostUsd","outputCostUsd","toolCostUsdc","modelCostUsd"],"additionalProperties":false},"example":{"inputCostUsd":"45","outputCostUsd":"45","toolCostUsdc":"60","modelCostUsd":"90"}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["math-finance","agent-infrastructure","budgeting"],"description":"Estimate agent workload model token costs and separate paid tool USDC costs from caller-supplied rates and volumes."}},"/api/v1/evm/network-status.php":{"get":{"operationId":"v1_evm_network_status","summary":"Base finalized head, block age, chain ID and gas usage.","parameters":[],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"gasUsed":{"type":"string"},"gasLimit":{"type":"string"},"baseFeeWei":{"type":"string"},"transactions":{"type":"string"},"chainId":{"type":"string"},"headAgeSeconds":{"type":"string"}},"required":["gasUsed","gasLimit","baseFeeWei","transactions","chainId","headAgeSeconds"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"gasUsed":"21000","gasLimit":"30000000","baseFeeWei":"1000000000","transactions":"1","chainId":"8453","headAgeSeconds":"60"}}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"Base finalized head, block age, chain ID and gas usage."}},"/api/v1/evm/block-summary.php":{"get":{"operationId":"v1_evm_block_summary","summary":"Base block summary with gas, timestamp, base fee and transaction count.","parameters":[{"name":"block","in":"query","required":true,"schema":{"type":"string"},"example":"finalized"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"x-x402":{"price":{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"gasUsed":{"type":"string"},"gasLimit":{"type":"string"},"baseFeeWei":{"type":"string"},"transactions":{"type":"string"}},"required":["gasUsed","gasLimit","baseFeeWei","transactions"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"gasUsed":"21000","gasLimit":"30000000","baseFeeWei":"1000000000","transactions":"1"}}}}},"402":{"description":"x402 V2 payment required: 0.002 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"Base block summary with gas, timestamp, base fee and transaction count."}},"/api/v1/evm/treasury-state.php":{"get":{"operationId":"v1_evm_treasury_state","summary":"Base wallet native ETH, native USDC, WETH balances and nonce at one finalized block.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"ethWei":{"type":"string"},"usdcRaw":{"type":"string"},"wethRaw":{"type":"string"},"nonce":{"type":"string"}},"required":["wallet","ethWei","usdcRaw","wethRaw","nonce"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"wallet":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","ethWei":"1000000000000000000","usdcRaw":"1000000","wethRaw":"1000000000000000000","nonce":"2"}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"Base wallet native ETH, native USDC, WETH balances and nonce at one finalized block."}},"/api/v1/evm/token-balances.php":{"get":{"operationId":"v1_evm_token_balances","summary":"Batch ERC-20 wallet balances and decimals at a common finalized block, up to eight tokens.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"},{"name":"tokens","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,0x4200000000000000000000000000000000000006"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.006000"}},"x-x402":{"price":{"amount":"6000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"balances":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"raw":{"type":"string"},"decimals":{"type":"string"}},"required":["token","raw","decimals"],"additionalProperties":false}}},"required":["wallet","balances"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"wallet":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","balances":[{"token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","raw":"1000000","decimals":"6"},{"token":"0x4200000000000000000000000000000000000006","raw":"1000000000000000000","decimals":"18"}]}}}}},"402":{"description":"x402 V2 payment required: 0.006 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"Batch ERC-20 wallet balances and decimals at a common finalized block, up to eight tokens."}},"/api/v1/evm/allowance-matrix.php":{"get":{"operationId":"v1_evm_allowance_matrix","summary":"Read ERC-20 allowance exposure for up to eight spenders; includes unlimited approval flags.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"},{"name":"token","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"},{"name":"spenders","in":"query","required":true,"schema":{"type":"string"},"example":"0x8909dc15e40173ff4699343b6eb8132c65e18ec6,0x33128a8fc17869897dce68ed026d694621f6fdfd"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.008000"}},"x-x402":{"price":{"amount":"8000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"token":{"type":"string"},"allowances":{"type":"array","items":{"type":"object","properties":{"spender":{"type":"string"},"allowanceRaw":{"type":"string"},"unlimited":{"type":"boolean"}},"required":["spender","allowanceRaw","unlimited"],"additionalProperties":false}}},"required":["wallet","token","allowances"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"wallet":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","allowances":[{"spender":"0x8909dc15e40173ff4699343b6eb8132c65e18ec6","allowanceRaw":"115792089237316195423570985008687907853269984665640564039457584007913129639935","unlimited":true},{"spender":"0x33128a8fc17869897dce68ed026d694621f6fdfd","allowanceRaw":"115792089237316195423570985008687907853269984665640564039457584007913129639935","unlimited":true}]}}}}},"402":{"description":"x402 V2 payment required: 0.008 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","evm"],"description":"Read ERC-20 allowance exposure for up to eight spenders; includes unlimited approval flags."}},"/api/v1/evm/token-supply.php":{"get":{"operationId":"v1_evm_token_supply","summary":"ERC-20 total supply and decimals at a finalized Base block.","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003000"}},"x-x402":{"price":{"amount":"3000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"token":{"type":"string"},"supplyRaw":{"type":"string"},"decimals":{"type":"string"}},"required":["token","supplyRaw","decimals"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","supplyRaw":"1000000000000","decimals":"6"}}}}},"402":{"description":"x402 V2 payment required: 0.003 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"ERC-20 total supply and decimals at a finalized Base block."}},"/api/v1/evm/contract-fingerprint.php":{"get":{"operationId":"v1_evm_contract_fingerprint","summary":"Contract bytecode size and Keccak fingerprint, with EIP-1967 implementation and admin slot values.","parameters":[{"name":"contract","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"contract":{"type":"string"},"codeBytes":{"type":"string"},"codeKeccak":{"type":"string"},"implementationSlot":{"type":"string"},"adminSlot":{"type":"string"}},"required":["contract","codeBytes","codeKeccak","implementationSlot","adminSlot"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"contract":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","codeBytes":"2","codeKeccak":"0x07ad118d6cc8642c86c03827f276d8b791a65e5c99a3845faf186be720a1455d","implementationSlot":"0x0000000000000000000000000000000000000000000000000000000000000000","adminSlot":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["security","crypto","evm"],"description":"Contract bytecode size and Keccak fingerprint, with EIP-1967 implementation and admin slot values."}},"/api/v1/evm/contract-read.php":{"get":{"operationId":"v1_evm_contract_read","summary":"Bounded read-only EVM contract call on Base at a finalized block.","parameters":[{"name":"contract","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"},{"name":"calldata","in":"query","required":true,"schema":{"type":"string"},"example":"0x18160ddd"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003000"}},"x-x402":{"price":{"amount":"3000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"contract":{"type":"string"},"resultHex":{"type":"string"}},"required":["contract","resultHex"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"contract":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","resultHex":"0x000000000000000000000000000000000000000000000000000000e8d4a51000"}}}}},"402":{"description":"x402 V2 payment required: 0.003 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"Bounded read-only EVM contract call on Base at a finalized block."}},"/api/v1/evm/state-batch-4.php":{"get":{"operationId":"v1_evm_state_batch_4","summary":"Up to four Base account balance, nonce, token balance or contract-read operations at a common block.","parameters":[{"name":"ops","in":"query","required":true,"schema":{"type":"string"},"example":"balance:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,nonce:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"operations":{"type":"array","items":{"type":"object","properties":{"operation":{"type":"string"},"target":{"type":"string"},"argument":{"type":"string"},"result":{"type":"string"}},"required":["operation","target","argument","result"],"additionalProperties":false}}},"required":["operations"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"base","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"operations":[{"operation":"balance","target":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","argument":"","result":"1000000000000000000"},{"operation":"nonce","target":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","argument":"","result":"2"}]}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","evm"],"description":"Up to four Base account balance, nonce, token balance or contract-read operations at a common block."}},"/api/v1/market/reference-prices.php":{"get":{"operationId":"v1_market_reference_prices","summary":"ETH, BTC and LINK USD reference prices from Ethereum Chainlink feeds with timestamps and age.","parameters":[],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"prices":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"usd":{"type":"string"},"updatedAt":{"type":"string"},"ageSeconds":{"type":"string"},"round":{"type":"string"},"feed":{"type":"string"}},"required":["symbol","usd","updatedAt","ageSeconds","round","feed"],"additionalProperties":false}}},"required":["prices"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"ethereum","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"prices":[{"symbol":"ETH","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419"},{"symbol":"BTC","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0xf4030086522a5beea4988f8ca5b36dbc97bee88c"},{"symbol":"LINK","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0x2c1d072e956affc0d435cb7ac38ef18d24d9127c"}]}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["financial-data","crypto","data"],"description":"ETH, BTC and LINK USD reference prices from Ethereum Chainlink feeds with timestamps and age."}},"/api/v1/market/stablecoin-peg.php":{"get":{"operationId":"v1_market_stablecoin_peg","summary":"USDC, USDT and DAI USD oracle prices and deviation from one dollar, with source age.","parameters":[],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"prices":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"usd":{"type":"string"},"updatedAt":{"type":"string"},"ageSeconds":{"type":"string"},"round":{"type":"string"},"feed":{"type":"string"},"deviationBps":{"type":"string"}},"required":["symbol","usd","updatedAt","ageSeconds","round","feed","deviationBps"],"additionalProperties":false}}},"required":["prices"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"ethereum","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"prices":[{"symbol":"USDC","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0x8fffffd4afb6115b954bd326cbe7b4ba576818f6","deviationBps":"0"},{"symbol":"USDT","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0x3e7d1eab13ad0104d2750b8863b489d65364e32d","deviationBps":"0"},{"symbol":"DAI","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0xaed0c38402a5d19df6e4c03f4e2dced6e29c1ee9","deviationBps":"0"}]}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["financial-data","crypto","data"],"description":"USDC, USDT and DAI USD oracle prices and deviation from one dollar, with source age."}},"/api/v1/market/oracle-price-change.php":{"get":{"operationId":"v1_market_oracle_price_change","summary":"Current and prior Chainlink USD observation with change in basis points and both timestamps.","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string"},"example":"ETH"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"symbol":{"type":"string"},"usd":{"type":"string"},"updatedAt":{"type":"string"},"ageSeconds":{"type":"string"},"round":{"type":"string"},"feed":{"type":"string"},"previousUsd":{"type":"string"},"previousUpdatedAt":{"type":"string"},"changeBps":{"type":"string"}},"required":["symbol","usd","updatedAt","ageSeconds","round","feed","previousUsd","previousUpdatedAt","changeBps"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"ethereum","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"symbol":"ETH","usd":"1","updatedAt":"1699999940","ageSeconds":"60","round":"12","feed":"0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419","previousUsd":"0.99","previousUpdatedAt":"1699999880","changeBps":"101.01010101010101010101010101010101010101010101010101010101010101010101010101"}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["financial-data","crypto","data"],"description":"Current and prior Chainlink USD observation with change in basis points and both timestamps."}},"/api/v1/market/treasury-valuation.php":{"get":{"operationId":"v1_market_treasury_valuation","summary":"Base ETH, WETH and USDC wallet balances valued using Ethereum USD oracle observations.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"}},"x-x402":{"price":{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"block":{"type":"string"},"blockHash":{"type":"string"},"blockTimestamp":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"baseBlock":{"type":"string"},"ethWei":{"type":"string"},"wethRaw":{"type":"string"},"usdcRaw":{"type":"string"},"ethUsd":{"type":"string"},"ethPriceUpdatedAt":{"type":"string"},"usdcUsd":{"type":"string"},"usdcPriceUpdatedAt":{"type":"string"},"totalUsd":{"type":"string"}},"required":["wallet","baseBlock","ethWei","wethRaw","usdcRaw","ethUsd","ethPriceUpdatedAt","usdcUsd","usdcPriceUpdatedAt","totalUsd"],"additionalProperties":false}},"required":["chain","block","blockHash","blockTimestamp","data"],"additionalProperties":false},"example":{"chain":"ethereum","block":"4660","blockHash":"0x1212121212121212121212121212121212121212121212121212121212121212","blockTimestamp":"1700000000","data":{"wallet":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","baseBlock":"4660","ethWei":"1000000000000000000","wethRaw":"1000000000000000000","usdcRaw":"1000000","ethUsd":"1","ethPriceUpdatedAt":"1699999940","usdcUsd":"1","usdcPriceUpdatedAt":"1699999940","totalUsd":"3"}}}}},"402":{"description":"x402 V2 payment required: 0.01 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["financial-data","crypto","data"],"description":"Base ETH, WETH and USDC wallet balances valued using Ethereum USD oracle observations."}},"/api/v1/solana/treasury-state.php":{"get":{"operationId":"v1_solana_treasury_state","summary":"Finalized native SOL and native USDC holdings for a Solana wallet, with individual RPC context slots.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"So11111111111111111111111111111111111111112"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"x-x402":{"price":{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"solLamports":{"type":"string"},"usdcRaw":{"type":"string"},"solSlot":{"type":"string"},"usdcSlot":{"type":"string"}},"required":["wallet","solLamports","usdcRaw","solSlot","usdcSlot"],"additionalProperties":false}},"required":["chain","data"],"additionalProperties":false},"example":{"chain":"solana","data":{"wallet":"So11111111111111111111111111111111111111112","solLamports":"1000000000","usdcRaw":"1000000","solSlot":"123456","usdcSlot":"123456"}}}}},"402":{"description":"x402 V2 payment required: 0.005 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","solana"],"description":"Finalized native SOL and native USDC holdings for a Solana wallet, with individual RPC context slots."}},"/api/v1/solana/token-portfolio.php":{"get":{"operationId":"v1_solana_token_portfolio","summary":"Finalized SPL and Token-2022 account balances for a Solana wallet, up to 100 accounts.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"So11111111111111111111111111111111111111112"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.010000"}},"x-x402":{"price":{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"splSlot":{"type":"string"},"token2022Slot":{"type":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"mint":{"type":"string"},"owner":{"type":"string"},"amountRaw":{"type":"string"},"decimals":{"type":"string"},"state":{"type":"string"}},"required":["account","mint","owner","amountRaw","decimals","state"],"additionalProperties":false}}},"required":["wallet","splSlot","token2022Slot","accounts"],"additionalProperties":false}},"required":["chain","data"],"additionalProperties":false},"example":{"chain":"solana","data":{"wallet":"So11111111111111111111111111111111111111112","splSlot":"123456","token2022Slot":"123456","accounts":[{"account":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","owner":"So11111111111111111111111111111111111111112","amountRaw":"1000000","decimals":"6","state":"initialized"}]}}}}},"402":{"description":"x402 V2 payment required: 0.01 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","solana"],"description":"Finalized SPL and Token-2022 account balances for a Solana wallet, up to 100 accounts."}},"/api/v1/solana/wallet-activity.php":{"get":{"operationId":"v1_solana_wallet_activity","summary":"Recent finalized Solana signatures, slot, time and transaction error status for an address.","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string"},"example":"So11111111111111111111111111111111111111112"},{"name":"limit","in":"query","required":true,"schema":{"type":"string"},"example":"10"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.008000"}},"x-x402":{"price":{"amount":"8000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"},"payTo":"0x505C88E6Dfa6e54b8851939dBEb5303c2080f816","scheme":"exact"},"responses":{"200":{"description":"Paid result (PAYMENT-RESPONSE header carries the settlement)","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string"},"data":{"type":"object","properties":{"wallet":{"type":"string"},"activity":{"type":"array","items":{"type":"object","properties":{"signature":{"type":"string"},"slot":{"type":"string"},"blockTime":{"type":"string"},"success":{"type":"boolean"}},"required":["signature","slot","blockTime","success"],"additionalProperties":false}}},"required":["wallet","activity"],"additionalProperties":false}},"required":["chain","data"],"additionalProperties":false},"example":{"chain":"solana","data":{"wallet":"So11111111111111111111111111111111111111112","activity":[{"signature":"1111111111111111111111111111111111111111111111111111111111111111","slot":"123456","blockTime":"1700000000","success":true}]}}}}},"402":{"description":"x402 V2 payment required: 0.008 USDC on Base (PAYMENT-REQUIRED header)"},"400":{"description":"Invalid input; payment not used"},"409":{"description":"Payment already used (replay)"},"503":{"description":"Upstream unavailable; payment not used"}},"tags":["crypto","onchain-data","solana"],"description":"Recent finalized Solana signatures, slot, time and transaction error status for an address."}}}}
