RAILGUN Reloaded
    Preparing search index...

    Type Alias EphemeralIndexParams

    Inputs for the allocation and the recovery scan of ephemeral indexes.

    type EphemeralIndexParams = {
        walletStorage: WalletStorage;
        publicClient: PublicClient;
        walletId: string;
        chainId: number;
        deriveAddress: (index: number) => `0x${string}`;
        gapLimit?: number;
        scanLimit?: number;
    }
    Index
    walletStorage: WalletStorage

    Storage that holds the counter.

    publicClient: PublicClient

    Caller-owned public client for the chain.

    walletId: string

    Wallet that owns the counter.

    chainId: number

    Chain that owns the counter.

    deriveAddress: (index: number) => `0x${string}`

    Pure function that maps an index to its ephemeral address.

    gapLimit?: number

    Consecutive unused indexes that end a recovery scan. Defaults to 20. The allocation ignores it.

    scanLimit?: number

    Most candidate indexes that a recovery scan reads. Defaults to 10000. The allocation ignores it.