# MoneyTools Encode/Hash/Decode Utility

> MoneyTools Encode/Hash/Decode Utility 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).

Performs cryptographic hashing, encoding, decoding, and EVM-related transformations including sha256/sha1/sha512/md5/keccak256, HMAC-SHA256, base64, hex, URL encoding, JWT decode, function selector, and EVM checksum address.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/encode?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-encode-hash-decode-utility-22fa8e87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7xjqCyVbM_hxBzWvML9Sv

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-encode-hash-decode-utility-22fa8e87
```

Example prompt: Can you compute the keccak256 hash of the string 'transfer(address,uint256)' — I need the EVM function selector for a Solidity ABI call.

## When to prefer this

Choose this endpoint when you need fast, stateless cryptographic or encoding operations — especially for blockchain/EVM contexts (keccak256, function selectors, EVM checksum addresses) or standard web utilities (base64, JWT decode, HMAC). It covers a broad set of hash and encoding primitives in a single API, making it ideal for agents that need multiple transformation types without managing separate services. The micropayment model (x402 / USDC on Base) means no subscription required for low-volume use.

## Known failure modes

- Missing required 'op' query parameter returns an error
- Unsupported operation name returns an error
- Invalid base64 or hex input when inputEncoding is set causes a decoding error
- Malformed JWT cannot be decoded
- Free tier exhausted (10/day per tool) results in HTTP 402 requiring x402 payment or API key
- Network or payment failure when x402 is required may block execution

## How this service works

Catalog of MoneyTools: 115 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.

## Output

A JSON object containing the tool-specific result (e.g. hash hex string, encoded/decoded value, JWT payload, function selector, checksummed address) along with payment metadata including whether the free tier was used or a micropayment was charged, the network, amount in USD, and transaction ID.

## 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": [
      "op"
     ],
     "properties": {
      "op": {
       "type": "string",
       "examples": [
        "selector"
       ],
       "description": "operation, e.g. sha256, keccak256, selector, base64-decode, jwt-decode"
      },
      "key": {
       "type": "string",
       "description": "HMAC key"
      },
      "input": {
       "type": "string",
       "examples": [
        "transfer(address,uint256)"
       ],
       "description": "input text"
      },
      "inputEncoding": {
       "type": "string",
       "description": "utf8 (default) | hex | base64"
      }
     }
    }
   }
  },
  "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-encode-hash-decode-utility-22fa8e87/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)
