<p>Certainly. Use <code>bitcoin-cli getblock &lt;hash&gt; 2</code> to get the full details of a block (you may want to pipe the output to <code>less</code> as there will be a lot of output). The first transaction in the block (the first transaction in the array <code>tx</code>) is the coinbase transaction. In there, there is a field labeled <code>coinbase</code>. That contains the hex of the bytes of whatever data miners are putting there in the transaction. Drop the hex into whatever Hex to Ascii converter you want and you will get text. Note that some miners may not include readable text in their coinbases.</p>

CC BY-SA 4.0
2018-06-13T17:50:18.223Z
2018-06-13T17:50:18.223Z
Ava Chow
<p>Websites like blockchain.info and btc.com give Relayed By information to find who found the block. I can see coinbase text in the website <a href="https://coin.dance/blocks" rel="nofollow noreferrer">https://coin.dance/blocks</a>. Is it possible to get that information using bitcoin-cli ? </p>

<blockchain><block><bitcoin-cli>
How to get Coinbase Text for newly found block
Anil M
# How to get Coinbase Text for newly found block

(Asked by: username_0 on 2018-06-13)

Websites like blockchain.info and btc.com give Relayed By information to find who found the block. I can see coinbase text in the website <https://coin.dance/blocks>. Is it possible to get that information using bitcoin-cli ?

**Tags:** blockchain, block, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2018-06-13. Score: 1 | Accepted answer

Certainly. Use `bitcoin-cli getblock  2` to get the full details of a block (you may want to pipe the output to `less` as there will be a lot of output). The first transaction in the block (the first transaction in the array `tx`) is the coinbase transaction. In there, there is a field labeled `coinbase`. That contains the hex of the bytes of whatever data miners are putting there in the transaction. Drop the hex into whatever Hex to Ascii converter you want and you will get text. Note that some miners may not include readable text in their coinbases.


---

