Bitcoin Forum
May 07, 2024, 10:07:09 AM *
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!
1715076429
Hero Member
*
Offline Offline

Posts: 1715076429

View Profile Personal Message (Offline)

Ignore
1715076429
Reply with quote  #2

1715076429
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715076429
Hero Member
*
Offline Offline

Posts: 1715076429

View Profile Personal Message (Offline)

Ignore
1715076429
Reply with quote  #2

1715076429
Report to moderator
1715076429
Hero Member
*
Offline Offline

Posts: 1715076429

View Profile Personal Message (Offline)

Ignore
1715076429
Reply with quote  #2

1715076429
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!