Author

Topic: Is there a script or online API to sign/send transactions without bitcoind? (Read 1646 times)

hero member
Activity: 910
Merit: 1005
I have been meaning to add this ability to the blockchain.info API for a while. You can now replace the guid in the send api (https://blockchain.info/api/api_send) with a Hex encoded private key.

https://blockchain.info/merchant/4d6c9dff493fcd2da9508e01c8b13461d37e3d8b6df1732942d3257874051362/payment?to=$address&amount=$amount

$address = destination bitcoin address.
$amount = amount to send in satoshi.


sr. member
Activity: 438
Merit: 291
I would avoid it!

Use a payment provider.
e.g. www.bitcoin247.com

They charge very little (there are others that are free).

You just make 2 http requests to send coins. Also to receive coins make one http request to get the address. Display this to user - the user pays that address - and bitcoin247 call you back on a specific URL when the coins are received. If you like in the callback handler you can automatically forward the coins to your offline wallet so if bitcoin247 go bust you only lose what is "in flight".

We use them for https://bitcoinvanity.appspot.com.
Works perfectly. Only issue I have is that they only call back after 6 confirmations. I would like to get a callback as soon as they get the transaction and again at block 1 and again at block 6, but this is not possible.

As you can see from the web address this is running on google app engine, so as restricted an environment as you can get.
kjj
legendary
Activity: 1302
Merit: 1026
If you've got a toolset that can do EC math, the signature isn't hard.  I would even say that following the rules to correctly reduce the input to the signable version is harder than calculating the signature.

Oh, and it shouldn't be hard to run a disconnected walletless node on a webserver just to take advantage of the RPC functions built in.  Without the block chain and network traffic, bitcoind doesn't need a lot of resources.

Hmm.  Maybe someone should add a config parameter to make bitcoind run in RPC-only mode.
legendary
Activity: 2506
Merit: 1010
Is there a script or library (preferably PHP) or some API perhaps, which allows me to do this automatically?

Also, the Javascript from Brainwallet.org will let you do this:
 - http://brainwallet.org/#tx
legendary
Activity: 1120
Merit: 1016
090930
Electrum has some scriptable python functions that will do this. Look into the mktx and sendtx commands!
full member
Activity: 125
Merit: 100
The maketx tool in the subvertx package will let you generate raw transactions given just the inputs and private keys to sign them.
legendary
Activity: 1176
Merit: 1011
Suppose I've got a private key (and its address), and some random webserver on which I cannot run bitcoind.

I want to sign and send a transaction from this address to some other address. But I don't have any wallet or account or installed client software whatsoever.

Now, I can do this manually, for example by creating a new (temporary) blockchain.info wallet, importing the private key, making the transaction, and optionally discarding the wallet (or forget its password or whatever).

Is there a script or library (preferably PHP) or some API perhaps, which allows me to do this automatically?
Jump to: