PHPackages                             kornrunner/ethereum-offline-raw-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. kornrunner/ethereum-offline-raw-tx

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

kornrunner/ethereum-offline-raw-tx
==================================

Pure PHP Ethereum Offline Raw Transaction Signer

0.9.0(5mo ago)63192.1k↑17.5%3220MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI passing

Since Jun 1Pushed 2mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (15)Used By (20)

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

62

—

FairBetter than 99% of packages

Maintenance79

Regular maintenance activity

Popularity49

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity78

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~227 days

Recently: every ~289 days

Total

13

Last Release

173d ago

PHP version history (5 changes)0.1.0PHP &gt;=7.1.0

0.2.4PHP &gt;=7.2

0.3.0PHP &gt;=7.3

0.7.0PHP &gt;=8.1

0.9.0PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/725986?v=4)[Boris Momčilović](/maintainers/kornrunner)[@kornrunner](https://github.com/kornrunner)

---

Top Contributors

[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (165 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)")

---

Tags

eip1559ethethereumofflinerawtransactiontransactionethereumethofflinetx

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kornrunner/ethereum-token

PHP Ethereum Token Utils

1412.9k1](/packages/kornrunner-ethereum-token)[drlecks/simple-web3-php

Web3 library in PHP

7641.6k2](/packages/drlecks-simple-web3-php)[kornrunner/solidity

Pure PHP implementation of Solidity

1940.5k11](/packages/kornrunner-solidity)[erag/laravel-pwa

A simple and easy-to-use PWA (Progressive Web App) package for Laravel applications.

16083.3k](/packages/erag-laravel-pwa)[devrabiul/laravel-pwa-kit

Laravel PWA Kit is a lightweight and flexible package to add Progressive Web App (PWA) support to your Laravel applications with ease.

571.4k](/packages/devrabiul-laravel-pwa-kit)

PHPackages © 2026

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