kernl API
    Preparing search index...

    Function toSession

    • Describe an account as a session the UI can show.

      Parameters

      • account: IAccount

        An applesauce account.

      • Optionalcard: ProfileCard

      Returns Session

      The session; readOnly when the account cannot sign.

      toSession(ReadonlyAccount.fromPubkey(pubkey)).readOnly; // true