Skip to main content
DocketLayer queries are paid in USDC on Solana — $0.99 per query, settled on-chain via x402. Before your agent can make its first paid request, its wallet needs a USDC balance.

Step 1 — Create a Solana wallet

For agents that operate autonomously, generate a wallet programmatically. The private key is stored as an environment variable and the agent signs transactions automatically.
Store the secret key as an environment variable:
Never hardcode your private key in source code or commit it to a repository. Use environment variables or a secrets manager.

Step 2 — Fund with USDC

Each query costs $0.99 in USDC on Solana. Options for funding: Buy USDC on an exchange — Purchase on Coinbase or Kraken and withdraw to your Solana wallet address. When withdrawing, confirm you select the Solana network — not Ethereum or any other chain. Swap SOL to USDC — Use Jupiter to swap SOL or any Solana token to USDC directly in your wallet. Verify your balance at Solana Explorer by searching your wallet’s public address.

Step 3 — Configure x402

Step 4 — Test with the free endpoint

Before making paid queries, confirm connectivity:

Monitor your balance

A depleted wallet causes all queries to fail. Check your balance programmatically and alert when it falls below a threshold: