> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotstuff.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Nonce Management

Nonce on Hotstuff are tracked per signer, which is the user address if signed with private key of the address, or the agent address if signed with an API wallet.

Nonces must be within `(T - 2 days, T + 1 day)`, where `T` is the unix millisecond timestamp on the block of the transaction.

#### Notes for API traders

* For each batch of orders or cancels, fetch and increment an atomic counter that ensures a unique nonce for the address. The atomic counter can be fast-forwarded to current unix milliseconds if needed.
* For concurrent operations, we recommend using an shared atomic nonce counter ensuring unique nonces per transaction/api call.
* For batch operations, like place/cancel orders, there's a hard cap of 100 ops per batch per api call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.