x402 endpoint check before you pay
x402.tbs-digital.com/crypto/x402-check
x402 endpoint check before you pay: is this endpoint payable? Send its https url (GET or POST); one unpaid request, never pays. Returns verdict (payable, malformed, not_x402, unreachable), quote (price USD, network, asset, pay_to, scheme), accepts_count, http_status, latency_ms, checked_at. Fresh at each call. Refused or throttled targets not charged.
GET
https://x402.tbs-digital.com/crypto/x402-checkUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.tbs-digital.com/crypto/x402-check?url=https%3A%2F%2Fx402.tbs-digital.com%2Fweather%2Fcurrent");
console.log(await res.json());Example input
{
"url": "https://x402.tbs-digital.com/weather/current"
}More from TBS Crypto & DeFi APIProvider status
- x402.tbs-digital.com/crypto/bundleCrypto price, market and DeFi data in one call: price_usd per token (btc,eth; up to 50), market cap, 24h volume, supply and 24h change of the first token, top 10 chains by TVL, top 5 yield pools by APY on a chain (default Ethereum, TVL at least $1M, outliers excluded). DefiLlama + Coinpaprika, USD, no API key.0.002
- x402.tbs-digital.com/crypto/marketCrypto market cap, 24h trading volume and market-cap rank for one coin, by ticker (btc, eth, sol) or Coinpaprika id (btc-bitcoin). Returns market_cap_usd, volume_24h_usd, percent_change_24h, circulating, total and max supply, rank, observed_at. Coinpaprika, USD, no API key.0.002
- x402.tbs-digital.com/crypto/payment-statusVerify a Base USDC payment by tx hash: did my x402 payment settle? Send tx or the PAYMENT-RESPONSE receipt, optionally pay_to, payer, amount, sent_at. Returns state (settled, mismatch, reverted: mined; pending may still land), USDC transfers, confirmations, timing (paid_at, age_s), checked_at, from two separate Base nodes. With sent_at, a payment not yet visible gets too_early: true, not charged. 0.002
- x402.tbs-digital.com/crypto/priceCrypto token spot price in USD: Bitcoin (btc), Ethereum (eth), Solana (sol), USDC, USDT, BNB, XRP, ADA, DOGE, POL by ticker, or any DefiLlama coin key (coingecko:ethereum), up to 50 coins per call. Returns coin, symbol, price_usd, confidence, observed_at. DefiLlama price feed, no API key.0.002
- x402.tbs-digital.com/defi/tvlDeFi protocol TVL by chain: total value locked in USD for one protocol by DefiLlama slug (aave, lido), for one chain by name (Ethereum, Base), or the top 20 chains ranked by TVL when both are omitted. Returns tvl_usd with the protocol slug or chain name. DefiLlama, no API key.0.002
- x402.tbs-digital.com/defi/yieldsDeFi yields, best APY pools: liquidity and lending pools sorted by APY, filter by chain, project (aave-v3), token symbol (USDC), stablecoin-only, min_tvl (default $1M), limit up to 50. Each pool: chain, project, symbol, tvl_usd, apy, apy_base, apy_reward, outlier flag. Outliers excluded unless include_outliers=true. DefiLlama.0.002
