Function standardPrincipalCV

  • Converts stx address in to StandardPrincipalCV clarity type

    Returns

    returns instance of type StandardPrincipalCV

    Example

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

    const addr = standardPrincipalCV('SP2JXKMSH007NPYAQHKJPQMAQYAD90NQGTVJVQ02B');
    // { type: 5, address: { type: 0, version: 22, hash160: 'a5d9d331000f5b79578ce56bd157f29a9056f0d6' } }

    See

    clarity test cases for more examples

    Parameters

    • addressString: string

    Returns StandardPrincipalCV

Generated using TypeDoc