-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get transaction fee? #1257
Comments
|
Hi ajpro, Thank you for this example. Does |
Querying for transactions via block hash parameter also requires |
Will this work with a pruned node, or does the node need to store all blocks since the beginning? Does this method apply to Litecoin, Dogecoin, and other alts? |
In general, no. It would only work if outputs of the target transaction and all previous transactions that are referenced by its inputs are not "fully spent" (i.e., in the UTXO set) AND the block(s) containing those transactions have not yet been pruned.
I don't know, though it's reasonable to think that it would apply to Bitcoin-like alts that are supported by NBitcoin (assuming they haven't strayed too far from Bitcoin). |
Can anyone point me to an example of how to get transaction miner fee with NBitcoin, given the transaction hash? I found this method:
but not sure what to pass there. Thank you!
The text was updated successfully, but these errors were encountered: