Bitcoin Forum
November 09, 2024, 02:15:33 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP RPC API: How to get the returned txid?  (Read 2003 times)
winnetou (OP)
Sr. Member
****
Offline Offline

Activity: 361
Merit: 250


View Profile
August 18, 2011, 09:54:43 AM
 #1

Hello,

I want to check if a transaction was successfully sent. How can I do this with the PHP RPC API?

Maybe about getting the returned transaction id? How do I do this?

e.g. I use this command for sending: $bitcoin->sendfrom(fromthisaccount,tothisbitcoinaddress,$sendamount,4,"txcomment");

Hope somebody can help me!

Thank you!
Nicksasa
Sr. Member
****
Offline Offline

Activity: 288
Merit: 250



View Profile WWW
August 18, 2011, 03:59:47 PM
 #2

Hello,

I want to check if a transaction was successfully sent. How can I do this with the PHP RPC API?

Maybe about getting the returned transaction id? How do I do this?

e.g. I use this command for sending: $bitcoin->sendfrom(fromthisaccount,tothisbitcoinaddress,$sendamount,4,"txcomment");

Hope somebody can help me!

Thank you!
$txid = $bitcoin->sendfrom(fromthisaccount,tothisbitcoinaddress,$sendamount,4,"txcomment");
$txid contains your transaction id now.

winnetou (OP)
Sr. Member
****
Offline Offline

Activity: 361
Merit: 250


View Profile
August 18, 2011, 07:54:52 PM
 #3

Hello,

I want to check if a transaction was successfully sent. How can I do this with the PHP RPC API?

Maybe about getting the returned transaction id? How do I do this?

e.g. I use this command for sending: $bitcoin->sendfrom(fromthisaccount,tothisbitcoinaddress,$sendamount,4,"txcomment");

Hope somebody can help me!

Thank you!
$txid = $bitcoin->sendfrom(fromthisaccount,tothisbitcoinaddress,$sendamount,4,"txcomment");
$txid contains your transaction id now.

omg, call me n00b. thank you
brandon@sourcewerks
Member
**
Offline Offline

Activity: 62
Merit: 10



View Profile
August 18, 2011, 10:46:21 PM
 #4

Wow.

Just Wow.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
August 19, 2011, 12:09:56 AM
 #5

I have to admit I lol'd
But hey we were all noobs once

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
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!