RemoteAssociation class

Remote Association

Inheritance

Constructors

RemoteAssociation({required String hostAuthority, int? id})
Creates an Association to construct remote endpoint Uris.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hostAuthority → String
The address of a publicly routable web socket server implementing the reflector protocol.
final
id → int
The reflector's randomly generated unique id.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → AssociationType
The type of association.
finalinherited

Methods

endpointUri(AssociationToken associationToken, {required Map<String, String> queryParameters, Uri? uriPrefix}) → Uri
Creates a new Uri for scheme or uriPrefix, using the provided associationToken and queryParameters.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sessionUri() → Uri
Creates a new Uri that's used to establish a secure web socket connection between a dApp and wallet endpoint.
override
toString() → String
A string representation of this object.
inherited
walletUri(AssociationToken associationToken, {Uri? uriPrefix}) → Uri
Creates a new Uri that's used to connect a dApp endpoint to a wallet endpoint.
override

Operators

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

Constants

maxId → const int
The maximum reflector id (2^32) TODO: The specification says 2^53-1, but this throws an error saying <= 2^32.
minId → const int
The minimum reflector id.