Bitcoin Forum
August 17, 2018, 11:37:56 PM *
News: Latest stable version of Bitcoin Core: 0.16.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Ethereum PHP library issue  (Read 170 times)
boy130
Sr. Member
****
Offline Offline

Activity: 546
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!

            ██
         ▄▄▀  ▀▄
        ▄▀▀▄▄▄  ▀▄
      ▄██▄▄▄▄▄██▄▄▀▄
    ▄▀ █  ▄▄▀▀ █  █ ▀▄▄
  ▄▀  ██▀█ ▄▀▀▄ █ █  █▀▄
██   █ █▐▌█ ██ █ ██ █   ██
  ▀▄█  █ █ ▀▄▄▀▄▄███  ▄▀
   ▀▀▄ █▄▄█▄█▀▀   █ ▄▀
      ▀▄▀▀▄▄ ▀▀▀▀██▀
        ▀▄  ▀▀▄▄▄▀
          ▀▄  ▄▀▀
            ██
.
    ▄▄███████▄▄
  ▄███▀▀   ▀▀███▄
 ███▀         ▀▀
███
███
███
 ███▄         ▄▄
  ▀███▄▄   ▄▄███▀
    ▀▀███████▀▀
██████████▄
▀▀▀▀▀▀▀▀▀███▄
          ▀██▌
          ▄██▌
▄▄▄▄▄▄▄▄▄███▀
██████████▀
██▌    ▀███▄
██▌      ▀███▄
██▌        ▀███
█████████████



█████████████



█████████████
        ██
       ████
      ██▌▐██
     ██▌  ▐██
    ██▌    ▐██
   ██▌      ▐██
  ██▌        ▐██
 ██▌          ▐██
██▌    ███████████
██████████████▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
    ▄▄███████▄▄
  ▄███▀▀   ▀▀███▄
 ███▀         ▀███
███             ███
███             ███
███             ███
 ███▄         ▄███
  ▀███▄▄   ▄▄███▀
    ▀▀███████▀▀
██████████▄
▀▀▀▀▀▀▀▀▀███▄
          ▀██▌
          ▄██▌
▄▄▄▄▄▄▄▄▄███▀
██████████▀
██▌    ▀███▄
██▌      ▀███▄
██▌        ▀███



 ▄▄
████
 ▀▀
        ██
       ████
      ██▌▐██
     ██▌  ▐██
    ██▌    ▐██
   ██▌      ▐██
  ██▌        ▐██
 ██▌          ▐██
██▌    ███████████
██▌
██▌
██▌
██▌
██▌
██▌
██▌
██▌
██▌
███
███
███
███
███
███
███
███
███

███
███

███
███
███
███
███
███
███
███
███
███
███

███
███

███
███
▀▀▀▀▀▀▀     WHITEPAPER    ▀▀▀▀▀▀▀
FACEBOOK       REDDIT       TELEGRAM
BITCOINTALK   TWITTER   INSTAGRAM
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1534549076
Hero Member
*
Offline Offline

Posts: 1534549076

View Profile Personal Message (Offline)

Ignore
1534549076
Reply with quote  #2

1534549076
Report to moderator
1534549076
Hero Member
*
Offline Offline

Posts: 1534549076

View Profile Personal Message (Offline)

Ignore
1534549076
Reply with quote  #2

1534549076
Report to moderator
boy130
Sr. Member
****
Offline Offline

Activity: 546
Merit: 263



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

up

            ██
         ▄▄▀  ▀▄
        ▄▀▀▄▄▄  ▀▄
      ▄██▄▄▄▄▄██▄▄▀▄
    ▄▀ █  ▄▄▀▀ █  █ ▀▄▄
  ▄▀  ██▀█ ▄▀▀▄ █ █  █▀▄
██   █ █▐▌█ ██ █ ██ █   ██
  ▀▄█  █ █ ▀▄▄▀▄▄███  ▄▀
   ▀▀▄ █▄▄█▄█▀▀   █ ▄▀
      ▀▄▀▀▄▄ ▀▀▀▀██▀
        ▀▄  ▀▀▄▄▄▀
          ▀▄  ▄▀▀
            ██
.
    ▄▄███████▄▄
  ▄███▀▀   ▀▀███▄
 ███▀         ▀▀
███
███
███
 ███▄         ▄▄
  ▀███▄▄   ▄▄███▀
    ▀▀███████▀▀
██████████▄
▀▀▀▀▀▀▀▀▀███▄
          ▀██▌
          ▄██▌
▄▄▄▄▄▄▄▄▄███▀
██████████▀
██▌    ▀███▄
██▌      ▀███▄
██▌        ▀███
█████████████



█████████████



█████████████
        ██
       ████
      ██▌▐██
     ██▌  ▐██
    ██▌    ▐██
   ██▌      ▐██
  ██▌        ▐██
 ██▌          ▐██
██▌    ███████████
██████████████▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
      ██▌
    ▄▄███████▄▄
  ▄███▀▀   ▀▀███▄
 ███▀         ▀███
███             ███
███             ███
███             ███
 ███▄         ▄███
  ▀███▄▄   ▄▄███▀
    ▀▀███████▀▀
██████████▄
▀▀▀▀▀▀▀▀▀███▄
          ▀██▌
          ▄██▌
▄▄▄▄▄▄▄▄▄███▀
██████████▀
██▌    ▀███▄
██▌      ▀███▄
██▌        ▀███



 ▄▄
████
 ▀▀
        ██
       ████
      ██▌▐██
     ██▌  ▐██
    ██▌    ▐██
   ██▌      ▐██
  ██▌        ▐██
 ██▌          ▐██
██▌    ███████████
██▌
██▌
██▌
██▌
██▌
██▌
██▌
██▌
██▌
███
███
███
███
███
███
███
███
███

███
███

███
███
███
███
███
███
███
███
███
███
███

███
███

███
███
▀▀▀▀▀▀▀     WHITEPAPER    ▀▀▀▀▀▀▀
FACEBOOK       REDDIT       TELEGRAM
BITCOINTALK   TWITTER   INSTAGRAM
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!