web3dart 1.2.3
web3dart: ^1.2.3 copied to clipboard

Dart native
Flutter Android iOS Linux macOS Windows

Dart library to connect to Ethereum clients. Send transactions and interact with smart contracts!

Changelog #

1.2.3 #

  • include a 0x for hex data in eth_estimateGas - thanks, @Botary

1.2.2 #

  • Fixed a bug when decoding negative integers (#73)

1.2.0 #

  • Added estimateGas method on Web3Client to estimate the amount of gas that would be used by a transaction.

In 1.2.1, the atBlock parameter on estimateGas was deprecated and will be ignored.

1.1.1, 1.1.1+1 #

  • Fix parsing transaction receipts when the block number is not yet available. Thanks to @chart21 for the fix.
  • Fix a typo that made it impossible to load the coinbase address. Thanks to @modulovalue for the fix.

1.1.0 #

  • Added getTransactionReceipt to get more detailed information about a transaction, including whether it was executed successfully or not.

1.0.0 #

Basically a complete rewrite of the library - countless bug fixes, a more fluent and consistent api and more features:

  • experimental api to perform expensive operations in a background isolate. Set enableBackgroundIsolate to true when creating a Web3Client to try it out.
  • Events! Use addedBlocks, pendingTransactions and events for auto-updating streams.
  • The client now has a dispose() method which should be called to stop the background isolate and terminate all running streams.

This version contains breaking changes! Here is an overview listing some of them.

BeforeUpdated API
Creating credentials via Credentials.fromPrivateKeyHexUse the EthPrivateKey class or, even better, client.credentialsFromPrivateKey
Sending transactions or calling contract functionsThe api has been changed to just a single methods instead of a transaction builder. See the examples for details.
Low-level cryptographic operations like signing, hashing and converting hex <-> byte array <-> integerNot available in the core library. Import package:web3dart/crypto.dart instead

If you run into problems after updating, please create an issue.

0.4.4 #

  • Added getTransactionByHash method - thank you, maxholman!
  • Allow a different N parameter for scrypt when creating new wallets.

0.4.0 #

  • New APIs allowing for a simpler access to wallets, credentials and addresses
  • More examples in the README

0.2.1 #

  • More solidity types, not with encoding.

0.2 #

  • Send transactions and call messages from smart contracts on the Blockchain.

0.1 #

  • Create new Ethereum accounts

0.0.2 #

  • Send and sign transactions

0.0.1 #

  • Initial version, created by Stagehand
pub points



Dart library to connect to Ethereum clients. Send transactions and interact with smart contracts!

Repository (GitHub)
View/report issues


API reference




convert, http, isolate, json_rpc_2, meta, pointycastle, stream_channel, typed_data, uuid


Packages that depend on web3dart