You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your case getrawtransaction b423b2b22d6d74376de2887c07f7c84ae890a93d541fcc6dbf3686f2923b2753 1 00000000000000409e394d133807fd4f6b0fd27ade24a6e717ee257e825167e1
In your case getrawtransaction b423b2b22d6d74376de2887c07f7c84ae890a93d541fcc6dbf3686f2923b2753 1 00000000000000409e394d133807fd4f6b0fd27ade24a6e717ee257e825167e1
So: shortly now everyone obliged to call this call with adding blockhash information?
There are no more way just give txid to client? Everyone must call listunspent to get unspent tx and then call idk what else need to look btc manual to get blockhash for tx i need. I'm correct?
@nikitasius Note that you can turn on txindex, which will enable using getrawtransaction with just the txid. But you need to enable it, because it now requires an index to query for these things efficiently.
@nikitasius Also, if it's about wallet transactions, you can just only call gettransaction with the decode flag enabled; no need for getrawtransaction ever.
All that was removed is the ability to use getrawtransaction for non-wallet transactions, without enabling txindex.
@nikitasius Also, if it's about wallet transactions, you can just only call gettransaction with the decode flag enabled; no need for getrawtransaction ever.
All that was removed is the ability to use getrawtransaction for non-wallet transactions, without enabling txindex.
Before i was requesting wallet transactions and non-wallet (parent tx), to get info about parent tx.
About txindex:
i have it enabled on my prod
on dev and laptop i use with prune and it was handy to get info about recent transactions who sent me coins on testnet.
Then, for example, i pick an old tx from blockchain:
It would be actually useful to have a new RPC call to query the blockId of a transaction by using the UTXO set, so at least people have an alternative which does not rely on the wallet.
Activity
[-]`getrawtransaction` fails[/-][+]`getrawtransaction` fails (0.18.0)[/+]maflcko commentedon Jun 4, 2019
Please see the error message for alternatives.
For some reason it doesn't mention that you can also provide the block hash as parameter to getrawtransaction. Imo, it should.
maflcko commentedon Jun 4, 2019
In your case
getrawtransaction b423b2b22d6d74376de2887c07f7c84ae890a93d541fcc6dbf3686f2923b2753 1 00000000000000409e394d133807fd4f6b0fd27ade24a6e717ee257e825167e1achow101 commentedon Jun 5, 2019
This is intended behavior. Transactions that have outputs in the UTXO set are no longer looked up in
getrawtransaction. See #15159nikitasius commentedon Jun 5, 2019
@MarcoFalke
@achow101
Look:

getrawtransaction b423b2b22d6d74376de2887c07f7c84ae890a93d541fcc6dbf3686f2923b2753 1executing commant using wallet(probably not error, maybe just notification for me)There are NOT only
getrawtransactionfailed, there are really strange behavior for 0.18.0.maflcko commentedon Jun 5, 2019
@nikitasius Again, this (breaking) change was intended for 0.18.0. Could you please type in
Note that it uses three arguments. You can use
help getrawtransactionto see their help text.nikitasius commentedon Jun 5, 2019
@MarcoFalke this way it work.
So: shortly now everyone obliged to call this call with adding
blockhashinformation?There are no more way just give txid to client? Everyone must call
listunspentto get unspent tx and then callidk what else need to look btc manualto get blockhash for tx i need. I'm correct?nikitasius commentedon Jun 5, 2019
yes,
listunspentif neededgettransactionwith tx idgetrawtransactionto get what i really need.@MarcoFalke on next 0.18.1 it will be 1 more call to do?
sipa commentedon Jun 5, 2019
@nikitasius Note that you can turn on txindex, which will enable using getrawtransaction with just the txid. But you need to enable it, because it now requires an index to query for these things efficiently.
sipa commentedon Jun 5, 2019
@nikitasius Also, if it's about wallet transactions, you can just only call
gettransactionwith the decode flag enabled; no need forgetrawtransactionever.All that was removed is the ability to use
getrawtransactionfor non-wallet transactions, without enabling txindex.nikitasius commentedon Jun 5, 2019
Before i was requesting wallet transactions and non-wallet (parent tx), to get info about parent tx.
About
txindex:pruneand it was handy to get info about recent transactions who sent me coins on testnet.Then, for example, i pick an old tx from blockchain:
curl -u rpc:rpc -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","id":"1","method":"getrawtransaction","params":["f38888cd5f99b54bbd32c9f4c0444345277f8f8d5803dc93c5af319378997953",1,"00000000001012f9088a1f33694881732c6f168bc13c9894eaeb3dcbfc3d6893"]}' http://127.0.0.1:18332{"result":null,"error":{"code":-1,"message":"Block not available"},"id":"1"}- no result{"result":{"in_active_chain":true,"txid":"f38888cd5f99b54bbd32c9f4c0444345277f8f8d5803dc9....- correct resultSo, with this actual changes we:
prunesinstances@sipa you allow in 0.18.0 to get raw information when you specify blockhash, but it's still limited by the blockchain you store (8Gb for example).
This is totally unuseful update. It can be useful in one situation:
In such case YES, this is useful to get blockhash and use it.
But actually:
And this is very bad.
NicolasDorier commentedon Jun 5, 2019
It would be actually useful to have a new RPC call to query the blockId of a transaction by using the UTXO set, so at least people have an alternative which does not rely on the wallet.
13 remaining items
nikitasius commentedon Jun 5, 2019
I got what you mean, i had it in my logs.
here is my laptop, prune 8Gb (so no txindex):
....30aca75d353This is nice improvement, you made it stable and predictable.
But what about:
This improvement is possible? To avoid an additional API calls to RPC server (=wasting of time on processing).
Merge #16217: getrawtransaction: inform about blockhash argument when…
Merge bitcoin#16217: getrawtransaction: inform about blockhash argume…
Merge bitcoin#16217: getrawtransaction: inform about blockhash argume…
Merge bitcoin#16217: getrawtransaction: inform about blockhash argume…
Merge #16217: getrawtransaction: inform about blockhash argument when…