Skip to content

Instantly share code, notes, and snippets.

@tobi-bams
Created April 20, 2022 00:35
Show Gist options
  • Save tobi-bams/7f02058704ef70ee5d123cb54dad2178 to your computer and use it in GitHub Desktop.
Save tobi-bams/7f02058704ef70ee5d123cb54dad2178 to your computer and use it in GitHub Desktop.
A function to get all the Unspent Utxos
const { Axios } = require("./util/index");
const GetUnspentUtxo = async () => {
try {
const response = await Axios("listunspent");
console.log(response.data.result);
return response.data.result;
} catch (error) {
console.log(error);
throw error;
}
};
GetUnspentUtxo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment