What is Nostr?
dave /
npub1tsg…htk4
2022-12-09 00:33:21
in reply to nevent1q…q0e7

dave on Nostr: // -- Fetchying Tranasactions from Blockstream -- // const fetchTxs = async () => { ...

// -- Fetchying Tranasactions from Blockstream -- //

const fetchTxs = async () => {
const data = await fetch('https://blockstream.info/api/mempool/fees';)
.then((res) => res.json())
.then((data) => {
return data.mempool
.map((tx) => tx.txid)
.forEach((tx) => console.log(tx))
});
}

// Call the function
fetchTxs();
Author Public Key
npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4