flutter_web3 2.0.0-pre.3 flutter_web3: ^2.0.0-pre.3 copied to clipboard
Web3 Ethereum, Etherjs and Wallet Connect wrapper for Flutter Web. Made especially for developing Dapp.
flutter_web3
This is a fork of flutter_web3_provider. Be sure to check out the original package.
Introduction #
flutter_web3 v2 is full Dart class and function wrapper for
- Ethereum object
- Ether.js package
- This can be used to sign transaction and interact with smart contract, also query Blockchain data utils and a lot of helper function for developing dapps.
- Wallet Connect Provider package
- This enable QR code modal interaction and enable wallet that utilize Wallet Connect to use provider.
This package is made especially for developing Dapp on cross(multiple) chain in Flutter
This is for Flutter web only!
Using V2 Package #
Pre-release is available at pub.dev.
Or add ref pointer to Git v2 branch in pubspec.yaml file of your Flutter project.
flutter_web3:
git:
url: git://github.com/y-pakorn/flutter_web3.git
ref: v2
V2 Changes #
Version 2.0 of this package will introduce full dart wrapper instead of js interop class.
Track V2 progress by navigating to this Github issue
Breaking Changes #
Ethereum
class now include static method to access default Ethereum provider.isEthereumSupported
replaced withEthereum.isSupported
.Ethereum.provider
is the same asethereum
,ethereum
getter is still available.Ethereum.ethereum
to access exposed Ethereum provider i.e. MetaMask with no undefined check.Ethereum.binanceChain
to access exposed Binance Chain Wallet provider with no undefined check.Ethereum.web3
to access old web3 provider object, deprecated in many provder.
WalletConnectProvider
class instantiation changed to factory method.WalletConnectProvider.fromRpc
to instantiate using rpc map.WalletConnectProvider.fromInfura
to instantiate using Infura id.- Static
WalletConnectProvider.binance
to instantiate using Binance mainnet rpc.
Web3Provider
class various constructor has been added.Web3Provider
unnamed constructor remain the same.Web3Provider.fromEthereum
instantiate usingEthereum
instance.Web3Provider.fromWalletConnect
instantiate usingWalletConnectProvider
instance.