LinkSession

Type describing a anchorLink session that can create a eosjs compatible signature provider and transact for a specific auth.

Summary

MembersDescriptions

public abstract AnchorLink AnchorLink

The underlying anchorLink instance used by the session.

public abstract string Identifier

App identifier that owns the session.

public abstract string PublicKey

The public key the session can sign for.

public abstract EosSharp.Core.Api.v1.PermissionLevel Auth

The EOSIO auth (a.k.a. permission level) the session can sign for.

public abstract Dictionary< string, object > Metadata

Arbitrary metadata that will be serialized with the session.

public abstract LinkSignatureProvider MakeSignatureProvider()

Creates a eosjs compatible signature provider that can sign for the session public key.

public abstract Task< TransactResult> Transact( TransactArgsargs, TransactOptions options)

Transact using this session. See [[AnchorLink.transact]].

Returns a JSON-encodable object that can be used recreate the session.

public async Task Remove()

Convenience, remove this session from associated [[AnchorLink]] storage if set. Equivalent to:

public static LinkSession Restore( AnchorLinkanchorLink, SerializedLinkSession data)

Restore a previously serialized session.

Members

public abstract AnchorLink AnchorLink

The underlying anchorLink instance used by the session.

public abstract string Identifier

App identifier that owns the session.

public abstract string PublicKey

The public key the session can sign for.

public abstract EosSharp.Core.Api.v1.PermissionLevel Auth

The EOSIO auth (a.k.a. permission level) the session can sign for.

public abstract Dictionary< string, object > Metadata

Arbitrary metadata that will be serialized with the session.

public abstract LinkSignatureProvider MakeSignatureProvider()

Creates a eosjs compatible signature provider that can sign for the session public key.

public abstract Task< TransactResult> Transact( TransactArgsargs, TransactOptions options)

Transact using this session. See [[AnchorLink.transact]].

public abstract SerializedLinkSession Serialize()

Returns a JSON-encodable object that can be used recreate the session.

public async Task Remove()

Convenience, remove this session from associated [[AnchorLink]] storage if set. Equivalent to:

session.anchorLink.removeSession(session.identifier, session.auth)

public static LinkSession Restore( AnchorLinkanchorLink, SerializedLinkSession data)

Restore a previously serialized session.

Last updated