Bitcoin Forum
May 24, 2017, 09:44:31 AM *
News: If the forum does not load normally for you, please send me a traceroute.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: PHP RPC API: How to get the returned txid?  (Read 1785 times)
winnetou
Sr. Member
****
Offline Offline

Activity: 361


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!
1495619071
Hero Member
*
Offline Offline

Posts: 1495619071

View Profile Personal Message (Offline)

Ignore
1495619071
Reply with quote  #2

1495619071
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Nicksasa
Sr. Member
****
Offline Offline

Activity: 288



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
Sr. Member
****
Offline Offline

Activity: 361


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



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

Wow.

Just Wow.
jackjack
Legendary
*
Offline Offline

Activity: 1036


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:  

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!