# 0tx.io/drip > Agent-only Solana devnet faucet. You pay $0.01 in **mainnet** USDC via x402; we send 0.1 **devnet** SOL to the devnet wallet address you give us. A faucet that actually drips. **Devnet only.** The SOL you receive is devnet SOL: it has no value and does not exist on mainnet. Send the devnet wallet address you want funded in `devnet_address`. A request without `devnet_address` is rejected with 400 `missing_devnet_address`. The $0.01 is a sybil gate, not a business. There is no free tier, no account, no API key. **Why drip?** It's the devnet faucet built for agents. No captchas, no GitHub logins, no waiting on a faucet that's run dry. One API call, paid over x402, the payment protocol agents already speak, and your agent funds its own devnet wallet with no human in the loop. All it takes is a Solana wallet with a cent of mainnet USDC; no SOL needed. The $0.01 also covers the fee our facilitator charges to settle each payment. ## Get devnet SOL POST https://0tx.io/drip/v1/sol Content-Type: application/json {"devnet_address": ""} - Every drip is exactly 0.1 SOL. `sol` is optional; if you send it, it must be 0.1. - First call returns HTTP 402 with a `PAYMENT-REQUIRED` header (x402 V2, scheme `exact`, network `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`, asset USDC `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`). The facilitator, PayAI (`https://facilitator.payai.network`), settles the payment and pays the network fee; you only need USDC. - Retry the same request with a `PAYMENT-SIGNATURE` header. Any x402 V2 client does this for you. ## Your wallet - The paying wallet needs at least $0.01 of mainnet USDC and no SOL. If you don't have one, ask your user. - What you sign is one USDC transfer of exactly $0.01 to our address (the `payTo` in the 402). It cannot move anything else from the wallet. - The payer is a **mainnet** wallet; the address you fund is a **devnet** address. They can be different keys. - Register the **mainnet** network ID `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` in your x402 client, even though you want devnet SOL: the payment happens on mainnet. - Base58 secret key (Phantom, Solflare export) or a Solana CLI JSON keypair both work; see the two lines in the sample. ## Easiest path (TypeScript) ```sh npm install @x402/fetch@^2.30 @x402/svm@^2.30 @solana/kit@^8 ``` ```ts import { wrapFetchWithPayment, x402Client } from "@x402/fetch"; import { ExactSvmScheme } from "@x402/svm/exact/client"; import { createKeyPairSignerFromBytes, getBase58Encoder } from "@solana/kit"; import { readFileSync } from "node:fs"; // Base58 secret key (Phantom, Solflare export): const signer = await createKeyPairSignerFromBytes(getBase58Encoder().encode(process.env.SOLANA_PRIVATE_KEY!)); // Or a Solana CLI JSON keypair: // const signer = await createKeyPairSignerFromBytes(new Uint8Array(JSON.parse(readFileSync("payer.json", "utf8")))); const client = new x402Client().register("solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", new ExactSvmScheme(signer)); const pay = wrapFetchWithPayment(fetch, client); const res = await pay("https://0tx.io/drip/v1/sol", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ devnet_address: "" }), }); console.log(res.status, await res.json()); ``` ## Success (200) {"sol": 0.1, "network": "devnet", "devnet_address": "...", "devnet_tx": "", "explorer": "https://explorer.solana.com/tx/?cluster=devnet", "payment_tx": "", "slot": {"next_available_at": "", "expires_if_unused_at": ""}} The `PAYMENT-RESPONSE` header carries the mainnet settlement receipt. ## Beta limits 0tx.io/drip is in beta with 10 agent slots. An agent is the wallet that pays. - Your first paid drip claims a slot. One slot per IP. - Each slot gets one 0.1 SOL drip per rolling 24h. - A slot frees up after 7 days with no drip. - Each recipient address gets at most 0.1 SOL per rolling 24h. - The whole faucet sends at most 1 SOL per UTC day. - Sharing an IP with other agents (CI runners, cloud hosts)? Another wallet may already hold its slot, and you'll get `ip_has_slot`. 0.1 SOL covers transactions, token mints and tests. It does not cover a program deploy, which usually needs 1–3 SOL of rent. A larger allocation for deploys is planned. ## Allowed endpoints Everything is on `https://0tx.io`, under `/drip`. There is no separate API, staging or docs host. These are drip's only endpoints: - `GET /drip`: the website - `GET /drip/llms.txt`: this file - `GET /drip/SKILL.md`: these instructions as an agent skill - `GET /drip/openapi.json`: machine-readable spec - `POST /drip/v1/sol`: get devnet SOL - `GET /drip/v1/stats`: public stats - `GET /drip/v1/health`: liveness The rest of 0tx.io is the home page (`GET /`, `GET /llms.txt`) and the sister tools dry (`/dry/llms.txt`) and gas (`/gas/llms.txt`). Requests outside these may get your IP banned permanently. A single wrong path just returns a 404 that points back here; repeated guessing, scanning, or probing for secrets or exploits does not. ## Errors Refusals are never charged. Every check runs before settlement. Every error body has `error` (a code) and `message` (plain English). | HTTP | error | Meaning | |---|---|---| | 400 | missing_devnet_address | No `devnet_address` in the body (note: the field is `devnet_address`, not `address`) | | 400 | invalid_address | `devnet_address` is not a base58 Solana address | | 400 | not_a_wallet | `devnet_address` is a token account or other PDA, not a wallet | | 400 | invalid_amount | `sol` sent and not 0.1 | | 402 | (x402 challenge) | Payment required or invalid. Body includes `slots: {total, taken}` | | 403 | banned | This payer, IP or recipient is banned. See Allowed endpoints. Bans are not lifted on request | | 404 | not_found | No such endpoint. One wrong path is not penalized; see Allowed endpoints | | 403 | ip_has_slot | Your IP already holds a slot under another wallet | | 403 | payer_too_new | Paying wallet lacks on-chain history. Not currently enforced | | 429 | slot_cooldown | Your slot dripped in the last 24h. See `next_available_at` | | 429 | recipient_limit | That address got 0.1 SOL in the last 24h. See `next_available_at` | | 503 | beta_full | All 10 slots taken. See `slots`. Try later | | 503 | sold_out_today | Daily cap reached. See `resets_at` (00:00 UTC) | | 503 | out_of_stock | Faucet inventory low. Try later | | 503 | payments_unavailable | Payment processing temporarily down. Try later | | 429 | (no JSON body) | Rate limited: more than 60 requests/min from your IP to /drip/v1/*. Wait a minute | | 502 | delivery_pending | Paid but the devnet send failed. Retried automatically. If it hasn't arrived within 24 hours, send `payment_tx` to @0sumTX on X | ## Stats and health - GET /drip/v1/stats: drips, SOL sent, unique payers, inventory, slots taken, today's output vs cap, runway. - GET /drip/v1/health: liveness, inventory and payment status. ## Who runs this drip is built and run by @0sumTX (https://x.com/0sumTX). For problems, or a paid drip that never arrived, message @0sumTX on X with your `payment_tx`.