{"uid":"cap_gdcrdKmeLh-dYQG8g-ScW","slug":"onchain-trading-intelligence-rate-limiter-8260adc0","name":"Onchain & Trading Intelligence Rate Limiter","description":"Rate-limit token bucket: shared self-throttle. Returns allowed + remaining. Send { bucket, token, capacity, refillPerSec, cost? }.","url":"https://x402-services-production.up.railway.app/api/ratelimit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["bucket","capacity","refillPerSec","token"],"properties":{"cost":{"type":"number","description":"Tokens to consume, default 1"},"token":{"type":"string","description":"Your secret token"},"bucket":{"type":"string","description":"Bucket name"},"capacity":{"type":"number","description":"Max tokens"},"refillPerSec":{"type":"number","description":"Tokens added per second"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0DP-JuvygxJ8ytzw7OcMs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Manages token-bucket rate limiting for pay-per-call onchain and trading intelligence API access","exampleAgentPrompt":"Check my rate limit bucket named 'trading-agent-main' with a capacity of 100 tokens and a refill rate of 2 tokens per second, and consume 1 token using my secret token before making an onchain price query.","exampleUseCases":[{"title":"Throttle automated trading agent calls","prompt":"Before my trading bot fetches the next batch of Solana pump.fun token prices, check the bucket called 'solana-sniper' with capacity 50 and refill rate 1 token per second — consume 1 token and tell me if I'm still within limit."},{"title":"Set up rate limiting for DeFi intelligence agent","prompt":"I need to initialize a rate limit bucket called 'defi-perps-agent' with a max capacity of 200 tokens and a refill rate of 5 tokens per second — consume 1 call now using my secret token."},{"title":"Multi-agent quota enforcement","prompt":"My three onchain research agents are sharing a bucket called 'shared-multichain-pool' with capacity 300 and refill of 10 per second — consume 3 tokens at once to account for all three agents hitting the API simultaneously."}],"resultDescription":"Returns the current state of the token bucket after the consume operation, including whether the call was allowed, remaining token count, and bucket metadata such as capacity and refill rate.","failureModes":["Invalid or missing secret token returns authentication error","Bucket capacity exceeded returns rate limit rejection with retry-after info","Missing required fields (token, bucket, capacity, refillPerSec) returns validation error","Invalid numeric values for capacity or refillPerSec return schema error","Non-existent bucket may be auto-created or return not-found depending on implementation"],"whenToPreferThis":"Use this endpoint when you need programmatic, stateful rate limiting for agents making repeated calls to the onchain and trading intelligence suite — especially useful when coordinating multiple concurrent agents sharing a call quota, or when enforcing per-agent limits before expensive pay-per-call operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:38:09.089Z","isFirstParty":false,"canonicalSlug":"onchain-trading-intelligence-rate-limiter-8260adc0"}