Your callback is the trust boundary between roll.codes and your contract logic. Keep it small, explicit, and defensive.Documentation Index
Fetch the complete documentation index at: https://docs.roll.codes/llms.txt
Use this file to discover all available pages before exploring further.
Required checks
Minimal guard pattern
What to avoid
- callbacks that make unrelated external calls before marking state
- large amounts of branching that increase revert risk
- deriving user-visible state before verifying the request exists
- relying on frontend state instead of contract state during settlement
Verification checklist
- The deployed coordinator address matches the network you are using.
- Unknown request IDs revert.
- Duplicate settlement reverts.
- The callback succeeds reliably within the gas supplied by the delivery transaction.
Related pages
Coordinator reference
Look up the request function,
requestFee() call, and callback interface.Integration pattern
Start from a complete example that already applies these checks.
Quickstart
Use the hosted-coordinator setup flow before you harden your callback.