Bitcoin Forum
September 27, 2018, 10:02:13 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Create and send transactions in PHP  (Read 790 times)
Seal
Donator
Hero Member
*
Offline Offline

Activity: 836
Merit: 1000


View Profile WWW
February 24, 2013, 06:15:23 PM
 #1

I'm looking for two things:

1. A way of creating transactions in PHP
2. Any supported API to broadcast the transactions mentioned above

Does a set of classes / api exist for this already?

Appreciate a link if this topic already exists (i couldnt find it though).

Edit: I should add, I do not want to use any daemons to do this or by piggybacking off other clients. This needs to be done within PHP in its entirety. The only external call would be the broadcast of the transaction.

1538085733
Hero Member
*
Offline Offline

Posts: 1538085733

View Profile Personal Message (Offline)

Ignore
1538085733
Reply with quote  #2

1538085733
Report to moderator
1538085733
Hero Member
*
Offline Offline

Posts: 1538085733

View Profile Personal Message (Offline)

Ignore
1538085733
Reply with quote  #2

1538085733
Report to moderator
1538085733
Hero Member
*
Offline Offline

Posts: 1538085733

View Profile Personal Message (Offline)

Ignore
1538085733
Reply with quote  #2

1538085733
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538085733
Hero Member
*
Offline Offline

Posts: 1538085733

View Profile Personal Message (Offline)

Ignore
1538085733
Reply with quote  #2

1538085733
Report to moderator
deeplink
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


In cryptography we trust


View Profile
February 24, 2013, 06:43:41 PM
 #2

Not sure what you mean with 'piggybacking off other clients'

Maybe this suits your needs. It seems to be under active development, but it does need a daemon:

PHP Bitcoin Development Kit | Alpha Release candidate v0.0.43 | BitcoinDevKit.com
https://bitcointalk.org/index.php?topic=123586.0

You can also use the blockchain.info API for sending and receiving payments without running a local daemon:
https://blockchain.info/api
gweedo
Legendary
*
Offline Offline

Activity: 1246
Merit: 1000


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
February 24, 2013, 06:52:18 PM
 #3

I am pretty sure this isn't possible, just cause at some point you need to sign the inputs to prove they are owned by you, and that would require a wallet with the able to sign a raw tx.

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1001


View Profile
February 24, 2013, 07:18:59 PM
 #4

I am pretty sure this isn't possible, just cause at some point you need to sign the inputs to prove they are owned by you, and that would require a wallet with the able to sign a raw tx.

Braiinwallet does this in Javascript, but you need the transaction hash (and index) for each coin that you are spending -- that would be the service provided by the bitcoin.org clieint or other client that you would need to re-implement.

 - http://brainwallet.org/#tx

The only external call would be the broadcast of the transaction.

 - https://blockchain.info/pushtx
 - signrawtransaction and sendrawtransaction from http://en.bitcoin.it/wiki/Raw_Transactions
Seal
Donator
Hero Member
*
Offline Offline

Activity: 836
Merit: 1000


View Profile WWW
February 24, 2013, 07:38:21 PM
 #5

I am pretty sure this isn't possible, just cause at some point you need to sign the inputs to prove they are owned by you, and that would require a wallet with the able to sign a raw tx.

Braiinwallet does this in Javascript, but you need the transaction hash (and index) for each coin that you are spending -- that would be the service provided by the bitcoin.org clieint or other client that you would need to re-implement.

 - http://brainwallet.org/#tx

The only external call would be the broadcast of the transaction.

 - https://blockchain.info/pushtx
 - signrawtransaction and sendrawtransaction from http://en.bitcoin.it/wiki/Raw_Transactions

Seems like I've underestimated the complexity of the task. I assumed wrongly that if i had the private key it would be a simple task.

I was working on a online payment system that would take any coins paid into a certain address and redirect them straight to a more secure vault address (where the private key would not be on the server).

How do other sites accept payments and produce 'hot wallet' payments? Are they all running the daemon?

Sukrim
Legendary
*
Offline Offline

Activity: 2394
Merit: 1002


View Profile
February 26, 2013, 12:31:57 PM
 #6

BIP32 (https://en.bitcoin.it/wiki/BIP_0032) sounds nice...

You'd generate new addresses on the fly and don't need to send the coins elsewhere.

If you want to _send_ payments though (to customers, not yourself) then you need something else, for _receiving_, BIP32 it is probably.

https://www.coinlend.org <-- automated lending at various exchanges. No fees(!).
Mail me at Bitmessage: BM-BbiHiVv5qh858ULsyRDtpRrG9WjXN3xf
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!