<p>You can create raw transaction, sign, ...etc programmatically but if you need to fetch address transactions (inputs) or broadcast the signed transaction to bitcoin network you'll need to connect to Bitcoin network.</p>

<p>Bitcoin-core is amazing for this purpose and if you don't want to download the whole blockchain you can alternatively use Electrum servers. </p>

<p>helpful commands for Bitcoin-core: </p>

<p><code>listunspent</code>: returns an array of unspent transaction outputs belonging to this wallet.</p>

<p><code>ListTransactions</code>: returns the most recent transactions that affect the wallet.</p>

<p>Electrum commands: </p>

<p>after connecting to some electrum server you should send JSON-RPC commands</p>

<p><code>listunspent</code> example: </p>

<pre><code>{ "id": 1, "method":"blockchain.address.listunspent", "params"["1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"] }
</code></pre>

<p><strong>UPDATE</strong></p>

<p>if you are already using Bitcoin-core, so you only need to call <code>listunspent</code>to get your wallet UTXO's or provide an address to get that address UTXO's. </p>

<pre><code>bitcoin-cli listunspent MIN_CONF MAX_CONF "["ADDRESS_NUMBER_ONE","ADDRESS_NUMBER_TWO"]"
</code></pre>

<p>If those address doesn't belong to your wallet, you should import them first. </p>

CC BY-SA 3.0
2018-03-29T09:27:40.060Z
I use a command line only, non-wallet distribution, so I just want to create,  sign and send transactions with command-cli or rpc.
LF-DevJourney
CC BY-SA 3.0
2018-03-29T10:03:09.583Z
I use a non-wallet distribution.
LF-DevJourney
CC BY-SA 3.0
2018-03-29T10:29:01.900Z
Sorry I didn't see that part. I'm pretty sure it's hard to do what you're asking with your conditions. The best alternative is electrum, you can do what you looking for through command line.
Tailer
CC BY-SA 3.0
2018-03-29T10:31:03.750Z
Do you mind getting those transactions using a third-party? Take a look at blockchain.info API or Blockcypher.
Tailer
CC BY-SA 3.0
2018-03-29T09:08:51.543Z
2018-03-29T09:52:20.090Z
2018-03-29T09:52:20.090Z
Tailer
<p>I've some utxos with a address. I use <a href="https://bitcoin.org/en/developer-reference#createrawtransaction" rel="nofollow noreferrer">CreateRawTransaction</a> to make a transacton. But this method need a txid filed, I've searched a lot to get the txid from the address, but I didn't find any.</p>

<p>So is it possible to make transaction without wallet programmatically？</p>

<p><strong>Note:I use the command line only, non-wallet distribution, I just want to create, sign and send transactions with command-cli or rpc.</strong></p>

<transactions>
How to make transaction without wallet?
LF-DevJourney
# How to make transaction without wallet?

(Asked by: username_0 on 2018-03-29)

I've some utxos with a address. I use [CreateRawTransaction](https://bitcoin.org/en/developer-reference#createrawtransaction) to make a transacton. But this method need a txid filed, I've searched a lot to get the txid from the address, but I didn't find any.

So is it possible to make transaction without wallet programmatically？

**Note:I use the command line only, non-wallet distribution, I just want to create, sign and send transactions with command-cli or rpc.**

**Tags:** transactions


---

## 1 answers

### Answer by username_1 on 2018-03-29. Score: 2

You can create raw transaction, sign, ...etc programmatically but if you need to fetch address transactions (inputs) or broadcast the signed transaction to bitcoin network you'll need to connect to Bitcoin network.

Bitcoin-core is amazing for this purpose and if you don't want to download the whole blockchain you can alternatively use Electrum servers.

helpful commands for Bitcoin-core:

`listunspent`: returns an array of unspent transaction outputs belonging to this wallet.

`ListTransactions`: returns the most recent transactions that affect the wallet.

Electrum commands:

after connecting to some electrum server you should send JSON-RPC commands

`listunspent` example:

```
{ "id": 1, "method":"blockchain.address.listunspent", "params"["1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"] }

```

**UPDATE**

if you are already using Bitcoin-core, so you only need to call `listunspent`to get your wallet UTXO's or provide an address to get that address UTXO's.

```
bitcoin-cli listunspent MIN_CONF MAX_CONF "["ADDRESS_NUMBER_ONE","ADDRESS_NUMBER_TWO"]"

```

If those address doesn't belong to your wallet, you should import them first.

> **Comments:**
> **username_0**: I use a command line only, non-wallet distribution, so I just want to create,  sign and send transactions with command-cli or rpc.  
> **username_0**: I use a non-wallet distribution.  
> **username_1**: Sorry I didn't see that part. I'm pretty sure it's hard to do what you're asking with your conditions. The best alternative is electrum, you can do what you looking for through command line.  
> **username_1**: Do you mind getting those transactions using a third-party? Take a look at blockchain.info API or Blockcypher.  

---

