You don't need this website to trade here. Every cash.click coin lives on an open bonding-curve contract on Base. Any wallet, script, bot or AI agent can read prices, buy, sell and create coins with plain contract calls — no API key, no allowlist, no sign-up.
Updated 30 November 2026
8453. Coins are standard ERC-20 tokens with 18 decimals.minOut (the least you accept) and deadline (a Unix time). If either fails, the trade reverts.quoteBuy and quoteSell return exactly what a trade would give right now.| Curve | Address on Base | Pays with |
|---|---|---|
| Standard · ETH | 0xD9356C976cF17cbcAf3E761ACb39Bf631Df56A6E | ETH (or WETH) |
| Lab · ETH | 0x3Ad7459a211Ad16FACd40b144c89515c23B1beB1 | ETH (or WETH) |
| Standard · CA$H | 0xc093AdbCf90b39f67350B9f05d163d1136E80575 | CANDY CA$H |
| Lab · CA$H | 0x190ca8b94D5e6d364EC59c7ceeC558b01BC794B5 | CANDY CA$H |
All four run the same code. The source is verified on Sourcify (view). ABI as JSON: /assets/curve2.abi.json. WETH on Base is 0x4200000000000000000000000000000000000006, CANDY CA$H is 0x7313042D0F63830A1405A9d77e063559f3C03279.
The list of live coins, with the curve each one trades on, is public JSON (CORS open):
GET https://cash.click/api/v2/coins
GET https://cash.click/api/v2/coin?token=<token address>
{"coins":[{"token":"0x5afd9adfbd136ded4b0fa92f37c0b32706dd39f2","name":"Hero","symbol":"HERO",
"curve":"0xd9356c976cf17cbcaf3e761acb39bf631df56a6e","quote":"ETH","antiRug":true,
"graduated":false,"price":2.3e-8,"deposited":"2431529818141052",
"gradQuote":"4000000000000000000","progress":0.0006,"trades":11, ...}]}
Or read the chain directly: coinCount() and allCoins(i) on each curve, or follow the CoinCreated event. Always trade a coin on the curve named in its curve field.
function price(address token) view returns (uint256) // quote per token, scaled 1e18
function deposited(address token) view returns (uint256) // real money paid in so far
function quoteBuy(address token, uint256 amountIn) view
returns (uint256 tokens, uint256 spend, uint256 fee)
function quoteSell(address token, address seller, uint256 amount) view
returns (uint256 proceeds, uint256 tradeFee, uint256 rug)
quoteBuy returns the tokens you would get and how much of amountIn would actually be taken (spend). quoteSell is per seller, because on protected coins the result depends on when and at what price that wallet bought.
// with ETH (ETH curves) — send the ETH as msg.value
function buyWithEth(address token, uint256 minOut, address to, uint256 deadline) payable
returns (uint256 tokens)
// with the quote token (WETH or CA$H) — approve the curve first
function buy(address token, uint256 amountIn, uint256 minOut, address to, uint256 deadline)
returns (uint256 tokens)
to receives the tokens, so a router or agent wallet can buy for someone else. Example with Foundry's cast, buying HERO for 0.001 ETH with 2% slippage room:
CURVE=0xD9356C976cF17cbcAf3E761ACb39Bf631Df56A6E
TOKEN=0x5AFd9ADfBd136Ded4B0fA92f37c0b32706DD39f2
RPC=https://mainnet.base.org
# 1. quote (no gas): the first number is the tokens you would get
cast call $CURVE "quoteBuy(address,uint256)(uint256,uint256,uint256)" $TOKEN 1000000000000000 --rpc-url $RPC
# 2. buy: MIN_OUT = quoted tokens * 98 / 100, deadline = now + 5 minutes
cast send $CURVE "buyWithEth(address,uint256,address,uint256)" \
$TOKEN $MIN_OUT $MY_ADDRESS $(($(date +%s)+300)) \
--value 0.001ether --rpc-url $RPC --private-key $KEY
The same in JavaScript with viem:
import { createPublicClient, createWalletClient, http, parseEther } from "viem";
import { base } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";
const abi = await (await fetch("https://cash.click/assets/curve2.abi.json")).json();
const curve = "0xD9356C976cF17cbcAf3E761ACb39Bf631Df56A6E";
const token = "0x5AFd9ADfBd136Ded4B0fA92f37c0b32706DD39f2";
const account = privateKeyToAccount(process.env.KEY);
const pub = createPublicClient({ chain: base, transport: http() });
const wallet = createWalletClient({ account, chain: base, transport: http() });
const value = parseEther("0.001");
const [tokens] = await pub.readContract({ address: curve, abi, functionName: "quoteBuy", args: [token, value] });
const hash = await wallet.writeContract({
address: curve, abi, functionName: "buyWithEth", value,
args: [token, tokens * 98n / 100n, account.address, BigInt(Math.floor(Date.now() / 1000) + 300)],
});
If a buy would take a coin past its graduation threshold, only the part that fits is taken; the rest of the ETH comes back in the same transaction.
// approve the curve for `amount` first; sells the caller's own tokens
function sellForEth(address token, uint256 amount, uint256 minOut, address to, uint256 deadline)
returns (uint256 proceeds) // ETH curves, pays out ETH
function sell(address token, uint256 amount, uint256 minOut, address to, uint256 deadline)
returns (uint256 proceeds) // pays out WETH or CA$H
Call quoteSell(token, yourAddress, amount) first and set minOut from proceeds. On protected coins, selling at a large profit soon after buying costs extra and that money stays in the coin — quoteSell shows it as rug before you send anything. Selling at a loss costs nothing extra.
struct CreateParams {
string name;
string symbol;
bool antiRug; // true = protected coin, fixed at creation
uint16 feeBps; // standard curves: 125 · lab curves: 50, 100, 200 or 300
uint8 venue; // where it graduates to: 0 ClickSwap · 1 Uniswap v2
string uri; // metadata JSON (ERC-7572 contractURI), may be empty, max 256 bytes
}
function createCoin(CreateParams p) returns (address token)
function createAndBuyWithEth(CreateParams p, uint256 minOut, uint256 deadline) payable
returns (address token, uint256 tokens)
function createAndBuy(CreateParams p, uint256 amountIn, uint256 minOut, uint256 deadline)
returns (address token, uint256 tokens)
The caller becomes the coin's creator, for good — there is no way to change it later. An agent that creates coins for other people holds the creator role itself. New coins appear on the board and in /api/v2/coins once the transaction is indexed.
event CoinCreated(address indexed token, address indexed creator, string name, string symbol,
bool antiRug, uint16 feeBps, uint8 venue, address pool);
event Bought(address indexed token, address indexed buyer, address to,
uint256 spent, uint256 tokens, uint256 vQuote, uint256 vBase);
event Sold(address indexed token, address indexed seller, address to,
uint256 tokens, uint256 proceeds, uint256 rugFee, uint256 vQuote, uint256 vBase);
event Graduated(address indexed token, address indexed pool, uint8 venue,
uint256 deposited, uint256 poolTokens, uint256 houseTokens, uint256 burned);
The price after any trade is vQuote / vBase. A coin graduates when 4 ETH (or 70,000 CA$H) of real money is in its curve; the DEX pool opens inside that last buy, at the same price. After Graduated, the curve no longer trades the coin — trade it in the pool from the event.
| Error | Why | What to do |
|---|---|---|
SlippageExceeded | The price moved and you'd get less than minOut. | Quote again and resend. |
Expired | The block time is past deadline. | Use a deadline a few minutes ahead. |
BelowMinTrade | The buy is smaller than the curve's minTrade(). | Send more. On the ETH curves the minimum is 0.000001 ETH. |
NotTradeable | The coin has graduated. | Trade it in its DEX pool instead. |
NoSuchCoin | This token wasn't created on this curve. | Use the curve field from the coin list. |
BadRecipient | to is the zero address, the curve, the token or its pool. | Send to a wallet. |
Meme coins can go to zero. A bot loses money just as fast as a person — set limits before you let one trade.
Building something on top of this? Tell us in Discord.
The short version.
Yes. Call buyWithEth or buy on the coin's curve contract on Base. There is no allowlist and no API key, and smart-contract callers are not blocked.
No. Trading is a contract call on Base, so the only limits are the chain's. The coin list at /api/v2/coins is public JSON.
Call quoteBuy(token, amountIn) or quoteSell(token, seller, amount). Both are view functions and return what the trade would give at that moment.
Yes, with createCoin or createAndBuyWithEth. The calling wallet becomes the creator permanently.
When 4 ETH (or 70,000 CA$H) of real money is in the curve, liquidity moves to a DEX pool at the same price in the same transaction. From then on the coin trades in that pool, not on the curve.
Meme coins are risky and can lose all their value. Nothing on cash.click is financial advice. You sign every trade yourself in your own wallet.