is_solana_address

Documentation for eth_defi.solana.is_solana_address function.

is_solana_address(address)

Check a case-sensitive base58 Solana account, including off-curve PDAs.

This validates the address encoding, not whether the account currently exists or belongs to a particular cluster. It performs no network reads.

Parameters

address (str) – Candidate base58 account without surrounding whitespace.

Returns

Whether the text canonically encodes exactly 32 account bytes.

Return type

bool