← Back to directory

Instant $0.01 USDC pre-trade tax check before executing any swap or sell: comput...

https://api.taxrail.online/api/v1/x402/pre-trade-check

Overview

Instant $0.01 USDC pre-trade tax check before executing any swap or sell: computes FIFO vs HIFO savings, warns on imminent Short-Term -> Long-Term tax cliffs, compares Aave v3 borrow-vs-sell, and returns an unlockable SpecID/calldata planId.

Protocol x402
Price $0.01
Payment Asset USD Coin
Payment Network Base
Category crypto/defi
Provider taxrail
Source bazaar
Indexed 2026-12-01 22:29:52

Health

Status healthy
Latency (p50) 188ms
Uptime (30d) 100.0%
Reliability Score 97/100
Last Checked 2026-12-06 00:01:35
Last Healthy 2026-12-06 00:01:35
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "chain": "base", "jurisdiction": "US", "sellAmount": "1", "sellAsset": "ETH", "walletAddress": "0x849151d7D0bF1F34b70d5caD5149D28CC2308bf1" }, "type": "http" }

Output Schema

{ "example": { "baselineTaxUsd": 680, "chain": "base", "longTermCliffWarning": null, "optimizedTaxUsd": 140, "planId": "plan_pretrade_example", "recommendation": "SELL_OPTIMIZED_HIFO", "sellAmount": 1, "sellAsset": "ETH", "status": "PRE_TRADE_OPTIMIZED", "taxSavedUsd": 540, "walletAddress": "0x849151d7D0bF1F34b70d5caD5149D28CC2308bf1" }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-06 00:01:35 healthy 402 143ms
2026-12-05 23:01:32 healthy 402 1958ms
2026-12-05 22:02:52 healthy 402 163ms
2026-12-05 19:59:22 healthy 402 210ms
2026-12-05 18:04:00 healthy 402 188ms
2026-12-05 15:04:52 healthy 402 372ms
2026-12-05 13:03:12 healthy 402 2582ms
2026-12-05 10:02:59 healthy 402 168ms
2026-12-05 07:04:29 healthy 402 245ms
2026-12-05 06:04:31 healthy 402 128ms
2026-12-05 04:15:48 healthy 402 136ms
2026-12-05 02:57:20 healthy 402 134ms