ShrineAPI

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.

pump.funbonding curve, mayhem mode
PumpSwapafter graduation
BonkRaydium LaunchLab
StonkFunRaydium LaunchLab
RaydiumCPMM and AMM v4
Meteorabonding curve and DAMM v2
BagsMeteora bonding curve
MoonshotMeteora bonding curve
Quoted coinspriced in USDC, a stock or a token

01How it works

Build, sign, send.

The API builds it, your machine signs it, the relay lands it. Your private key never leaves your script.

A buyJavaScriptfrom the docs
// 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 }),
});
  1. Only the public keyThe private key stays in your script.
  2. No pool to nameRouted to the active pool, through migrations.
  3. SOL in, or a share out"100%" sells everything.
  4. 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.

Jito bundles

Up to 5 trades, in order, or none.

Jito bundles

Multi-action transactions

Several wallets, one atomic transaction.

Multi-action

Create a token

A pump.fun launch with a dev buy.

Create token

Creator fee claims

Collect what your coins earned.

Claim creator fees

Wallet tools

Transfers, burns, wrapping and balances.

Wallet utilities

Coins paired with coins

Buy pump-paired coins with SOL.

Paired coins

03Local Trade API or Lightspeed

Two ways to send the same trade.

Sign it yourself, or let Lightspeed sign and race it.

On every plan

Local Trade API

  • You sign, the API sees only your public key
  • 0.25% on Free, 0% from Lite
  • Our relay or any RPC
Local Trade API docs
From Lite

Lightspeed

  • One request builds, signs and sends
  • About 50 ms on Developer, over 8 lanes
  • 0% trade fee
Lightspeed

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.

FreeLiteDeveloperProfessional
Trade fee0.25%0%0%0%
Local Trade API3 req/s3 req/s10 req/s15 req/s
Create token1 req/s3 req/s5 req/s10 req/s
Jito bundles–1 req/s10 req/s25 req/s
Multi-action transactions–3 req/s10 req/s25 req/s

Every limit, endpoint by endpoint, is in Plans and limits. Prices are on the pricing page.

05FAQ

Questions, answered.

Anything else is in the docs.

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.