-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hello team,
I am trying to get the pxy nfts using dabjs. I am able to get actor with the call getNFTActor. However, getUserTokens is failing with the error as pasted in the screenshot below. Is there something I am missing? Please help. Thank you for your time and contribution to the dev community :-)
StoicIdentity.load().then(async identity => {
if (identity !== false) {
//ID is a already connected wallet!
} else {
//No existing connection, lets make one!
identity = await StoicIdentity.connect();
}
//Lets display the connected principal!
console.log(identity.getPrincipal().toText());
const canisterId = '46sy3-aiaaa-aaaah-qczza-cai';
const standard = 'EXT';
const agent = new HttpAgent({identity});
console.log('agent: ' + agent);
const NFTActor = getNFTActor({ canisterId, agent, standard });
console.log('actor: ' + NFTActor);
const userTokens = await NFTActor.getUserTokens(identity.getPrincipal());
console.log('tokens: ' + userTokens);
//Disconnect after
StoicIdentity.disconnect();
})
Metadata
Metadata
Assignees
Labels
No labels
