OkxWallet class

Available extensions
Annotations
  • @JS()

Constructors

OkxWallet.new()

Properties

autoRefreshOnNetworkChange bool
getter/setter pair
chainChanged Stream<int>

Available on OkxWallet, provided by the DartOkxWallet extension

A broadcast stream emitting values when the selected chain is changed by the user.
no setter
chainId int
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedAddress String
no setter

Methods

asRpcService() RpcService

Available on OkxWallet, provided by the DartOkxWallet extension

Turns this raw client into an rpc client that can be used to create a Web3Client:
connectedAccounts() Future<List<String>>

Available on OkxWallet, provided by the DartOkxWallet extension

isConnected() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rawRequest(String method, {Object? params}) Future

Available on OkxWallet, provided by the DartOkxWallet extension

Sends a raw rpc request using the injected Ethereum client.
requestAccount() Future<CredentialsWithKnownAddress>

Available on OkxWallet, provided by the DartOkxWallet extension

Asks the user to select an account and give your application access to it.
stream(String eventName) Stream

Available on OkxWallet, provided by the DartOkxWallet extension

Creates a stream of raw ethereum events.
toString() String
A string representation of this object.
inherited

Operators

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