Skip to content

Instantly share code, notes, and snippets.

@tobi-bams
Created April 20, 2022 00:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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