搜尋套件、儲存庫與 APP 分類

套件詳情v6.1.1

ethereum

一個用於 Dart 的以太坊 JSON RPC 2.0 客戶端。將以太坊 API 呼叫與 Dart 類型相互介接。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
535
喜歡數
45
Pub 分數
160

安裝套件

flutter pub add ethereum

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

ethereum 包是 Ethereum 的 JSON RPC 2.0 API 的 Dart 客戶端,可實現與 Ethereum 網路的無縫互動。它將 Ethereum API 呼叫轉換為 Dart 類型,反之亦然,從而簡化查詢餘額、發送交易以及與智慧合約互動等區塊鏈操作。此包專為建構去中心化應用程式(dApps)的開發者設計,支援多種平台,包括行動裝置、Web 與桌面。該包可直接整合至 Dart 生態系統中,讓在 Flutter 應用中接入 Ethereum 變得輕鬆可行。

適用情境

  • 使用以太坊整合建構去中心化應用
  • 查詢區塊鏈數據,如餘額和交易歷史
  • 向以太坊網絡發送簽名交易
  • 透過 RPC 與智慧合約互動
  • 開發跨平台加密錢包

主要特色

  • Ethereum RPC 回應的原生 Dart 類型對應
  • 支援所有標準的以太坊 JSON RPC 方法
  • 跨平台相容性,支援 Android、iOS、Web、macOS、Windows 與 Linux
  • 輕鬆整合至Flutter專案
  • 強大的錯誤處理與回應解析

適合對象

  • Flutter 開發人員建構區塊鏈應用
  • 加密錢包或 dApp 創建者
  • 行動和桌面應用程式中的 Web3 集成
  • Dart 開發者新手入門以太坊 RPC
  • 需要可靠以太坊網絡通信的項目

使用建議

  • 需要連接以太坊節點或第三方提供者(例如 Infura)
  • 不是完整的區塊鏈客戶端——依賴外部RPC端點
  • 處理私鑰時必須遵循安全最佳實踐
  • 僅限RPC層級功能,不支援高階合約抽象

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。