<p>I've using Bitcoin core and I've downloaded <strong>denpamusic/php-bitcoinrpc</strong> with composer.</p>
<p>I can get block information with this:</p>
<pre><code>$block = $bitcoind-&gt;getBlock('000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f');
print_r($block);
</code></pre>
<p>But I can't get information directly with transaction ID.</p>
<p>Is it possible to get all information from transaction <strong>only with TXID</strong>?</p>
<p>Or there is possible terminal method with bitcoin-cli</p>
<p>Thanks</p>

<bitcoin-core><php>
Bitcoin core - get transaction information in PHP
Giorgi
# Bitcoin core - get transaction information in PHP

(Asked by: username_0 on 2021-08-17)

I've using Bitcoin core and I've downloaded denpamusic/php-bitcoinrpc with composer.
I can get block information with this:
$block = $bitcoind->getBlock('000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f');
print_r($block);

But I can't get information directly with transaction ID.
Is it possible to get all information from transaction only with TXID?
Or there is possible terminal method with bitcoin-cli
Thanks

**Tags:** bitcoin-core, php


---

## 0 answers

