Function isAddressValid

  • Checks if an address is validly formatted. If a chain is not provided, we will try to determine the chain from the address.

    Parameters

    Returns boolean

    Example

    const valid = isAddressValid('cosmos1xv9tklw7a7g3ll4ht2cjm6y22p2w7pk8j3w4h6');
    console.log(valid);