Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: winnetou on August 18, 2011, 09:54:43 AM



Title: PHP RPC API: How to get the returned txid?
Post by: winnetou on August 18, 2011, 09:54:43 AM
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!


Title: Re: PHP RPC API: How to get the returned txid?
Post by: Nicksasa on August 18, 2011, 03:59:47 PM
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.


Title: Re: PHP RPC API: How to get the returned txid?
Post by: winnetou on August 18, 2011, 07:54:52 PM
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


Title: Re: PHP RPC API: How to get the returned txid?
Post by: brandon@sourcewerks on August 18, 2011, 10:46:21 PM
Wow.

Just Wow.


Title: Re: PHP RPC API: How to get the returned txid?
Post by: jackjack on August 19, 2011, 12:09:56 AM
I have to admit I lol'd
But hey we were all noobs once