Stealth Addresses API
Access via wallet.stealth (or wallet.USD.stealth for currency-specific operations).
Create
const stealth = await wallet.stealth.create({
label: 'Invoice #1',
autoStake: true,
});
// stealth.evmAddress — fresh EVM address
// stealth.bpk — fresh EB public key
// stealth.index — derivation index
List
const all = await wallet.stealth.list();
Balances
const balances = await wallet.stealth.getBalances();
const balance = await wallet.stealth.getBalance(0);
Auto-Stake Watcher
Polls for incoming funds on stealth addresses and automatically stakes them to L3:
await wallet.USD.stealth.startAutoStakeWatcher(10_000);
wallet.USD.stealth.stopAutoStakeWatcher();
Recovery
Scan derivation indices to recover stealth addresses (e.g., after restoring from mnemonic):
const recovered = await wallet.stealth.recover(100);