Blind’s API, version 1
Build on Blind, with your own keys and your own RPC.
Everything the site does is an endpoint: create a token from a wallet nothing ties to yours, trade it, and open the private account that pays for it. Open to anyone, with nothing to sign up for.
https://www.turnblind.fun/api/v1- OpenNo key and no sign-up. Call it from a server, a script or a browser on another site. Each endpoint has a limit a minute for each address.
- Your own RPCEverything you sign goes out through your own RPC URL, and Privacy Rings calls run on your own Helius key. Blind never sees either.
- Your own keysThe API has no field for a private key. It hands you transactions to check and sign, and signs its own half only after you have.
The client
One file, three things it does.
curl -O https://www.turnblind.fun/sdk/pad.mjs \ -O https://www.turnblind.fun/sdk/pad.d.tsnpm i @heliuslabs/spr@0.9.0-alpha @solana/kit@8.6.0 \ @noble/curves@2.4.0 @noble/hashes@2.4.0import { createPad, sol } from "./pad.mjs";const pad = await createPad({ baseUrl: "https://www.turnblind.fun", // your own; a Helius URL for private accounts rpcUrl: process.env.RPC_URL, // base58, or the bytes of a keypair file secretKey: process.env.SECRET_KEY,});- 01
Open a private account
A private account is a balance inside Solana Privacy Rings, keyed by your wallet's own signature. Deposits and withdrawals are public; what moves inside is encrypted. It is what you pay the desk from.
Runs on your Helius key: the registration, the proofs and the balance are between you and Helius.
private account // once: registers this wallet with Privacy Ringsawait pad.account.open();// public, with its amount: 1 SOL goes inawait pad.account.deposit(sol(1));// 1000000000n, readable only with your keysawait pad.account.balance(); - 02
Create a token
Buy launch credit with a private payment, then spend it on a launch. The coin is created by a new wallet that the desk funds inside the launch itself, so nothing on chain connects it to the wallet you paid from.
The creator wallet and the coin's key are made from your wallet's signature. The same wallet always gets the same ones back, on the site or from a script.
create a token // a private payment to the desk, turned into vouchersawait pad.credit.buy(sol(0.3));const coin = await pad.launch({ name: "Quiet Coin", symbol: "QUIET", description: "Launched from a script.", picture: new Blob([await readFile("coin.png")], { type: "image/png" }), // the creator wallet's first buy devBuyLamports: sol(0.1),});// the coin's address, and its creator wallet to import or trade fromcoin.mint;pad.creatorWallet(coin.index); - 03
Trade
Blind prices the swap and builds it, on the curve or on PumpSwap once a coin has left it. Your wallet signs, and it lands through your RPC. Blind holds nothing and takes no fee.
A trade is signed by the wallet that makes it, like any other swap. Trade from a creator wallet with
wallet: coin.index.trade const quote = await pad.quote({ side: "buy", mint, amount: sol(0.05) });const { signature } = await pad.trade({ side: "buy", mint, // lamports in for a buy, coins in for a sell amount: sol(0.05), slippageBps: 300, speed: "fast",});
Reference
15 endpoints, all of them JSON.
/api/v1. Amounts are strings of the smallest unit: lamports of SOL, or a coin’s own. An error is always { code, error }.Blind
What Blind is running on and what has been launched through it. Nothing here needs a wallet.
GET/api/v1This API
The version, the network and every endpoint with its limit.
Answers
- versionstring
- The version in the address: v1.
- networkstring
- mainnet or devnet.
- endpointsarray
- Each endpoint's method, address and limit a minute.
curl https://www.turnblind.fun/api/v1GET/api/v1/configThe desk
Where to pay for credit, the keys vouchers are checked against, and Blind's prices and limits.
Answers
- readyboolean
- Whether the desk is taking payments and launches.
- deskstring
- The desk's wallet: the recipient of a private payment for credit.
- keyset{ id, keys }
- The desk's public key for each voucher value, to check its signatures with.
- unitLamportsstring
- What one unit of credit is worth, in lamports.
- launchFeeLamportsstring
- Blind's own fee for a launch.
- overheadLamportsstring
- What a launch costs on chain besides its first buy.
- maxDevBuyLamportsstring
- The largest first buy a launch may make.
- maxCreditLamportsstring
- The most credit one payment may buy.
curl https://www.turnblind.fun/api/v1/configGET/api/v1/launchesEvery launch
The coins launched through Blind, newest first, with their prices, and Blind's totals.
Answers
- coinsarray
- Each coin: its address, name, ticker, picture, market cap, volume, progress on its curve and when it landed.
- pairsarray
- The tokens those coins are priced in.
- statsobject
- How many launches have landed, how many wallets have bought credit, and how much credit has been sold and spent.
- atnumber
- When this was read, in milliseconds.
curl https://www.turnblind.fun/api/v1/launchesGET/api/v1/coins/{mint}One coin
A coin as the board has it, where it trades and what it costs. Only coins launched through Blind are listed.
In the address
- mintaddressrequired
- The coin's address.
Answers
- coinobject
- The coin as the board lists it, with its market cap, volume and progress on its curve.
- priceUsdnumber | null
- What one coin costs, in dollars.
- solUsdnumber | null
- What one SOL costs, in dollars.
- decimalsnumber
- The coin's decimals: six.
curl https://www.turnblind.fun/api/v1/coins/<mint>GET/api/v1/pairsPairs and settings
The tokens pump.fun lets a coin be paired with right now, and which launch settings it is accepting.
Answers
- pairsarray
- Each pair token: its address, ticker and what a coin priced in it may do.
- optionsobject
- Whether mayhem mode, holder rewards and a creator fee can be asked for.
curl https://www.turnblind.fun/api/v1/pairsTrades
A buy or a sell comes back as a transaction for your wallet to sign. You send it through your own RPC; Blind never holds it, signs it or takes a fee from it.
GET/api/v1/trades/quotePrice a trade
What a buy or a sell would give right now. Nothing is built or sent.
After the ?
- sidebuy | sellrequired
- Buy the coin with SOL, or sell it for SOL.
- mintaddressrequired
- The coin's address.
- amountstringrequired
- What goes in, in the smallest units: lamports for a buy, the coin's own units (six decimals) for a sell.
- slippageBpsnumber
- How far the price may move before the trade fails, in hundredths of a percent. 10 to 3000; 300 when left out.
Answers
- inAmountstring
- What goes in.
- outAmountstring
- What comes out at this price.
- minOutstring
- The least that can come out before the trade fails instead.
- priceImpactnumber
- How far the trade itself moves the price, as a fraction.
- routestring[]
- The markets it goes through.
curl "https://www.turnblind.fun/api/v1/trades/quote\?side=buy&mint=<mint>&amount=50000000"POST/api/v1/tradesBuild a trade
The same trade, priced now, as an unsigned transaction. Sign it with the wallet in owner and send it through your own RPC before its block height passes.
JSON body
- sidebuy | sellrequired
- Buy or sell.
- mintaddressrequired
- The coin's address.
- amountstringrequired
- What goes in, in the smallest units.
- owneraddressrequired
- The wallet that pays, signs and receives.
- slippageBpsnumber
- 10 to 3000; 300 when left out.
- speedstandard | fast | turbo
- How hard it bids for the next block. fast when left out.
Answers
- transactionbase64
- The unsigned transaction. Its only signer is
owner. - lastValidBlockHeightstring
- After this height it can no longer land.
- quoteobject
- The price it was built at.
curl -X POST https://www.turnblind.fun/api/v1/trades \ -H "content-type: application/json" \ -d '{"side":"buy","mint":"<mint>", "amount":"50000000","owner":"<your wallet>"}'Tokens
A launch is quoted, signed by a creator wallet and a coin key that only you hold, and paid for with launch credit. The desk pays the network, so nothing on chain leads back to you.
POST/api/v1/metadataStore a coin's picture
Stores the picture and pins the metadata a coin's on-chain record points at. Both uploads leave from Blind, so the stores see Blind and not you. Strip a photo's location data before sending it.
Multipart form
- filePNG, JPEG or WebPrequired
- The picture, under 4 MB.
- namestringrequired
- The coin's name, up to 32 characters.
- symbolstringrequired
- Its ticker, up to 10.
- descriptionstring
- Up to 1,000 characters.
- twitter, telegram, websitehttps URL
- Links shown with the coin.
Answers
- uriURL
- Where the metadata lives: what a launch is quoted with.
- imageURL | null
- Where the picture lives.
curl -X POST https://www.turnblind.fun/api/v1/metadata \ -F file=@coin.png \ -F name="Quiet Coin" -F symbol=QUIET \ -F description="Launched from a script."GET/api/v1/launches/estimateSize a first buy
How many coins a first buy would receive on a new curve, from pump.fun's current settings.
After the ?
- lamportsstringrequired
- The first buy, in lamports.
Answers
- tokensstring
- Coins received, in the coin's smallest units.
curl "https://www.turnblind.fun/api/v1/launches/estimate\?lamports=100000000"POST/api/v1/launches/quoteQuote a launch
The desk builds the launch, tries it against the chain and prices it. Nothing is stored and nothing is spent. Check the transaction before you sign it: its only signers are the desk, your creator wallet and your coin.
JSON body
- namestringrequired
- The coin's name.
- symbolstringrequired
- Its ticker.
- uriURLrequired
- The metadata address from /metadata.
- imageURL
- The picture's address from /metadata, for the board.
- descriptionstring
- Shown on the board.
- creatoraddressrequired
- A new wallet of yours, never used before. The desk funds it inside the launch.
- mintaddressrequired
- The coin's address: the public half of a key you made for it.
- devBuyLamportsstringrequired
- The first buy, made by the creator wallet. "0" for none.
- gasLamportsstringrequired
- Extra SOL left in the creator wallet for its later transactions. "0" for none.
- quoteMintaddress
- The pair token; SOL when left out.
- settings{ mayhem, holderRewards, creatorFeeBps }
- pump.fun's own settings; an ordinary coin when left out.
Answers
- idhex
- The SHA-256 of the transaction's message: the launch's name from here on.
- transactionbase64
- The unsigned launch.
- costUnitsnumber
- What it costs, in units of credit.
- breakdownobject
- Where that goes: first buy, rent, gas, network, Blind.
- lastValidBlockHeightstring
- After this height the quote is dead.
- meta, ticketobject, string
- Send both back unchanged: the ticket is how the desk knows its own quote.
curl -X POST https://www.turnblind.fun/api/v1/launches/quote \ -H "content-type: application/json" \ -d '{"name":"Quiet Coin","symbol":"QUIET", "uri":"<uri>","image":"<image>", "creator":"<new wallet>","mint":"<coin address>", "devBuyLamports":"100000000","gasLamports":"0"}'POST/api/v1/launchesLaunch
Send the quote back with the transaction signed by the creator and the coin, vouchers that cover the price, and blinded outputs for the change. The desk spends the vouchers, signs as fee payer and sends it.
JSON body
- quote{ id, costUnits, lastValidBlockHeight, meta, ticket }required
- From the quote, unchanged.
- transactionbase64required
- The quoted transaction with the creator's and the coin's signatures.
- inputs{ u, x, c }[]required
- Vouchers worth at least costUnits.
- outputs{ u, b }[]required
- Blinded points for the change: the vouchers' total less costUnits.
Answers
- idhex
- The launch.
- statuspending | landed | expired | failed
- Where it stands. Ask again while it is pending.
- signaturestring
- The transaction's signature.
- mintaddress
- The coin.
- change{ u, b, c, e, s }[]
- Once landed: your change, signed blind.
curl -X POST https://www.turnblind.fun/api/v1/launches \ -H "content-type: application/json" \ -d '{"quote":{"id":"<id>","costUnits":1234, "lastValidBlockHeight":"<height>", "meta":{},"ticket":"<ticket>"}, "transaction":"<signed by creator and coin>", "inputs":[{"u":1024,"x":"<secret>","c":"<signature>"}, {"u":256,"x":"<secret>","c":"<signature>"}], "outputs":[{"u":32,"b":"<blinded point>"}, {"u":8,"b":"<blinded point>"}, {"u":4,"b":"<blinded point>"}, {"u":2,"b":"<blinded point>"}]}'GET/api/v1/launches/{id}Follow a launch
Where a launch stands. Landed: the change is signed. Expired or failed: the vouchers are spendable again.
In the address
- idhexrequired
- The launch's id from its quote.
Answers
- statuspending | landed | expired | failed
- Where it stands.
- signature, mint, change
- As from the launch itself.
curl https://www.turnblind.fun/api/v1/launches/<id>Launch credit
A private payment to the desk becomes vouchers, signed blind: the desk cannot tell which vouchers it gave for which payment, so it cannot tell whose launch they pay for.
POST/api/v1/creditTurn a payment into credit
After a private payment of SOL to the desk inside Privacy Rings, ask for vouchers worth exactly what was paid. Answers 425 while the payment is still being indexed: ask again in a few seconds. The same request again returns the same vouchers.
JSON body
- signaturestringrequired
- The payment's transaction signature.
- payeraddressrequired
- The wallet that made it.
- outputs{ u, b }[]required
- Blinded points, one a voucher, whose values add up to the payment.
- claimbase64required
- The payer's signature over the claim message for these outputs, so nobody else can collect on your payment.
Answers
- signatures{ u, b, c, e, s }[]
- One blind signature an output, each with a proof it was made with the desk's published key.
curl -X POST https://www.turnblind.fun/api/v1/credit \ -H "content-type: application/json" \ -d '{"signature":"<payment signature>", "payer":"<your wallet>", "outputs":[{"u":2048,"b":"<blinded point>"}, {"u":512,"b":"<blinded point>"}], "claim":"<base64 signature>"}'POST/api/v1/credit/restoreRecover vouchers
The signatures the desk has already given for a list of blinded points: how a client that lost its state rebuilds its vouchers. Useless without the blinding factors, which never left you.
JSON body
- blindedhex[]required
- Up to 192 blinded points.
Answers
- signatures{ u, b, c, e, s }[]
- The ones the desk has signed.
curl -X POST https://www.turnblind.fun/api/v1/credit/restore \ -H "content-type: application/json" \ -d '{"blinded":["<blinded point>","<blinded point>"]}'POST/api/v1/credit/stateCheck vouchers
Which of a list of vouchers have been spent, by the point each one hashes to.
JSON body
- yshex[]required
- Up to 192 points, one a voucher.
Answers
- spenthex[]
- The ones that are spent.
curl -X POST https://www.turnblind.fun/api/v1/credit/state \ -H "content-type: application/json" \ -d '{"ys":["<point>","<point>"]}'Without the client
A launch, call by call.
- 01
Make the keys
Sign Blind's unlock message with your wallet. The signature is the root of everything else: your voucher secrets, and the creator wallet and coin key of each launch, by number.
On your side only.
- 02
Pay the desk privately
With Helius' Privacy Rings SDK and your own RPC URL: register, deposit, then send a private transfer of SOL to the desk's address. The chain shows that you paid, never how much.
GET /config for the desk's address.
- 03
Claim the credit
Split what you paid into powers of two, make one blinded point for each, and sign the claim message for them with the paying wallet. The desk signs each point blind; unblind them and check each against its published key.
POST /credit. 425 means the payment is still being indexed.
- 04
Quote the launch
Store the picture, then ask for a quote with the creator wallet's and the coin's addresses. Before signing, check the transaction: its signers are the desk, your creator and your coin, and the desk's wallet appears only in the transfer that funds the creator.
POST /metadata, then POST /launches/quote.
- 05
Launch and follow it
Send the signed transaction back with vouchers that cover the price and blinded points for the change. The desk spends the vouchers, signs as fee payer and sends. Ask until it lands, then unblind your change.
POST /launches, then GET /launches/{id}.
Errors and limits
One sentence, and a code to branch on.
- 400BAD_INPUT, BAD_AMOUNT
- The request could not be read, or a value is outside what Blind accepts.
- 401, 403BAD_CLAIM, NOT_YOURS
- A claim that the paying wallet did not sign, or a payment made by another wallet.
- 404, 405NOT_FOUND, NOT_LISTED, METHOD
- No such endpoint, launch or coin, or the wrong method for it.
- 409CLAIMED, WOULD_FAIL
- A payment already turned into credit, or a trade that would fail if it were sent.
- 422PAYMENT_FAILED, NOT_A_PAYMENT
- The chain says otherwise: the payment failed, or it is not a private payment of SOL to the desk.
- 425NOT_FOUND, NOT_INDEXED
- Too early. The payment has not confirmed or is not indexed yet: ask again in a few seconds.
- 429RATE_LIMITED
- Over the endpoint's limit. The Retry-After header says how many seconds to wait.
- 502, 503RPC, RING, PAUSED, DESK_DRY
- Solana or Privacy Rings did not answer, or the desk is paused or topping up. Nothing was spent.

