flutter_web3_provider 0.0.2 copy "flutter_web3_provider: ^0.0.2" to clipboard
flutter_web3_provider: ^0.0.2 copied to clipboard

outdated

Flutter web web3 provider.

flutter_web3_provider #

Flutter wrapper for using web3 providers, ie: accessing window.ethereum.

Getting Started #

Add import import 'package:flutter_web3_provider/ethereum.dart';

Then you can access it just be using the ethereum variable.

Using ethers.js #

Add ethers.js to web/index.html.

eg:

<script src="https://cdn.ethers.io/lib/ethers-5.0.umd.min.js" type="application/javascript"></script>

Then create an ethers Web3Provider:

Web3Provider web3 = Web3Provider(ethereum);

Then use it like you would in javascript.

20
likes
0
pub points
61%
popularity

Publisher

unverified uploader

Flutter web web3 provider.

Homepage

License

unknown (license)

Dependencies

flutter, js

More

Packages that depend on flutter_web3_provider