Files
mempool/examples/html/liquid/addresses.html
T

35 lines
963 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
2021-04-14 17:27:28 -03:00
<script src="https://mempool.space/mempool.js"></script>
<script>
const init = async () => {
2021-04-14 17:27:28 -03:00
const {
liquid: { addresses },
} = mempoolJS();
const address = '1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC';
2021-04-14 17:27:28 -03:00
const myAddress = await addresses.getAddress({ address });
console.log(myAddress);
2021-04-14 17:27:28 -03:00
const addressTxs = await addresses.getAddressTxs({ address });
console.log(addressTxs);
2021-04-14 17:27:28 -03:00
const addressTxsChain = await addresses.getAddressTxsChain({ address });
console.log(addressTxsChain);
2021-04-14 17:27:28 -03:00
const addressTxsMempool = await addresses.getAddressTxsMempool({
address,
});
console.log(addressTxsMempool);
2021-04-14 17:27:28 -03:00
const addressTxsUtxo = await addresses.getAddressTxsUtxo({ address });
console.log(addressTxsUtxo);
};
init();
</script>
</head>
<body></body>
</html>