TonConnectSession class
Represents a TON Connect session. See https://github.com/ton-blockchain/ton-connect/tree/main/spec for full TON Connect protocol documentation
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
- TonConnectSession({required int id, required String dappClientId, required String walletClientId, required int creationDate, required TonConnectManifest manifest, required String nonce, required TonConnectSessionState state})
-
const
Properties
- creationDate → int
-
creationDate Point in time (Unix timestamp) when the session was created
final
- dappClientId → String
-
dappClientId Hex-encoded public X25519 key of the dApp
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
id Unique identifier of the session
final
- manifest → TonConnectManifest
-
manifest Manifest of the dApp
final
- nonce → String
-
nonce Nonce used for the session
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → TonConnectSessionState
-
state Session state
final
- walletClientId → String
-
walletClientId Hex-encoded public X25519 key of the current user's
application; may be empty if none
final
Methods
-
copyWith(
{int? id, String? dappClientId, String? walletClientId, int? creationDate, TonConnectManifest? manifest, String? nonce, TonConnectSessionState? state}) → TonConnectSession -
Available on TonConnectSession, provided by the TonConnectSessionExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → TonConnectSession?
Constants
- constructor → const String