AuthorizeResult class

Authorize Result

Constructors

AuthorizeResult({required List<Account> accounts, required AuthToken authToken, required Uri? walletUriBase})
The result of a successful authorize request containing the accounts authorized by the wallet for use by the dApp. You can cache this and use it later to invoke privileged methods.
const
AuthorizeResult.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

accounts List<Account>
The accounts to which the authToken corresponds.
final
authToken AuthToken
An opaque string representing a unique identifying token issued by the wallet endpoint to the dApp endpoint. The dApp endpoint can use this on future connections to reauthorize access to privileged methods.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
walletUriBase Uri?
The wallet endpoint's specific URI that should be used for subsequent connections where it expects to use this authToken.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this class into a JSON object.
toJsonString() String
Serializes this class into a JSON string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

tryFromJson(Map<String, dynamic>? json) AuthorizeResult?
Creates an instance of this class from the constructor parameters defined in the json object.