Bitcoin Forum
May 07, 2024, 05:34:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ethereum PHP library issue  (Read 242 times)
boy130 (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 263



View Profile
November 11, 2017, 11: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!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715103242
Hero Member
*
Offline Offline

Posts: 1715103242

View Profile Personal Message (Offline)

Ignore
1715103242
Reply with quote  #2

1715103242
Report to moderator
1715103242
Hero Member
*
Offline Offline

Posts: 1715103242

View Profile Personal Message (Offline)

Ignore
1715103242
Reply with quote  #2

1715103242
Report to moderator
1715103242
Hero Member
*
Offline Offline

Posts: 1715103242

View Profile Personal Message (Offline)

Ignore
1715103242
Reply with quote  #2

1715103242
Report to moderator
boy130 (OP)
Sr. Member
****
Offline Offline

Activity: 616
Merit: 263



View Profile
November 12, 2017, 09:41:42 PM
 #2

up
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!