RAILGUN Reloaded
    Preparing search index...

    Type Alias BalanceUpdateEvent

    Fired after decrypt/sync when notes were added or spent and cached balances have been recalculated. Carries the full balance snapshot read fresh from wallet.db. No-op runs signal completion through sync:complete without emitting this event.

    type BalanceUpdateEvent = {
        walletId: string;
        chainId: number;
        balances: TokenBalance[];
        notesAdded: number;
        notesSpent: number;
        timestamp: Date;
    }
    Index
    walletId: string

    Wallet whose notes changed.

    chainId: number

    Chain ID of the network of the notes.

    balances: TokenBalance[]

    ERC-20 balances of all unspent notes of the wallet, in every PPOI bucket.

    notesAdded: number

    Number of notes that the decrypt run stored for the wallet.

    notesSpent: number

    Number of wallet notes that the decrypt run marked spent.

    timestamp: Date

    Time the event was emitted.