Author

Topic: Ethereum PHP library issue (Read 244 times)

sr. member
Activity: 616
Merit: 263
November 12, 2017, 05:41:42 PM
#2
up
sr. member
Activity: 616
Merit: 263
November 11, 2017, 07:01:34 PM
#1
Hi all,

I am using this library for geth communication: 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...  Sad

What I did wrong?

THANKS A LOT!
Jump to: