Skip to content

isValidCosmosAddress()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / isValidCosmosAddress

isValidCosmosAddress(address, expectedChain?): boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:6181

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