Skip to main content
2 votes
Accepted

LightWallet: Empty array for (await api.getUsedAddresses() || await api.getUnusedAddresses() || [])

Thanks to Marcel - founder of eternl I've found my mistake. await api.getUsedAddresses() actually returns an empty array - I thought both calls return undefined and it defaults to []. After calling ...
Will's user avatar
  • 1,152
1 vote
Accepted

Why does api.getRewardAddresses() return an array and does it matter?

The reason for the return type to be an array is CIP-18 (while it is not implemented yet, it is already taken into account in the web wallet bridge specification CIP-30). So currently there should not ...
eddex's user avatar
  • 3,668
1 vote

How to detect a wallet change event

var handle: any = await window.cardano.nami.enable() handle.experimental.on('accountChange',(addresses: any ) => { console.log(addresses) }
Jean-Marc's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible