# drip.tools developer docs > Drip Tools (https://drip.tools) swaps real mainnet tokens for testnet funds — one way only. A swap is four steps against the public REST API at https://drip.tools/api (JSON over HTTPS, no auth): discover chains with GET /api/chains, get a backend-signed quote from POST /api/quote, make one payment on the FROM chain that carries the quoteId (a call to the depository contract on an EVM mainnet, or a transfer with the quoteId as memo / comment on Solana and TON), then track one order per recipient with GET /api/order until each is completed. Every link below is the Markdown version of a page; the same URL without `.md` is the HTML page. Amounts in quotes are base-unit integer strings, and a payment must match its quote exactly (same payer, same token, exactly `fromTotal`, before `deadline`) or it does not become an order. An agent that will make swaps itself should read [For agents](https://docs.drip.tools/guide/agents.md) first. ## Guide - [At a glance](https://docs.drip.tools/guide/cheatsheet.md): The whole Drip Tools swap API on one screen: the four calls, every endpoint, the minimums and rate limits, the payment rules, and what to do when something goes wrong. - [Introduction](https://docs.drip.tools/guide/introduction.md): How a Drip Tools swap works: a backend-signed quote, one on-chain payment that carries its quoteId, and one testnet order per recipient, plus pricing and the key concepts. - [Quick Start](https://docs.drip.tools/guide/quickstart.md): One runnable script in viem, ethers or web3.py that pays native ETH on Base and delivers 5 testnet ETH on Arbitrum Sepolia, then walks through it step by step. - [For agents](https://docs.drip.tools/guide/agents.md): The swap contract for an LLM agent or bot on one page: the fields that matter, every payment shape as JSON, 15 invariants, a polling policy and a complete viem recipe. - [Networks & pricing](https://docs.drip.tools/networks.md): Every testnet you can receive tokens on with its chain id, token, USD rate and what $1 buys, the mainnet chains and tokens you can pay with, and how a price is computed. ## Swapping programmatically - [The swap flow](https://docs.drip.tools/swap/flow.md): The four steps of a programmatic swap in depth: discover chains and tokens, request a signed quote, pay on-chain (native, ERC-20 approve or permit, multisend), track the orders. - [Depository contract (EVM)](https://docs.drip.tools/swap/contract.md): The DripToolsDepository contract on the EVM FROM chains: where to find it, its four pay functions, a minimal ABI, its reverts, and how to verify the EIP-712 quote signature. - [Paying from Solana & TON](https://docs.drip.tools/swap/memo.md): Paying a quote from Solana (SOL, or USDC/USDT plus an SPL Memo) or TON (a non-bounceable transfer with the quoteId as comment): the exact transaction shape, scripts, tracking. - [Examples](https://docs.drip.tools/swap/examples.md): Complete JavaScript and Python scripts for every way to pay: EVM native coin, ERC-20 approve or EIP-2612 permit, multisend, Solana SOL and SPL tokens, TON, signature checks. ## API reference - [Discovery](https://docs.drip.tools/api/discovery.md): API conventions (amounts, identities, chainId types, warm-up) plus GET /api/chains for chains, tokens and pay targets and GET /api/quotes for TO-token rates and liquidity. - [POST /api/quote](https://docs.drip.tools/api/quote.md): Reference for POST /api/quote: the request fields, the signed quote it returns, the pricing formula, the $1 and $5 minimums, the 180-second validity window, every error code. - [Prices](https://docs.drip.tools/api/prices.md): GET /api/prices and GET /api/prices/at: the live and historical Chainlink USD prices of the FROM tokens, and how a quote turns them into the amount you pay. - [Orders](https://docs.drip.tools/api/orders.md): Order tracking: GET /api/order by payment or order id (paginated for big batches), GET /api/orders history, POST /api/orders/status, GET /api/orders/load and the SSE stream. - [Rate limits](https://docs.drip.tools/api/rate-limits.md): The token-bucket limits on the public API (600 requests and 10 quotes a minute per IP, 30 quotes per sender), what a 429 looks like, and how to back off. ## Reference - [Order lifecycle & refunds](https://docs.drip.tools/reference/lifecycle.md): The rules a payment must meet to become orders, the order states, a multisend's aggregate status, when refunds are sent, and a polling loop that tracks orders to completion. - [Errors](https://docs.drip.tools/reference/errors.md): Every error the API, the depository contract and the order flow can return (quote codes, rate limits, contract reverts, held payments, refund reasons) and what to do about it. ## Legal - [Privacy Policy](https://docs.drip.tools/privacy-policy.md): What Drip Tools collects (wallet addresses only: no names, emails, IP addresses or cookies), what it uses them for, and how to ask for your data to be deleted. - [Terms Of Use](https://docs.drip.tools/terms-of-use.md): The Terms of Use of Drip Tools: who may use it, why mainnet-to-testnet swaps are final, prohibited use, risks, and how to contact the operator. ## Networks One page per testnet, generated from the live network list (2026-10-21): rates, what $1 buys, a prefilled app link, a ready quote request. - [0G Galileo Testnet tokens](https://docs.drip.tools/networks/0g-galileo-testnet.md): Buy test OG on 0G Galileo Testnet (chain id 16602) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per OG, minimum $1, delivered in seconds. - [Arbitrum Sepolia testnet tokens](https://docs.drip.tools/networks/arbitrum-sepolia.md): Buy test ETH, USDC on Arbitrum Sepolia (chain id 421614) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, $0.01 per USDC, minimum $1, delivered in seconds. - [Avalanche Fuji Testnet tokens](https://docs.drip.tools/networks/avalanche-fuji-testnet.md): Buy test AVAX on Avalanche Fuji Testnet (chain id 43113) with mainnet ETH, USDC, USDT, SOL or TON: $0.05 per AVAX, minimum $1, delivered in seconds. - [Base Sepolia testnet tokens](https://docs.drip.tools/networks/base-sepolia.md): Buy test ETH, USDC on Base Sepolia (chain id 84532) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, $0.01 per USDC, minimum $1, delivered in seconds. - [Berachain Bepolia testnet tokens](https://docs.drip.tools/networks/berachain-bepolia.md): Buy test BERA on Berachain Bepolia (chain id 80069) with mainnet ETH, USDC, USDT, SOL or TON: $0.025 per BERA, minimum $1, delivered in seconds. - [Bitcoin Signet testnet tokens](https://docs.drip.tools/networks/bitcoin-signet.md): Buy test BTC on Bitcoin Signet (chain id 38332) with mainnet ETH, USDC, USDT, SOL or TON: $10.00 per BTC, minimum $1, delivered in seconds. - [Bitcoin Testnet3 testnet tokens](https://docs.drip.tools/networks/bitcoin-testnet3.md): Buy test BTC on Bitcoin Testnet3 (chain id 18332) with mainnet ETH, USDC, USDT, SOL or TON: $10.00 per BTC, minimum $1, delivered in seconds. - [Bitcoin Testnet4 testnet tokens](https://docs.drip.tools/networks/bitcoin-testnet4.md): Buy test BTC on Bitcoin Testnet4 (chain id 48332) with mainnet ETH, USDC, USDT, SOL or TON: $10.00 per BTC, minimum $1, delivered in seconds. - [BNB Smart Chain Testnet tokens](https://docs.drip.tools/networks/bsc-testnet.md): Buy test BNB on BNB Smart Chain Testnet (chain id 97) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per BNB, minimum $1, delivered in seconds. - [Citrea Testnet tokens](https://docs.drip.tools/networks/citrea-testnet.md): Buy test cBTC on Citrea Testnet (chain id 5115) with mainnet ETH, USDC, USDT, SOL or TON: $10.00 per cBTC, minimum $1, delivered in seconds. - [Ethereum Hoodi testnet tokens](https://docs.drip.tools/networks/ethereum-hoodi.md): Buy test ETH on Ethereum Hoodi (chain id 560048) with mainnet ETH, USDC, USDT, SOL or TON: $0.1 per ETH, minimum $1, delivered in seconds. - [Ethereum Sepolia testnet tokens](https://docs.drip.tools/networks/ethereum-sepolia.md): Buy test ETH, USDC on Ethereum Sepolia (chain id 11155111) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, $0.01 per USDC, minimum $1, delivered in seconds. - [Fluent Testnet tokens](https://docs.drip.tools/networks/fluent-testnet.md): Buy test ETH on Fluent Testnet (chain id 20994) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Gensyn Testnet tokens](https://docs.drip.tools/networks/gensyn-testnet.md): Buy test ETH on Gensyn Testnet (chain id 685685) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Giwa Sepolia testnet tokens](https://docs.drip.tools/networks/giwa-sepolia.md): Buy test ETH on Giwa Sepolia (chain id 91342) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Humanity Testnet tokens](https://docs.drip.tools/networks/humanity-testnet.md): Buy test tHP on Humanity Testnet (chain id 7080969) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per tHP, minimum $1, delivered in seconds. - [Irys Testnet tokens](https://docs.drip.tools/networks/irys-testnet.md): Buy test IRYS on Irys Testnet (chain id 1270) with mainnet ETH, USDC, USDT, SOL or TON: $0.05 per IRYS, minimum $1, delivered in seconds. - [KiteAI Testnet tokens](https://docs.drip.tools/networks/kiteai-testnet.md): Buy test KITE on KiteAI Testnet (chain id 2368) with mainnet ETH, USDC, USDT, SOL or TON: $0.1 per KITE, minimum $1, delivered in seconds. - [MegaETH Testnet v2 testnet tokens](https://docs.drip.tools/networks/megaeth-testnet-v2.md): Buy test ETH on MegaETH Testnet v2 (chain id 6343) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Monad Testnet tokens](https://docs.drip.tools/networks/monad-testnet.md): Buy test MON on Monad Testnet (chain id 10143) with mainnet ETH, USDC, USDT, SOL or TON: $0.005 per MON, minimum $1, delivered in seconds. - [Neura Testnet tokens](https://docs.drip.tools/networks/neura-testnet.md): Buy test ANKR on Neura Testnet (chain id 267) with mainnet ETH, USDC, USDT, SOL or TON: $0.025 per ANKR, minimum $1, delivered in seconds. - [OPN Testnet tokens](https://docs.drip.tools/networks/opn-testnet.md): Buy test OPN on OPN Testnet (chain id 984) with mainnet ETH, USDC, USDT, SOL or TON: $0.01 per OPN, minimum $1, delivered in seconds. - [Optimism Sepolia testnet tokens](https://docs.drip.tools/networks/optimism-sepolia.md): Buy test ETH on Optimism Sepolia (chain id 11155420) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Pharos Atlantic Testnet tokens](https://docs.drip.tools/networks/pharos-atlantic-testnet.md): Buy test PHRS on Pharos Atlantic Testnet (chain id 688689) with mainnet ETH, USDC, USDT, SOL or TON: $0.5 per PHRS, minimum $1, delivered in seconds. - [Polygon Amoy Testnet tokens](https://docs.drip.tools/networks/polygon-amoy-testnet.md): Buy test POL on Polygon Amoy Testnet (chain id 80002) with mainnet ETH, USDC, USDT, SOL or TON: $0.05 per POL, minimum $1, delivered in seconds. - [Rise Testnet tokens](https://docs.drip.tools/networks/rise-testnet.md): Buy test ETH on Rise Testnet (chain id 11155931) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Robinhood Testnet tokens](https://docs.drip.tools/networks/robinhood-testnet.md): Buy test ETH on Robinhood Testnet (chain id 46630) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per ETH, minimum $1, delivered in seconds. - [Solana Devnet testnet tokens](https://docs.drip.tools/networks/solana-devnet.md): Buy test SOL on Solana Devnet (chain id 1399811151) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per SOL, minimum $1, delivered in seconds. - [Solana Testnet tokens](https://docs.drip.tools/networks/solana-testnet.md): Buy test SOL on Solana Testnet (chain id 1399811150) with mainnet ETH, USDC, USDT, SOL or TON: $0.25 per SOL, minimum $1, delivered in seconds. - [Somnia Shannon Testnet tokens](https://docs.drip.tools/networks/somnia-shannon-testnet.md): Buy test STT on Somnia Shannon Testnet (chain id 50312) with mainnet ETH, USDC, USDT, SOL or TON: $0.05 per STT, minimum $1, delivered in seconds. - [Stable Testnet tokens](https://docs.drip.tools/networks/stable-testnet.md): Buy test gUSDT on Stable Testnet (chain id 2201) with mainnet ETH, USDC, USDT, SOL or TON: $0.5 per gUSDT, minimum $1, delivered in seconds. - [Story Aeneid Testnet tokens](https://docs.drip.tools/networks/story-aeneid-testnet.md): Buy test IP on Story Aeneid Testnet (chain id 1315) with mainnet ETH, USDC, USDT, SOL or TON: $0.05 per IP, minimum $1, delivered in seconds. - [TON Testnet tokens](https://docs.drip.tools/networks/ton-testnet.md): Buy test GRAM on TON Testnet (chain id 1667471769) with mainnet ETH, USDC, USDT, SOL or TON: $0.05 per GRAM, minimum $1, delivered in seconds. ## Optional - [Full text](https://docs.drip.tools/llms-full.txt): every page above in one plain-text file (about 243 KB), in sidebar order. - [OpenAPI spec](https://docs.drip.tools/openapi.json): the public REST API at https://drip.tools/api as an OpenAPI 3.1 document. - [Example scripts](https://docs.drip.tools/swap/examples.md): the examples/ directory, inlined in full on this page: JavaScript (viem, ethers, @solana/web3.js, @solana/spl-token, @ton/ton, TON Connect) and Python (web3.py, solana-py, pytoniq) scripts for EVM native, ERC-20 approve and permit, multisend, Solana SOL and SPL, TON, and quote-signature verification; each one runs discover → quote → pay → track, and `DRY_RUN=1` builds the payment without sending it. - [Home](https://docs.drip.tools/index.md): Drip Tools swaps real mainnet tokens for testnet funds on EVM, Solana, TON and Bitcoin testnets, from the web app or programmatically over a public REST API.