Get unused address and change state without transaction

I run a cardano-cli, cardan-wallet and cardano-wallet-js.
I use this code for get next unused address:

let address = await wallet.getNextAddress();

How can I set state: 'unused' to state: 'used' without any transcation?

let usedAddresses = await wallet.getUsedAddresses();

I don’t think you can. used is just defined to be “has appeared in a transaction”.

1 Like