Skip to content

isValidCosmosAddress()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / isValidCosmosAddress

isValidCosmosAddress(address, expectedChain?): boolean

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3094

Validate a Cosmos bech32 address

Convenience function that creates a CosmosStealthService instance.

string

Address to validate

CosmosChainId

Optional chain to validate prefix against

boolean

true if valid, false otherwise