DesktopBrowserProvider class abstract
Desktop Browser Provider
An interface for browser wallet extensions.
Constructors
- DesktopBrowserProvider.new(AppInfo info)
-
Creates a wallet provider.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → AppInfo
-
The wallet application's information.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
{bool? onlyIfTrusted}) → Future< Map< String, dynamic> > - Makes a request to connect the wallet provider.
-
disconnect(
) → Future< Map< String, dynamic> > - Makes a request to disconnect the wallet provider.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
object(
) → JsObject? - Returns the provider's javascript object or null if the provider is not installed.
-
request<
T> (ProviderRequest< T> request) → dynamic -
Makes a JSON RPC
request
to the wallet provider. -
signAllTransactions(
List< String> messages) → Future<Map< String, dynamic> > -
Makes a request to sign all transaction
messages
. -
signAndSendTransaction(
String message, {int? minContextSlot}) → Future< Map< String, dynamic> > -
Makes a request to sign and send a transaction
message
to the network. -
signMessage(
List< int> message, [String encoding = 'utf8']) → Future<Map< String, dynamic> > -
Makes a request to sign a transaction
message
(hex or UTF-8 encoded string as a Uint8Array). -
signTransaction(
String message) → Future< Map< String, dynamic> > -
Makes a request to sign a transaction
message
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited