DartOkxWallet extension
This extension provides Dart methods around the raw OkxWallet JavaScript object.
Extensions include request to turn request promises into Dart futures or
on to turn JavaScript event handlers into convenient Dart streams.
To use the raw ethereum client in a high-level Web3Client
, use
asRpcService.
- on
Properties
- accountsChanged → Stream
-
Available on OkxWallet, provided by the DartOkxWallet extension
A broadcast stream emitting values when the selected account is changed by the user.no setter - chainChanged → Stream
-
Available on OkxWallet, provided by the DartOkxWallet extension
A broadcast stream emitting values when the selected chain is changed by the user.no setter - connect → Stream
-
Available on OkxWallet, provided by the DartOkxWallet extension
A broadcast stream emitting values when the selected account is connected by the user.no setter - disconnect → Stream
-
Available on OkxWallet, provided by the DartOkxWallet extension
A broadcast stream emitting values when the selected account is disconnected by the user.no setter - message → Stream
-
Available on OkxWallet, provided by the DartOkxWallet extension
A broadcast stream emitting values when a message is received to the connected account.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 aWeb3Client
: -
rawRequest(
String method, {Object? params}) → Future -
Available on OkxWallet, provided by the DartOkxWallet extension
Sends a raw rpc request using the injected Ethereum client. -
requestAccounts(
) → Future< List< 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.