v12.0.0 - initial commit
This commit is contained in:
commit
e2c49ea43c
1145 changed files with 97211 additions and 0 deletions
18
packages/server/lib/blockexplorers/mempool.space.js
Normal file
18
packages/server/lib/blockexplorers/mempool.space.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const axios = require('axios')
|
||||
|
||||
const getSatBEstimateFee = () => {
|
||||
return axios
|
||||
.get('https://mempool.space/api/v1/fees/recommended')
|
||||
.then(r => r.data.hourFee)
|
||||
}
|
||||
|
||||
const getSatBEstimateFees = () => {
|
||||
return axios
|
||||
.get('https://mempool.space/api/v1/fees/recommended')
|
||||
.then(r => r.data)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getSatBEstimateFees,
|
||||
getSatBEstimateFee,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue