• Parse a C32 Stacks address string to an address object.

    Parameters

    • address: string

      The address string to parse.

    Returns AddressRepr

    Example

    import { Address } from '@stacks/transactions';

    const address = Address.parse('SP000000000000000000002Q6VF78');
    // { version: 22, versionChar: 'P', hash160: '0000000000000000000000000000000000000000' }

    const address = Address.parse('ST000000000000000000002AMW42H.pox');
    // { version: 22, versionChar: 'P', hash160: '0000000000000000000000000000000000000000', contractName: 'pox' }

Generated using TypeDoc