80trust / 100
Market Halving
by x402.swaphunt.dev in Markets & finance
x402 APIPassing, checked 24 min ago
BTC or LTC halving countdown: blocks remaining and the estimated date of the next halving. Use for cycle-timing narratives and supply-shock context. Estimate (block-time based), not an exact timestamp.
GET https://x402.swaphunt.dev/v1/market/halving
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 115 ms typical, 202 ms slowest 5%
- Last check
- 24 min ago
- Next check
- in 8 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/market/halving?coin=BTC"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.swaphunt.dev%2Fv1%2Fmarket%2Fhalving
const res = await pay("https://x402.swaphunt.dev/v1/market/halving?coin=BTC");
console.log(await res.json());Example input
{
"coin": "BTC"
}Example output
{
"blocks_remaining": 78400,
"coin": "BTC",
"current_block": 971600,
"days_until_halving": 540,
"estimated_date": "2028-04-20"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 24 min ago | Passed | 402 | 63 ms | $0.001 |
| 3 h ago | Passed | 402 | 115 ms | $0.001 |
| 7 h ago | Passed | 402 | 305 ms | $0.001 |
| 12 h ago | Passed | 402 | 202 ms | $0.001 |