cardano-addresses icon indicating copy to clipboard operation
cardano-addresses copied to clipboard

NPM package basic sample does not resolve.

Open ggcaponetto opened this issue 1 year ago • 0 comments

By running the following snippet, I expect the promise to be resolved and to get exit code 0. The process outputs the info and hangs instead.

const cardanoAddresses = require('cardano-addresses')
const addr = 'addr1gqtnpvdhqrtpd4g424fcaq7k0ufuzyadt7djygf8qdyzevuph3wczvf2dwyx5u'

cardanoAddresses.inspectAddress(addr)
    .then(info => {
        console.log("got info:", info);
    }).catch(e => {
    console.log("something wrong happened:", e);
});

Any advice?

ggcaponetto avatar May 31 '23 21:05 ggcaponetto