Skip to content

registerDust

registerDust(conn, night?): Promise<void>

DUST for the wallet's fees: its NIGHT registered for DUST generation, unless it has DUST already. A new wallet has none, and neither has one whose registrations were cleared (a network fork can clear them), so it registers again. On the devnet NIGHT the wallet lacks comes from the faucet; on a network it throws NoNightError. A proven chain takes the registration proven.

Parameter Type
conn ChainConnection
night? bigint

Promise<void>