Trading API
One request.
Any launchpad.
Send a token and an amount. The API finds its pool, follows it through migrations and hands back a transaction your wallet signs.
On every plan: 0.25% per trade on Free, 0% from Lite.
StonkFunRaydium LaunchLab
BagsMeteora bonding curve
MoonshotMeteora bonding curve01How it works
Build, sign, send.
The API builds it, your machine signs it, the relay lands it. Your private key never leaves your script.
// 1. Ask for an unsigned transaction.
const res = await fetch("https://sol.shrine.trade/api/local-trade", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
action: "buy",
publicKey: wallet.publicKey.toBase58(),
mint: "<token mint>",
amount: 0.01, // SOL in on a buy
slippage: 10, // percent
priorityFee: 0.0001,
}),
});
const { tx } = await res.json();
// 2. Sign it here. The key never leaves this script.
const t = VersionedTransaction.deserialize(Buffer.from(tx, "base64"));
t.sign([wallet]);
// 3. Send it through the relay. No RPC needed.
const signedTx = Buffer.from(t.serialize()).toString("base64");
await fetch("https://sol.shrine.trade/api/send", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ signedTx }),
});
- Only the public keyThe private key stays in your script.
- No pool to nameRouted to the active pool, through migrations.
- SOL in, or a share out
"100%"sells everything. - The relayWaits for it to land, no RPC of yours.
02Beyond a single trade
Everything a trading bot sends.
Every transaction a bot needs, signed by you like a trade.
03Local Trade API or Lightspeed
Two ways to send the same trade.
Sign it yourself, or let Lightspeed sign and race it.
Local Trade API
- You sign, the API sees only your public key
- 0.25% on Free, 0% from Lite
- Our relay or any RPC
Lightspeed
- One request builds, signs and sends
- About 50 ms on Developer, over 8 lanes
- 0% trade fee
04Plans
Free to trade. 0% from $25.
No key and no account on Free. On a paid plan, send your key in the x-api-key header and the same request trades at 0%, with higher limits.
| Free | Lite | Developer | Professional | |
|---|---|---|---|---|
| Trade fee | 0.25% | 0% | 0% | 0% |
| Local Trade API | 3 req/s | 3 req/s | 10 req/s | 15 req/s |
| Create token | 1 req/s | 3 req/s | 5 req/s | 10 req/s |
| Jito bundles | – | 1 req/s | 10 req/s | 25 req/s |
| Multi-action transactions | – | 3 req/s | 10 req/s | 25 req/s |
Every limit, endpoint by endpoint, is in Plans and limits. Prices are on the pricing page.
Do I need an API key?
No. On the Free plan the trade endpoint works without a key or an account, at 0.25% per trade. With a Lite, Developer or Professional plan, send your key in the x-api-key header and the same request trades at 0%, with higher limits.
Does my private key leave my machine?
No. The API only gets your public key and hands back an unsigned transaction. Your script signs it and sends it, through our relay or your own RPC.
What happens when a pump.fun coin graduates?
The same request keeps working. The API follows each coin to wherever it trades now, so a buy goes to the bonding curve before graduation and to the PumpSwap pool after it. How the bonding curve works.
Can I trade coins that are not priced in SOL?
Yes. Coins priced in USDC, a stock or another token are traded in that quote, or with SOL if you pass settle: "sol", which swaps through the quote's own pool in the same transaction.
Free to start, with no key. 0% trade fee from $25 a month.