Hi.
I have a question I couldn't find an easy solution for it.
I'm working to automate CPFP (child pays for parent) for incoming stuck transactions and want to make sure that the new transaction will have the fee so the resulting fee per byte will be set to the current network conditions, so the stuck transaction(s) will be quickly confirmed.
The problem is I can't determine the fee of the incoming transactions arriving to the wallet via gettransaction rpc call.
Here is an example:
$ ./bitcoin-cli gettransaction yyy
{
"amount": 0.00010000,
"confirmations": 0,
"trusted": false,
"txid": "yyy",
"walletconflicts": [
],
"time": 1499083856,
"timereceived": 1499083856,
"bip125-replaceable": "yes",
"details": [
{
"account": "user_123",
"address": "xxxxxxxx",
"category": "receive",
"amount": 0.00010000,
"label": "user_123",
"vout": 0
}
],
"hex": "1234567"
}
Bitcoin isn't returning the fee. fee is only returned if I send outgoing transactions.
Is there any way to determine what fee was set for incoming transaction(s) (via JSON-RPC)?
Thank you.