Inputs
The BSC indexer scans configured tracked wallets against allowlisted token contracts:- USDT (
18decimals, operational USD price1) - USDC (
18decimals, operational USD price1) - BTCB (
18decimals, fixed operational USD estimate25,000)
BSC_RPC_URL.
Safe range processing
The indexer subtractsBSC_CONFIRMATION_DEPTH from the latest block to obtain a safe tip. On a subsequent run it rewinds by BSC_REORG_REWIND_BLOCKS, then scans forward. Deterministic transfer identities and upserts make replay safe.
RPC providers frequently limit eth_getLogs ranges. Oynk starts with a configured chunk, retries temporary errors, reduces rejected ranges to a minimum, and grows the size after consecutive successes. Delays and jitter reduce burst pressure. Block timestamps are cached within the run.
Cursor identity
Each cursor includes normalized wallet and contract address. This avoids collisions between assets and prevents a symbol rename from redirecting checkpoint state.Operational repair
Use the contract-specific sync script with--dry-run before resetting a cursor. A reset replays a bounded target and should be treated as a controlled repair, not routine operation.