# Beggar Bot Agent Utilities - /v1/util (Base Mainnet)

> Beggar Bot Agent Utilities - /v1/util (Base Mainnet) is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-22).

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.

## Facts

- Endpoint: POST https://beggar-bot-demand.beggarbot.workers.dev/v1/util?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-agent-utilities-v1-util-base-mainnet-726de332
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KWb0gkLeiGuM9VQUwOFnA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability beggar-bot-agent-utilities-v1-util-base-mainnet-726de332 -d '<json body>'
```

Example prompt: 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'.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-agent-utilities-v1-util-base-mainnet-726de332/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
