Closed mononaut closed 5 months ago
Q: Where do you plan to use this endpoint and how?
Access to testmempoolaccept
is a frequent feature request from some of our API users, but I'll probably also add an interface to the mempool frontend similar to the /tx/push
page.
Yeah, if we're going to offer this publicly, we should definitely offer an optional maxfeerate parameter.
Might be worth it to check the request body to make sure it's only hex and commas... and maybe we should limit it somehow. (Might be a DoS vector)
Added support for the optional maxfeerate parameter (via query string), and added some basic pre-checks to the POSTed raw transactions for valid hexadecimal-ness and string length.
Switched maxfeerate param from f32 to f64
This PR adds a new REST API endpoint
POST /txs/test
, which accepts a comma-separated list of transactions as raw hex strings, passes them totestmempoolaccept
, and returns the results as JSON.