# Base58Check P2SH Decode

> Base58Check P2SH Decode is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-29).

Decodes a Base58Check-encoded P2SH (Pay-to-Script-Hash) string into its component parts, entirely offline without network or LLM calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base58check-p2sh-decode?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base58check-p2sh-decode-7928b2c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EttMgyOsxfXyx-In871Cl

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 base58check-p2sh-decode-7928b2c4 -d '<json body>'
```

Example prompt: Decode this Base58Check P2SH address for me: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy — I need the raw script hash and version byte out of it.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline Base58Check P2SH decode with no side effects or LLM involvement. Prefer the free sandbox endpoint (POST /v1/sandbox/base58check-p2sh-decode) for testing before paying $0.006 USDC per call on this production endpoint.

## Known failure modes

- Invalid Base58Check string returns a decoding error
- Checksum mismatch causes validation failure
- Input that is not a P2SH address (e.g. P2PKH or bech32) may return an error or incorrect result
- Empty or oversized input rejected by schema validation

## How this service works

Call when an agent needs text decoded with base58check-p2sh. No network and no LLM. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/base58check-p2sh-decode first.

## Output

Returns the decoded components of the Base58Check P2SH string, including the raw script hash bytes and version byte extracted from the encoded address, computed purely locally with no network calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "Jd3uZANDUBu3E"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base58check-p2sh-decode-7928b2c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
