|
June 03, 2020, 04:24:42 AM |
|
decodescript is completely unrelated to the transaction proofs that you get from gettxoutproof and use with verifytxproof.
decodescript is for inspecting and debugging scripts used in a transaction. The transaction proof from gettxoutproof is not a script, nor is it involved in a transaction itself. That proof is tying the txid to the merkle root in a block. It's the path through the merkle tree. This is not related to transaction scripts at all. Trying to put the transaction proof into decodescript will result in garbage.
To read a description of a command, the arguments to it, and what it returns, use the help <cmd> command where <cmd> is the command you are interested in. For example, to get the documentation for gettxoutproof, you would do help gettxoutproof.
|