• Stringify an address to the C32 address format.

    Parameters

    • address: AddressRepr

      The address object to stringify.

    Returns string

    Example

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

    const address = Address.stringify({ version: 22, hash160: '0000000000000000000000000000000000000000' });
    console.log(address); // 'SP000000000000000000002Q6VF78'

    const address = Address.stringify({ versionChar: 'P', hash160: '0000000000000000000000000000000000000000' });
    console.log(address); // 'SP000000000000000000002Q6VF78'

Generated using TypeDoc