insight-api icon indicating copy to clipboard operation
insight-api copied to clipboard

transaction send throws error "Second argument must be numeric (maxfeerate) and no longer supports a boolean."

Open qcoreprotocol opened this issue 4 years ago • 0 comments

When uses qtumjs-wallet library async wallet.send() function to post send token request to https://explorer.qtum.org/insight-api/tx/send. It throws error as below

Second argument must be numeric (maxfeerate) and no longer supports a boolean. To allow a transaction with high fees, set maxfeerate to 0

I haven't seen this error 2 years ago, I guess the full node for insight-api was upgraded at some point and now it is broken.

I think it is this line

https://github.com/qtumproject/insight-api/blob/f369fd4b1d44a04eb90e7e04779ac211cd5c1c12/lib/transactions.js#L393

Now it expects a numeric value (0) instead of callback boolean?

qcoreprotocol avatar Nov 05 '20 10:11 qcoreprotocol