• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Estimated Fees in BCOIN

Started by Bitcoin, Feb 24, 2022, 04:46 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Estimated Fees in BCOIN

I installed a BCOIN full node and I would like to calculate estimated fees for Bitcoin transactions.
This functionality works perfectly in the CLI. For example:



bcoin-cli fee 3


Anyway things go wrong when I use the JS api inside my express client app:



const result = await client.estimateFee(3);


The API doesn't throw any error and no response is given back. This was copied from the official API documentation.



Please note that client and options are properly configured. It works all fine in other express routes where I use the bcoin JS API to get blockchain info, lists of transactions etc.



What's wrong? Perhaps the API changed and documentation is outdated ?



Regards


Source: Estimated Fees in BCOIN