Gates
Verify Payment
Submit an on-chain transaction hash to verify x402 USDC payment on Base and receive a time-limited bearer access token for gated content.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.xenarch.com/llms.txt
Use this file to discover all available pages before exploring further.
Verification process
- Fetches the transaction receipt from Base RPC
- Confirms the transaction was sent to the splitter contract and succeeded
- Parses the
Splitevent logs - Verifies the collector matches the publisher’s registered wallet
- Verifies the amount meets or exceeds the gate price
- Creates a
VerifiedPaymentrecord - Returns an HMAC-SHA256 access token
Notes
- Idempotent: submitting the same
tx_hashagain returns the cached token - Replay-safe: a
tx_hashused for one gate cannot be reused for another - Gate must be
pendingand not expired - Access tokens expire after 30 minutes by default