Skip to content
ringbag

Public API, v1

Build on RINGBAG

Launch pump.fun coins, trade them and open Privacy Rings accounts from your own app or bot. No sign-up. You bring the RPC; we build the transactions; your wallet signs them.

Examples use $RINGBAG (this site's address) and $RPC (your mainnet RPC URL).

Bring your own RPC
Send a mainnet https RPC URL in the x-rpc-url header. We check it answers as mainnet, then use it for every chain read and simulation.
You sign, we don't
Every transaction comes back unsigned by you, base64 encoded. Deserialize it as a VersionedTransaction, sign, send. We never ask for a key.
Send quickly
Transactions use a recent blockhash. Send before lastValidBlockHeight (about a minute), or ask for a new one.
Errors
Every error is JSON: { error } with a 4xx or 5xx status. A transaction that fails simulation is an error, never returned.

GET/api/v1/tokens

Every coin launched on RINGBAG, newest first, with market cap and curve progress. Refreshed every few seconds.

Returns { tokens: Coin[] }

curl $RINGBAG/api/v1/tokens

GET/api/v1/tokens/:mint

One coin with its recent trades and top holders.

Returns { coin, trades, holders, payouts }

curl $RINGBAG/api/v1/tokens/<mint>

GET/api/stream

Server-Sent Events. Sends a `coins` event with the full list whenever it changes, so new launches reach you as they land.

Returns event: coins / data: Coin[]

curl -N $RINGBAG/api/stream

POST/api/v1/tokens/createneeds x-rpc-url

Builds a pump.fun launch. We store the image and metadata, build and simulate the transaction on your RPC, and sign it with the new coin address. You add the user's signature and send it.

POST /api/v1/tokens/create fields
usercreator wallet, signs and pays
name, symbol, descriptionthe coin's details
imagePNG, JPG, GIF or WebP file
pairSOL (default) or USDC
modecreator (default), public or private
devBuyoptional first buy, in the pair's currency, e.g. 0.5
mayhemtrue to turn on Mayhem mode
x, telegram, websiteoptional links

Returns { mint, transaction, lastValidBlockHeight, devBuyIncluded }

curl -X POST $RINGBAG/api/v1/tokens/create \
  -H "x-rpc-url: $RPC" \
  -F user=<wallet> -F name="Ring Cat" -F symbol=RCAT \
  -F description="It pays." -F image=@cat.png -F devBuy=0.1

POST/api/v1/tokens/register

Lists a coin on RINGBAG once its launch has confirmed. We check the transaction on-chain before listing it.

POST /api/v1/tokens/register fields
mintthe coin address from create
signaturethe confirmed launch signature

Returns { ok, mode }

curl -X POST $RINGBAG/api/v1/tokens/register \
  -H "content-type: application/json" \
  -d '{"mint":"<mint>","signature":"<sig>"}'

POST/api/v1/tradeneeds x-rpc-url

An unsigned buy or sell for any coin. It goes to the bonding curve, or to the PumpSwap pool once the coin has graduated.

POST /api/v1/trade fields
mint, userthe coin, and the wallet that trades
sidebuy or sell
amountinteger string in base units: lamports to spend on a buy, token units (6 decimals) on a sell
slippagePct0.1 to 50, default 5
speednormal, fast (default) or turbo priority fee

Returns { transaction, venue, expectedOut, minOut, lastValidBlockHeight }

curl -X POST $RINGBAG/api/v1/trade \
  -H "x-rpc-url: $RPC" -H "content-type: application/json" \
  -d '{"mint":"<mint>","user":"<wallet>","side":"buy","amount":"100000000"}'

GET/api/v1/creator/fees?wallet=needs x-rpc-url

Creator fees a wallet can claim, per quote token, in base units.

Returns { wallet, balances: { quoteMint, amount }[] }

curl "$RINGBAG/api/v1/creator/fees?wallet=<wallet>" -H "x-rpc-url: $RPC"

POST/api/v1/creator/claimneeds x-rpc-url

An unsigned transaction that collects all of a creator's fees.

POST /api/v1/creator/claim fields
walletthe creator wallet

Returns { transaction, lastValidBlockHeight }

curl -X POST $RINGBAG/api/v1/creator/claim \
  -H "x-rpc-url: $RPC" -H "content-type: application/json" \
  -d '{"wallet":"<wallet>"}'

POST/api/v1/private/registerneeds x-rpc-url

An unsigned Privacy Rings registration. It publishes a wallet's shielded address so others can pay it privately. Make the keys yourself with @heliuslabs/spr; only the public address is sent here.

POST /api/v1/private/register fields
ownerthe wallet that signs and pays
shieldedAddressShieldedAddress.toBytes(), as hex or base64

Returns { registered, transaction | null }

curl -X POST $RINGBAG/api/v1/private/register \
  -H "x-rpc-url: $RPC" -H "content-type: application/json" \
  -d '{"owner":"<wallet>","shieldedAddress":"<hex>"}'

GET/api/v1/private/status?owner=needs x-rpc-url

Whether a wallet already has a shielded address on-chain.

Returns { owner, registered }

curl "$RINGBAG/api/v1/private/status?owner=<wallet>" -H "x-rpc-url: $RPC"

What the API doesn't do

  • It runs on mainnet only. RPC URLs for any other network are refused.
  • RINGBAG is not audited. pump.fun and Privacy Rings are third-party programs.
  • It doesn't send transactions or hold funds. You do.
  • There are no API keys. Each address gets 120 requests a minute, 10 of them uploads; past that you get a 429 with Retry-After.
  • It doesn't make Privacy Rings keys for you. Generate them client-side with @heliuslabs/spr so they never leave your machine.