Function parsePrincipalString

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

    Example

    "SP13N5TE1FBBGRZD1FCM49QDGN32WAXM2E5F8WT2G.example-contract"
    

    Example

    "SP13N5TE1FBBGRZD1FCM49QDGN32WAXM2E5F8WT2G"
    

    Parameters

    • principalString: string

      String in the format {address}.{contractName}

    Returns StandardPrincipal | ContractPrincipal

Generated using TypeDoc