PHPackages                             selaz/ethereum-offline-sign-tx - 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. selaz/ethereum-offline-sign-tx

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

selaz/ethereum-offline-sign-tx
==============================

Pure PHP Ethereum Offline Raw Transaction Signer

065PHP

Since Jul 23Pushed 1y agoCompare

[ Source](https://github.com/selaz/php-ethereum-offline-raw-tx)[ Packagist](https://packagist.org/packages/selaz/ethereum-offline-sign-tx)[ RSS](/packages/selaz-ethereum-offline-sign-tx/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-ethereum-offline-tx [![Tests](https://github.com/kornrunner/php-ethereum-offline-tx/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/kornrunner/php-ethereum-offline-tx/actions/workflows/tests.yml) [![Coverage Status](https://camo.githubusercontent.com/b1769bba72e697938ec2c35b975157884b1768051537893887705f955a08b498/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b6f726e72756e6e65722f7068702d657468657265756d2d6f66666c696e652d7261772d74782f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/kornrunner/php-ethereum-offline-raw-tx?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/cce3a46eb2783b151af5892413d1e8f2cf0d1b21f74998e4fdd9d7568c23921e/68747470733a2f2f706f7365722e707567782e6f72672f6b6f726e72756e6e65722f657468657265756d2d6f66666c696e652d7261772d74782f762f737461626c65)](https://packagist.org/packages/kornrunner/ethereum-offline-raw-tx)
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-ethereum-offline-tx---)

Pure PHP Ethereum Offline Raw Transaction Signer

Ethereum raw transaction hash offline in PHP

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

[](#installation)

```
$ composer require kornrunner/ethereum-offline-raw-tx
```

Usage
-----

[](#usage)

```
use kornrunner\Ethereum\Transaction;

$nonce    = '04';
$gasPrice = '03f5476a00';
$gasLimit = '027f4b';
$to       = '1a8c8adfbe1c59e8b58cc0d515f07b7225f51c72';
$value    = '2a45907d1bef7c00';

$privateKey = 'b2f2698dd7343fa5afc96626dee139cb92e58e5d04e855f4c712727bf198e898';

$transaction = new Transaction ($nonce, $gasPrice, $gasLimit, $to, $value);
$transaction->getRaw ($privateKey);
// f86d048503f5476a0083027f4b941a8c8adfbe1c59e8b58cc0d515f07b7225f51c72882a45907d1bef7c00801ba0e68be766b40702e6d9c419f53d5e053c937eda36f0e973074d174027439e2b5da0790df3e4d0294f92d69104454cd96005e21095efd5f2970c2829736ca39195d8
```

With different `chainId`

```
use kornrunner\Ethereum\Transaction;

$nonce    = '04';
$gasPrice = '03f5476a00';
$gasLimit = '027f4b';
$to       = '1a8c8adfbe1c59e8b58cc0d515f07b7225f51c72';
$value    = '2a45907d1bef7c00';
$chainId  = 1;

$privateKey = 'b2f2698dd7343fa5afc96626dee139cb92e58e5d04e855f4c712727bf198e898';

$transaction = new Transaction ($nonce, $gasPrice, $gasLimit, $to, $value);
$transaction->getRaw ($privateKey, $chainId);
// f86d048503f5476a0083027f4b941a8c8adfbe1c59e8b58cc0d515f07b7225f51c72882a45907d1bef7c008025a0db4efcc22a7d9b2cab180ce37f81959412594798cb9af7c419abb6323763cdd5a0631a0c47d27e5b6e3906a419de2d732e290b73ead4172d8598ce4799c13bda69
```

Create a EIP1559 transaction

```
use kornrunner\Ethereum\EIP1559Transaction;

$nonce = '02';
$maxPriorityFeePerGas = 'b2d05e00';
$maxFeePerGas = '6fc23ac00';
$gasLimit = '5208';
$to = '1a8c8adfbe1c59e8b58cc0d515f07b7225f51c72';
$value = '29a2241af62c0000';
$data = '';
$chainId = 1;

$privateKey = 'b2f2698dd7343fa5afc96626dee139cb92e58e5d04e855f4c712727bf198e898';

$transaction = new EIP1559Transaction($nonce, $maxPriorityFeePerGas, $maxFeePerGas, $gasLimit, $to, $value, $data);

$rawTx = $transaction->getRaw($privateKey, $chainId);
// 02f873010284b2d05e008506fc23ac00825208941a8c8adfbe1c59e8b58cc0d515f07b7225f51c728829a2241af62c000080c080a0dd32dc794af9a9085d6772c40656fc156a577570c6fd32f2a2d4126673373919a066cf1859672a9e6fdbb00ebd230bcfec66cac1c99f5c83598ecae6025d0e91f4
```

Crypto
------

[](#crypto)

[![Ethereum](https://user-images.githubusercontent.com/725986/61891022-0d0c7f00-af09-11e9-829f-096c039bbbfa.png) 0x9c7b7a00972121fb843af7af74526d7eb585b171](https://etherscan.io/address/0x9c7b7a00972121fb843af7af74526d7eb585b171 "Donate with Ethereum")

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 98.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/60a10991a9de0956065be5839a37480393fb914725e0b0e60172d3f5c263be61?d=identicon)[Selaz](/maintainers/Selaz)

---

Top Contributors

[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (163 commits)")[![diadal](https://avatars.githubusercontent.com/u/19895516?v=4)](https://github.com/diadal "diadal (1 commits)")[![First-wang](https://avatars.githubusercontent.com/u/26293106?v=4)](https://github.com/First-wang "First-wang (1 commits)")[![selaz](https://avatars.githubusercontent.com/u/1086350?v=4)](https://github.com/selaz "selaz (1 commits)")

### Embed Badge

![Health badge](/badges/selaz-ethereum-offline-sign-tx/health.svg)

```
[![Health](https://phpackages.com/badges/selaz-ethereum-offline-sign-tx/health.svg)](https://phpackages.com/packages/selaz-ethereum-offline-sign-tx)
```

PHPackages © 2026

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