• Cl.principal — Creates a Clarity principal type, represented as a JS object

    Parameters

    • address: string

      A Stacks address (optionally with a contract name in the string)

    Returns StandardPrincipalCV | ContractPrincipalCV

    Example

    import { Cl } from '@stacks/transactions';
    Cl.principal('ST000000000000000000002AMW42H');
    Cl.principal('ST000000000000000000002AMW42H.asset');

    See

    serialize, deserialize

Generated using TypeDoc