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

    Alias for contractPrincipalCV

    Parameters

    • addressString: string
    • contractName: string

    Returns ContractPrincipalCV

    Example

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

    See

    serialize, deserialize

Generated using TypeDoc