Please describe the feature you’d like to see added.
Currently submitpackage
does no sanity checks on submitted transactions.
These checks have been helpful more than a handful of times in the wild, and these arguments are actively used by downstream wallets. We should figure out how to support them
Is your feature related to a problem, if so please describe it.
No response
Describe the solution you’d like
maxfeerate
: this one is a bit tricky. I think the easiest way would be have a utility function that pulls in utxos to create the sigops-adjusted vsizes and individual fees? Then the entire package could be rejected if any exceed the set amount.
maxburnamount
: This can be added on without any chain-context by scanning the outputs of each transaction and rejecting the package if any exceed the value.
Describe any alternatives you’ve considered
No response
Please leave any additional context
No response