Skip to content

Nonce Pool

The nonce pool is optional but recommended. It reduces wasted transaction fees when multiple processors are enabled.

Setup

Create Nonce Accounts

bash
./zephyr --generate-nonces 40

Creates 40 nonce accounts on-chain (~0.056 SOL rent, reclaimable). Pubkeys are automatically appended to config.toml. Run multiple times to add more.

Tick RateRecommended
50ms30–40 nonces
25ms50–60 nonces
100ms20–30 nonces

If you see Nonce pool exhausted warnings, add more nonces.

Nonce Delay

Set nonce_delay in [buy] and [sell] to control how often the active nonce rotates (in milliseconds). Set to 0 for default behavior.

toml
[buy]
nonce_delay = 50

[sell]
nonce_delay = 100

Refill

Nonces are automatically refilled via the gRPC stream when transactions land on-chain. A background recovery task handles any missed refills within 1-2 seconds.