Documentation Index
Fetch the complete documentation index at: https://docs.x402r.org/llms.txt
Use this file to discover all available pages before exploring further.
Overview
AuthorizationTimeRecorderHook storesblock.timestamp at the moment the operator authorizes a payment. Time-based conditions like EscrowPeriod read this timestamp to gate later actions.
EscrowPeriod extends AuthorizationTimeRecorderHook and adds an
ICondition implementation. For escrow enforcement, use EscrowPeriod directly instead of deploying AuthorizationTimeRecorderHook on its own.State
Methods
amount, caller, and data are unused; they exist to satisfy IHook.run.
When to Use
Use AuthorizationTimeRecorderHook directly only if you need authorization timestamps without escrow period enforcement. For most use cases, EscrowPeriod is the better choice since it includes this hook plus time-lock condition logic.Gas
Cost: ~20k gas perrun() call (one SSTORE for the timestamp).
Next Steps
EscrowPeriod
Combined hook + condition for escrow enforcement.
PaymentIndexRecorderHook
Index payments for on-chain queries.
