Search packages, repositories and app categories

Package detailsv6.1.1

ethereum

An ethereum JSON RPC 2.0 client for Dart. Interfaces ethereum API calls to Dart types and vice versa.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
535
Likes
45
Pub points
160

Install package

flutter pub add ethereum

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

ethereum

Build Status

An ethereum RPC 2 client for Dart.

This package provides a client to access the Ethereum JSON RPC API documented here It uses the JSON RPC2 interface and can be configured to use any of the endpoints described except ipc. The client runs on the server using HTTP, and in the browser using both HTTP and web sockets.

The package currently implements most of the eth API and some of the admin API. Work is ongoing to complete the implementation of the admin API.

The mapping of Ethereum RPC data types to Dart types is as follows :-

  • boolean - bool
  • string - String
  • quantity - int
  • data - BigInt

Examples can be found in the examples directory, also the unit test suite contains examples of calling every API interface.

The package was tested against a geth client.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.