1

I need ethereumjs-tx in PHP. Seems there is no PHP library so far. I found only JS and Python Library. Is it possible to serialize transaction data on geth? If not, I will use nodejs or create the PHP library. Before that, I want to ask this question.

What I need:

$rawTx = [
  'nonce' => '0x17',
  'gasPrice' => '0x4a817c800',
  'gasLimit' => '0x5209',
  'to' => '0x5dbb9793537515398a1176d365b636a5321d9e39',
  'value' => '0xde0b6b3a7640000',
  'data' => '',
  'chainId' => 3
];

$tx = new Tx($rawTx);
$serializedTx = $tx->serialize(); // or access geth function if it possible

ethereumjs-tx

Create and sign OFFLINE raw transactions?

zono
  • 1,473
  • 5
  • 17
  • 30

1 Answers1

1

If someone is looking for a solution, there is this implementation available:

https://github.com/web3p/ethereum-tx

openwse
  • 11
  • 1