Function parsePrincipalString

  • Parses a principal string for either a standard principal or contract principal.

    Parameters

    • principalString: string

      String in the format {address}.{contractName}

    Returns StandardPrincipal | ContractPrincipal

    Example

    "SP13N5TE1FBBGRZD1FCM49QDGN32WAXM2E5F8WT2G.example-contract"
    

    Example

    "SP13N5TE1FBBGRZD1FCM49QDGN32WAXM2E5F8WT2G"
    

Generated using TypeDoc