feat: mempool.space fee estimation
This commit is contained in:
parent
c3c5292123
commit
8bbbb136f1
2 changed files with 14 additions and 3 deletions
8
lib/blockexplorers/mempool.space.js
Normal file
8
lib/blockexplorers/mempool.space.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const axios = require("axios");
|
||||
|
||||
const getEstimateFeeBtc = () => {
|
||||
return axios.get('https://mempool.space/api/v1/fees/recommended')
|
||||
.then(r => r.data.hourFee)
|
||||
}
|
||||
|
||||
module.exports = { getEstimateFeeBtc }
|
||||
Loading…
Add table
Add a link
Reference in a new issue