Bitcoin Forum

Bitcoin => Project Development => Topic started by: boy130 on November 11, 2017, 11:01:34 PM



Title: Ethereum PHP library issue
Post by: boy130 on November 11, 2017, 11:01:34 PM
Hi all,

I am using this library for geth communication: https://github.com/btelle/ethereum-php (https://github.com/btelle/ethereum-php)

When I am trying to make a transaction getting this error:

Code:
Fatal error: Uncaught exception 'ErrorException' with message 'Transaction object expected' in /var/www/html/ethereum.php:174 Stack trace: #0 /var/www/html/index.php(11): Ethereum->eth_sendTransaction('0xae0a0b700a3a4...', '0x56050f56a8f87...', NULL, NULL, '10') #1 /var/www/html/1.php(7): include('/var/www/html/i...') #2 {main} thrown in /var/www/html/ethereum.php on line 174

My code:

Code:
require 'ethereum.php';

// create a new object
$ethereum = new Ethereum('127.0.0.1', 8545);

$ethereum->eth_sendTransaction('0xae0a0b700a3a465aece53fe735777869f96b6896', '0x56050f56a8f87439f6e9c205584adff0d2fcc934', null, null, '10');

Other commands are working instead sending...  :(

What I did wrong?

THANKS A LOT!


Title: Re: Ethereum PHP library issue
Post by: boy130 on November 12, 2017, 09:41:42 PM
up