Overview
The ethereum package is a Dart client for Ethereum's JSON RPC 2.0 API, enabling seamless interaction with Ethereum networks. It translates Ethereum API calls into Dart types and vice versa, simplifying blockchain operations such as querying balances, sending transactions, and interacting with smart contracts. Designed for developers building decentralized applications (dApps), it supports multiple platforms including mobile, web, and desktop. The package integrates directly with Dart ecosystems, making Ethereum integration accessible within Flutter apps.
Use cases
- Building dApps with Ethereum integration
- Querying blockchain data like balances and transaction history
- Sending signed transactions to Ethereum networks
- Interacting with smart contracts via RPC
- Developing cross-platform crypto wallets
Key features
- Native Dart type mapping for Ethereum RPC responses
- Support for all standard Ethereum JSON RPC methods
- Cross-platform compatibility across Android, iOS, Web, macOS, Windows, and Linux
- Easy integration with Flutter projects
- Robust error handling and response parsing
Suitable for
- Flutter developers building blockchain apps
- Crypto wallet or dApp creators
- Web3 integrations in mobile and desktop apps
- Dart developers new to Ethereum RPC
- Projects requiring reliable Ethereum network communication
Considerations
- Requires a connected Ethereum node or third-party provider (e.g., Infura)
- Not a full blockchain client—relies on external RPC endpoints
- Security best practices must be followed when handling private keys
- Limited to RPC-level functionality, not high-level contract abstractions