PHPackages                             edgaras/ethereum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. edgaras/ethereum

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

edgaras/ethereum
================

PHP library for interacting with the Ethereum blockchain. Provides wallet management, ETH transfers, balance and transaction queries, and helpful utilities.

v0.1.1(5mo ago)9136—0%2[1 PRs](https://github.com/Edgaras0x4E/Ethereum/pulls)MITPHPPHP &gt;=8.3.0

Since Oct 6Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/Edgaras0x4E/Ethereum)[ Packagist](https://packagist.org/packages/edgaras/ethereum)[ Docs](https://github.com/Edgaras0x4E/Ethereum)[ RSS](/packages/edgaras-ethereum/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Ethereum PHP Library
====================

[](#ethereum-php-library)

PHP library for interacting with the Ethereum blockchain. Provides wallet management, ETH transfers, balance and transaction queries, and helpful utilities.

Features
--------

[](#features)

- **Wallet management**: Create/import wallets, export JSON, derive address and public key
- **ETH transfers**: Build, sign and send legacy (Type-0) and EIP-1559 (Type-2) transactions; wait for confirmations
- **Balances and network**: `getBalance`, `getBalanceInEther`, `getBlockNumber`, `getNetworkInfo`
- **Transaction details**: `getTransaction`, `getTransactionReceipt`, `getTransactionStatus`, `getTransactionDetails`
- **Address activity**: Scan recent blocks with `getTransactionsForAddress`
- **Block transactions**: Fetch with `getTransactionsByBlockNumber`
- **Utilities**: Unit conversion, checksum addresses, hex helpers, hashing
- **JSON‑RPC client wrapper**: Under-the-hood client for core RPC calls

Installation
------------

[](#installation)

```
composer require edgaras/ethereum
```

Requirements:

- PHP 8.3+
- Extensions: `gmp`, `bcmath`

Quick Start
-----------

[](#quick-start)

```
