# MoneyTools Number Base Converter (BigInt)

> MoneyTools Number Base Converter (BigInt) is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Converts big integers between any base 2–36 (binary, octal, decimal, hex, etc.) with optional two's complement representation for configurable bit widths

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/number-base?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-number-base-converter-bigint-bf7c502d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M4hVaRZ9BT6WUJhu0xwVb

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 moneytools-number-base-converter-bigint-bf7c502d
```

Example prompt: Convert 0xff to binary and also show me the decimal value — use 8-bit two's complement just in case it's negative.

## When to prefer this

Choose this endpoint when you need to convert arbitrarily large integers (BigInt) between any base from 2 to 36, especially when two's complement representation at a specific bit width (8 to 256 bits) is required. It supports standard prefix auto-detection (0x, 0b, 0o), making it ideal for embedded systems, cryptographic, or low-level programming workflows. Prefer it over general-purpose calculators when big integer precision and two's complement semantics matter.

## Known failure modes

- Invalid or unsupported base (outside 2–36) returns an error
- Non-numeric or malformed input string causes a parse error
- Bit width outside supported range (8–256) returns an error
- Free tier exhausted (10/day) with no payment method returns HTTP 402
- Payment failure results in no charge and no result

## How this service works

Number base converter (BigInt): Convert big integers between bases 2-36 (hex/bin/oct/dec, 0x/0b/0o prefixes) with two's complement for 8-256 bits. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing the converted number in the requested target base (and standard bases like binary, octal, decimal, hex), optional two's complement representation for the specified bit width, and a payment info block indicating whether a charge was made, the network, and transaction details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "extra target base"
      },
      "bits": {
       "type": "number",
       "examples": [
        "8"
       ],
       "description": "two's complement width"
      },
      "from": {
       "type": "string",
       "description": "base 2-36 (auto from prefix)"
      },
      "value": {
       "type": "string",
       "examples": [
        "0xff"
       ],
       "description": "number"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-number-base-converter-bigint-bf7c502d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
