Skip to main content

Prerequisites

  • A Solana wallet funded with USDC — see the wallet setup guide
  • The x402 client library installed for your language
  • A case identifier and court code for a covered court (US state, federal, or Canadian)

Step 1 — Check coverage

Before querying, confirm the court you need is covered. This endpoint is free and requires no payment.
Find your court_code in the response. If your court shows "coverage": "full" you are ready. If your court is not listed, check the coverage roadmap.

Step 2 — Try sandbox mode

Before spending USDC, confirm connectivity with a free sandbox query. Add ?test=1 to any endpoint.
The response is a fixture — real structure, no real data, no charge.

Step 3 — Make your first paid query


Step 4 — Understand the response

A successful response:
The delta block is only present when last_checked is supplied. Store meta.queried_at and use it as last_checked on your next call.

Step 5 — Handle errors

DocketLayer never charges for failed queries.

Next steps

Build a monitoring loop

Run your agent on a schedule

Wallet setup

Solana wallet and x402 configuration in detail

API reference

Full endpoint documentation

MCP server

Use DocketLayer directly from Claude