# Bitwise AND — Arbitrary-Precision Integer Operation

> Bitwise AND — Arbitrary-Precision Integer Operation is a paid API for AI agents from bitwise.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Computes the bitwise AND of two or more non-negative integers (as decimal strings) with arbitrary precision, returning the result in decimal, hexadecimal, and binary formats.

## Facts

- Endpoint: POST https://bitwise.openverbs.com/v1/and
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitwise-and-arbitrary-precision-integer-operation-ea739260
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mLRKW1OmBzY1ozRPIxheJ

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 bitwise-and-arbitrary-precision-integer-operation-ea739260 -d '<json body>'
```

Example prompt: Compute the bitwise AND of these three numbers: 255, 170, and 204 — give me the result in decimal, hex, and binary.

## When to prefer this

Choose this endpoint when you need arbitrary-precision bitwise AND across two or more very large integers that exceed native 64-bit integer limits, or when you need the result in multiple formats (decimal, hex, binary) simultaneously. It is purpose-built for AND specifically, unlike generic big-number libraries. Prefer it when precision and multi-format output matter over implementing the operation locally.

## Known failure modes

- Fewer than 2 values provided — validation error
- More than 256 values provided — validation error
- Non-numeric or negative strings in values array — pattern validation failure
- Malformed JSON body — 400 bad request
- Payment not included or insufficient — 402 Payment Required

## How this service works

Bitwise AND across two or more non-negative integers (given as decimal strings, evaluated as arbitrary-precision BigInt). Returns the result in decimal, hex and binary.

## Output

Returns an object containing the AND result expressed in three formats: decimal (string), hexadecimal (string), and binary (string). Accepts between 2 and 256 arbitrary-precision non-negative integers as decimal string inputs.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "values": {
       "type": "array",
       "minItems": 2,
       "maxItems": 256,
       "items": {
        "type": "string",
        "pattern": "^\\d+$"
       },
       "description": "Two or more non-negative integers as decimal strings."
      }
     },
     "required": [
      "values"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitwise-and-arbitrary-precision-integer-operation-ea739260/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bitwise.openverbs.com](https://www.zero.xyz/host/bitwise.openverbs.com/llms.txt)
