# Agent402 Solana Address Validator

> Agent402 Solana Address Validator is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates whether a string is a well-formed Solana address by checking base58 decoding and 32-byte length — does not verify on-chain account existence.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/sol-address
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-solana-address-validator-a9467e82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Wp3bfOf-vD_OWvf0p1q3

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 agent402-solana-address-validator-a9467e82 -d '<json body>'
```

Example prompt: Before I send funds, can you check whether '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU' is a properly formatted Solana address?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001) structural check that a Solana address is correctly formatted before using it in a transaction, API call, or display — especially when on-chain RPC calls would be too slow, expensive, or unnecessary. Prefer this over RPC account lookups when you only need format validation, not balance or existence confirmation.

## Known failure modes

- Address string fails base58 decoding — returns valid: false
- Address decodes to wrong byte length (not 32 bytes) — returns valid: false
- Missing 'address' field in request body — likely 400 error
- Ethereum or other chain addresses passed as input will return valid: false

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

Returns a JSON object with 'chain' (set to 'sol'), 'valid' (boolean indicating whether the address passes base58 decoding and 32-byte length check), and 'byte_length' (32 if valid). Does not confirm the account exists on-chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "Solana address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "sol",
  "valid": true,
  "byte_length": 32
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-solana-address-validator-a9467e82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
