<p>I am trying to do the following:</p>

<ul>
<li>Have a daemon running on a server</li>
<li>That daemon exposes an API (Json, etc...)</li>
<li>I can call that API from localhost with:
1: Address From
2: Address To
3: Key for Address From</li>
<li>The daemon creates a valid transaction using the unspent outputs, signs the transaction using the key, and broadcasts it to the network, then forgets about the key.</li>
</ul>

<p>I don't want the daemon to store the private key (stateless) and sign transactions on-demand. The daemon should be as light as possible (if possible, use less than 256 MB of RAM).</p>

<p>I looked at Bitcoind but it doesn't seem to provide that kind of API, since I either need to setup the wallet with the private key beforehand (not stateless) or build the raw transaction from scratch, and I don't want to have to figure out the outputs to use, format of the raw transaction, etc...</p>

<p>What's the easiest way to achieve this?</p>

CC BY-SA 3.0
2013-11-21T23:06:31.107Z
I wouldn't want to use any service over a network that requires transferring the private key via API.
Lyndsy Simon
CC BY-SA 3.0
2013-11-22T10:25:51.717Z
Yes, that why I want to run a daemon on my server... Maybe I wasn't clear, but this isn't for public use.
Flavien
<bitcoind><client><api><json-rpc><server>
Stateless bitcoin daemon for server, capable of signing transactions
Flavien
# Stateless bitcoin daemon for server, capable of signing transactions

(Asked by: username_0 on 2013-11-21)

I am trying to do the following:

* Have a daemon running on a server
* That daemon exposes an API (Json, etc...)
* I can call that API from localhost with:
  1: Address From
  2: Address To
  3: Key for Address From
* The daemon creates a valid transaction using the unspent outputs, signs the transaction using the key, and broadcasts it to the network, then forgets about the key.

I don't want the daemon to store the private key (stateless) and sign transactions on-demand. The daemon should be as light as possible (if possible, use less than 256 MB of RAM).

I looked at Bitcoind but it doesn't seem to provide that kind of API, since I either need to setup the wallet with the private key beforehand (not stateless) or build the raw transaction from scratch, and I don't want to have to figure out the outputs to use, format of the raw transaction, etc...

What's the easiest way to achieve this?

**Tags:** bitcoind, client, api, json-rpc, server

> **Comments:**
> **username_1**: I wouldn't want to use any service over a network that requires transferring the private key via API.  
> **username_0**: Yes, that why I want to run a daemon on my server... Maybe I wasn't clear, but this isn't for public use.  

---

## 0 answers

