<p>The coinbase transaction contains a single input, which has  <code>txid</code> set to <code>0000000000000000000000000000000000000000000000000000000000000000</code> and <code>vout</code> set to <code>0xFFFFFFFF</code>.</p>

CC BY-SA 3.0
2017-08-25T23:31:26.057Z
with this values, I got a Parse error as response. the json string I using is: `{"jsonrpc": "1.0", "id":"curltest", "method":"createrawtransaction", "params":[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0xFFFFFFFF}]`. I also try with `"vout":"0xFFFFFFFF"`
Kleber Mota
CC BY-SA 3.0
2017-10-25T03:37:05.943Z
@KleberMota You cannot enter a hex number or string for `vout`. That is invalid JSON.
Ava Chow
CC BY-SA 3.0
2017-08-25T23:27:43.640Z
2017-08-25T23:27:43.640Z
meshcollider
<p>I want create a coinbase transaction to go with a new block minned by my program. I am creating it with the json-rpc command <code>createrawtransaction</code>. What's the values for <code>txid</code> and <code>vout</code> in this case?</p>

CC BY-SA 3.0
2017-08-25T23:25:22.247Z
what the right way? beginner here, and don't found this anywhere.
Kleber Mota
<coinbase-transaction><transaction-id><createrawtransaction>
Values for txid and vout for create a coinbase transaction
Kleber Mota
# Values for txid and vout for create a coinbase transaction

(Asked by: username_0 on 2017-08-25)

I want create a coinbase transaction to go with a new block minned by my program. I am creating it with the json-rpc command `createrawtransaction`. What's the values for `txid` and `vout` in this case?

**Tags:** coinbase-transaction, transaction-id, createrawtransaction

> **Comments:**
> **username_0**: what the right way? beginner here, and don't found this anywhere.  

---

## 1 answers

### Answer by username_1 on 2017-08-25. Score: 4

The coinbase transaction contains a single input, which has `txid` set to `0000000000000000000000000000000000000000000000000000000000000000` and `vout` set to `0xFFFFFFFF`.

> **Comments:**
> **username_0**: with this values, I got a Parse error as response. the json string I using is: `{"jsonrpc": "1.0", "id":"curltest", "method":"createrawtransaction", "params":[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0xFFFFFFFF}]`. I also try with `"vout":"0xFFFFFFFF"`  
> **username_2**: @username_0 You cannot enter a hex number or string for `vout`. That is invalid JSON.  

---

