Closed bazooka70 closed 6 years ago
Yes, that's a nice one to have, as it estimates the transaction fee per kilobyte that needs to be paid for a transaction to be included within a certain number of blocks.
Also note that estimatefee
and estimaterawfee
are long DEPRECATED in 0.15+
This is the workaround I use so far:
public class GetEstimateSmartFeeResponse
{
public decimal feerate;
public ushort blocks;
}
IBitcoinService bitcoinService = new BitcoinService(useTestnet: false);
BitcoinLib.RPC.Connector.IRpcConnector _rpcConnector = new BitcoinLib.RPC.Connector.RpcConnector(bitcoinService);
var response = new GetEstimateSmartFeeResponse();
response = _rpcConnector.MakeRequest<GetEstimateSmartFeeResponse>(BitcoinLib.RPC.Specifications.RpcMethods.estimatesmartfee, 6);
Not sure if this code perfect but it works for me.
Resolved by https://github.com/cryptean/bitcoinlib/pull/75.
Is it possible to add the
estimatesmartfee
RPC call please?