web3dart: ^2.0.0-dev.3 copied to clipboard
Dart library to connect to Ethereum clients. Send transactions and interact with smart contracts!
- Breaking: Removed the
Web3Client. For background isolates, instead use
runner: await IsolateRunner.spawn()from
isValidSignatureto verify messages. Thanks, brickpop!
decompressPublicKeyto obtain a compressed or expanded version of keys.
Web3Client. Thanks, jmank88!
hexToDartIntnot actually parsing hex (#81)
Web3Clientto 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 #
getTransactionReceiptto get more detailed information about a transaction, including whether it was executed successfully or not.
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
enableBackgroundIsolateto true when creating a
Web3Clientto try it out.
- Events! Use
eventsfor 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.
|Creating credentials via ||Use the |
|Sending transactions or calling contract functions||The 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 <-> integer||Not available in the core library. Import |
If you run into problems after updating, please create an issue.
getTransactionByHashmethod - thank you, maxholman!
- Allow a different N parameter for scrypt when creating new wallets.
- New APIs allowing for a simpler access to wallets, credentials and addresses
- More examples in the README
- Send and sign transactions
- Initial version, created by Stagehand