This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
This HTML creates a web page that loads an IPFS node. You can interact with it by opening a browser console and interacting | |
with the 'node' variable. | |
--> | |
<html lang="en"> | |
<head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios').default | |
const bchAddress = 'bitcoincash:qpnty9t0w93fez04h7yzevujpv8pun204qv6yfuahk' | |
const SERVER = process.env.SERVER | |
// Get hydrated UTXOs from an address | |
const hydrateSLP = async (address) => { | |
try { | |
if (!address || typeof address !== 'string') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios').default | |
const bchAddress = 'bitcoincash:qpnty9t0w93fez04h7yzevujpv8pun204qv6yfuahk' | |
const SERVER = process.env.SERVER | |
// Get SLP balance of an address | |
const slpBalances = async (address) => { | |
try { | |
if (!address || typeof address !== 'string') { |