DartBinanceChain extension
This extension provides Dart methods around the raw BinanceChain
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.
Properties
-
chainChanged
→ Stream<
int> -
Available on BinanceChainWallet, provided by the DartBinanceChain extension
A broadcast stream emitting values when the selected chain is changed by the user.no setter
Methods
-
asRpcService(
) → RpcService -
Available on BinanceChainWallet, provided by the DartBinanceChain extension
Turns this raw client into an rpc client that can be used to create aWeb3Client
: -
connectedAccounts(
) → Future< List< String> > -
Available on BinanceChainWallet, provided by the DartBinanceChain extension
-
rawRequest(
String method, {Object? params}) → Future -
Available on BinanceChainWallet, provided by the DartBinanceChain extension
Sends a raw rpc request using the injected Ethereum client. -
requestAccount(
) → Future< CredentialsWithKnownAddress> -
Available on BinanceChainWallet, provided by the DartBinanceChain extension
Asks the user to select an account and give your application access to it. -
stream(
String eventName) → Stream -
Available on BinanceChainWallet, provided by the DartBinanceChain extension
Creates a stream of raw ethereum events.