Quick Start
What is CCIP?
EIP-3668 defines a standard for contracts to request offchain data during execution. When a contract reverts withOffchainLookup, the client fetches data from gateway URLs and retries with the response.
Common use cases:
- ENS resolution - Fetching offchain name records
- L2 state proofs - Verifying L2 data on L1
- Offchain attestations - Retrieving signed data from trusted gateways
CcipRequest
{sender}→ replaced with contract address (lowercase){data}→ replaced with calldata- If URL contains
{data}, uses GET; otherwise POST with{ sender, data }
Error Handling
CcipError includes:
urls- The URLs that were attemptedmessage- Human-readable error descriptioncause- Underlying error (if any)
NoopCcip
Disable offchain lookups for testing or sandboxed environments:Layer Composition
DefaultCcip is a self-contained Layer with no dependencies:

