PHPackages                             amendozadev/eth\_rpc - 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. amendozadev/eth\_rpc

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

amendozadev/eth\_rpc
====================

Create Ethereum wallet and/or connect to JSON-RPC Endpoint from Ethereum or compatibles like BSC

v1.0.0(3y ago)2142MITPHPPHP &gt;=7.4

Since May 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/EvolutionPHP/eth_rpc)[ Packagist](https://packagist.org/packages/amendozadev/eth_rpc)[ RSS](/packages/amendozadev-eth-rpc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Ethereum account and JSON-RPC client
====================================

[](#ethereum-account-and-json-rpc-client)

Create Ethereum wallet and/or connect to JSON-RPC Endpoint from Ethereum or compatibles like BSC

This library requires the [bcmath](http://php.net/manual/en/book.bc.php) PHP extension.

**Installation:**

```
composer require amendozadev/eth_rpc
```

**Usage:**

```
$wallet = new \aMendoza\Eth_rpc\Wallet();

//Create new wallet
$account = $wallet->createWallet(); //['address' => '0xf1b4d0755ef13025c8b1b398237652b7c3ea8dc0', 'private_key' => '81011e578366208ab232d726cb910d1dffd132c84659cede2bfc6b5d0404d234']

//Connect to RPC URL (URL : Chain ID)
$wallet->rpc_url('https://ropsten.infura.io/v3/', 3);

// get gas price in wei
$wei = $wallet->gasPrice();
echo $wei; // "5000000000"

// convert to eth:
$eth = $wallet->wei2eth($wei);
echo $eth; // "0.000000005000000000"

// block number
$block = $wallet->blockNumber();
echo $block; //18143442

// account balance
$balance = $wallet->getBalance($account['address']);

//Send Transaction
try {
    $to = '0xa48e2ff1e6e4ef5952c64dc505d6983a92d320f7';
    $nonce = 0;
    $gasPrice = 10;
    $gasLimit = 21000;
	$raw = $wallet->createTransaction($account['address'], $to, '0.0002', $account['private_key'], $nonce, $gasPrice, $gasLimit);
	echo $wallet->sendTransaction($raw); //0xa91377938abd362e2486398d467a6c7c96b1100424ef1d20318e82bffbd8f0e8
}catch (Exception $exception){
	echo $exception->getMessage();
}
```

Crypto
------

[](#crypto)

[![Ethereum](https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/32/color/eth.png) 0x05836377EB43a0Fe0d88C0D75E101396eAbbb8fb](https://etherscan.io/address/0x05836377EB43a0Fe0d88C0D75E101396eAbbb8fb "Donate with Ethereum")

[![Binance](https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/32/color/bnb.png) 0x9C2E46Ca7FA1F483C7CE40a415801351a73FEd90](https://bscscan.com/address/0x9C2E46Ca7FA1F483C7CE40a415801351a73FEd90 "Donate with Binance Smart Chain")

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1445d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d5a42f2155ba37cd77c46f9e57c613e0c08394b5e2b59e8ff77e0d44adaf907?d=identicon)[EvolutionPHP](/maintainers/EvolutionPHP)

---

Top Contributors

[![EvolutionPHP](https://avatars.githubusercontent.com/u/106336615?v=4)](https://github.com/EvolutionPHP "EvolutionPHP (5 commits)")

---

Tags

rpcwalletethereumbinance

### Embed Badge

![Health badge](/badges/amendozadev-eth-rpc/health.svg)

```
[![Health](https://phpackages.com/badges/amendozadev-eth-rpc/health.svg)](https://phpackages.com/packages/amendozadev-eth-rpc)
```

###  Alternatives

[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

63192.1k22](/packages/kornrunner-ethereum-offline-raw-tx)[fenguoz/bsc-php

Support Binance's BNB and BEP20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash

4720.9k](/packages/fenguoz-bsc-php)[kornrunner/solidity

Pure PHP implementation of Solidity

1940.5k11](/packages/kornrunner-solidity)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
