<p></p>
<p>If my understanding is correct, all Bisq nodes have access to Bitcoin Core (either to a local node, or through a service interface exposed by a full node).</p>
<p>In that case, why not just use Bitcoin Core's mechanism for fee estimation? They already expose it through their API: <a href="https://bitcoin.org/en/developer-reference#estimatesmartfee" rel="nofollow">estimatesmartfee</a>. The fee estimation call can take different parameters: for example, the caller can indicate in how many blocks they wish to have the tx confirmed, or the estimation mode (conservative or not).</p>
<p>Using this API in Bitcoin Core would achieve 2 things for Bisq:</p>
<ol>
<li>one less dependency on a 3rd party, centralized service (earn.com API)</li>
<li>a more accurate and flexible fee estimation algorithm</li>
</ol>
<p>I've already used it in other projects via the <a href="https://github.com/Polve/bitcoin-rpc-client/blob/04a442accef8cb3c01349ec5c4a28c172586ec9b/src/main/java/wf/bitcoin/javabitcoindrpcclient/BitcoinJSONRPCClient.java#L471">Java interface</a> exposed by <a href="https://github.com/Polve/bitcoin-rpc-client">bitcoin-rpc-client</a>, seems to be a good match for Bisq's use-case.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/projects/issues/27#issuecomment-623109044">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNSKKWMLLIH6MARL7IDRPVVLJANCNFSM4LGEVL3Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNUNWCW5BXQE7QRFSWTRPVVLJA5CNFSM4LGEVL32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUR6HNA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/projects/issues/27#issuecomment-623109044",
"url": "https://github.com/bisq-network/projects/issues/27#issuecomment-623109044",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>