interface EventSubscriberConfig {
    contractId: string;
    limit?: number;
    networkPassphrase?: string;
    pollingIntervalMs?: number;
    rpcUrl: string;
    startLedger?: number | "now";
}

Properties

contractId: string

The deployed OnboardingBridge contract ID (C-address).

limit?: number

Maximum events to fetch per poll.

100
networkPassphrase?: string

Network passphrase — used only for RPC Server construction.

pollingIntervalMs?: number

Polling interval in milliseconds.

5000
rpcUrl: string

Soroban RPC URL.

startLedger?: number | "now"

Starting ledger. Pass 'now' (default) to only see new events, or a specific ledger number to replay from that point.

'now'