Function: solanaAddress()
function solanaAddress(what?): ZodString;
Defined in: solana-client/src/schema.ts:95
A base58-encoded 32-byte key, as every Solana address is — exported, as the EVM schema's parsers are, for a host declaring an address field of its own.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
what | string | "an address" | what the value is, for the error message: an address, a program id. The alphabet check is the part that earns its keep: 0, O, I and l are excluded from base58 precisely because they are the characters a human miscopies, so a pasted address that contains one is wrong in a way this can name. The length range is what 32 bytes encode to. |
Returns
ZodString