{"uid":"cap_KWb0gkLeiGuM9VQUwOFnA","slug":"beggar-bot-agent-utilities-v1-util-base-mainnet-726de332","name":"Beggar Bot Agent Utilities - /v1/util (Base Mainnet)","description":"Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.","url":"https://beggar-bot-demand.beggarbot.workers.dev/v1/util?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["op"],"properties":{"a":{"type":"string"},"b":{"type":"string"},"op":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"},"time":{"type":"string"},"count":{"type":"string"},"flags":{"type":"string"},"input":{"type":"string"},"value":{"type":"string"},"pattern":{"type":"string"},"encoding":{"type":"string"},"url_safe":{"type":"string"},"algorithm":{"type":"string"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bcuMuy3ZTQ1RtL76kgqcs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs general-purpose agent utility operations (e.g. encoding, hashing, string manipulation, math) on Base mainnet via x402 micropayment, costing $0.02 USDC per call.","exampleAgentPrompt":"Can you use Beggar Bot's util endpoint to compute the SHA-256 hash of the string 'hello world'? The operation is 'hash', algorithm is 'sha256', and the input is 'hello world'.","exampleUseCases":[{"title":"Base64 encode a payload","prompt":"I need to base64 encode the string 'agent_secret_token_xyz' — use the Beggar Bot util service with op='encode', encoding='base64', and input='agent_secret_token_xyz'. Make it URL-safe."},{"title":"Hash a transaction reference","prompt":"Can you hash the string '0xDeadBeef42' using SHA-256 via the Beggar Bot utility API? Set op to 'hash', algorithm to 'sha256', and input to '0xDeadBeef42'."},{"title":"String pattern match check","prompt":"Use Beggar Bot's util endpoint to check whether the string 'user@example.com' matches the email pattern '^[\\w.]+@[\\w]+\\.[a-z]{2,}$' — op should be 'match', input is 'user@example.com', and pattern is '^[\\w.]+@[\\w]+\\.[a-z]{2,}$'."}],"resultDescription":"Returns a JSON object containing the result of the requested utility operation — for example, an encoded string, a hash digest, a computed value, or a boolean match result. The exact shape depends on the 'op' parameter used.","failureModes":["Missing required 'op' field returns a 400-level error","Unsupported operation name returns an error indicating unknown op","Payment failure (insufficient USDC balance or x402 rejection) results in 402 Payment Required","Malformed input (e.g. invalid encoding type or algorithm) returns a descriptive error","Network parameter mismatch (e.g. wrong chain) may cause payment verification failure"],"whenToPreferThis":"Choose this endpoint when you need lightweight, stateless utility computations (hashing, encoding, string ops) and are already operating in a Base mainnet x402 micropayment environment. It is ideal for AI agents that need common developer utility functions without spinning up their own infrastructure, and are comfortable paying $0.02 USDC per call on-chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T00:32:56.932Z","isFirstParty":false,"canonicalSlug":"beggar-bot-agent-utilities-v1-util-base-mainnet-726de332"}