When you copy a trader on Solana, you never get their price. You get the price a few hundred milliseconds later, after a bot has seen their trade, decided to follow it, built a swap, signed it and pushed it into a block. That gap is where most of the difference between their result and yours comes from.

This post walks through those steps, then gives you a small Python script that measures the gap on chain for any pair of transactions: how many slots later the copy landed, where it sat in its block, what it paid to get there and which route it took. I ran it on four test buys copied by three Telegram trading bots and show what came out.

Disclosure: I am the founder of copy.top, which tracks top traders on fomo, pumpfun and hyperliquid. The three bots below are not named on purpose: four trades are far too few to rank anyone, and the point is the method.

The five steps between their buy and yours

1. See the trade. The bot watches the leader's wallet. The slow way is a websocket subscription at the confirmed level followed by a getTransaction call to read what was bought, which costs a second or more before the bot even knows. The fast way is a Geyser stream (Yellowstone gRPC) at the processed level, which carries the whole transaction as soon as a validator has it. A copy that lands in the same block as the leader must have read the leader's transaction before that block was finished; you can't do that with the slow path.

2. Decide. Is this a buy or a sell, is the token on the user's allow list, is liquidity deep enough, how much to spend: a fixed amount, a share of the leader's size, or a share of what the user holds. This part is pure code and takes microseconds if the settings are already in memory, but a database read on every trade adds tens of milliseconds each time.

3. Build the swap. Either ask an aggregator like Jupiter for a route (one HTTP round trip, best price across pools) or call the pool's program directly (no round trip, but the bot has to know which pool the leader used). You can see which one a bot picked in the programs its transaction touched.

4. Sign. Most Telegram bots hold the key for your trading wallet, so signing is local and instant. Apps that keep keys in a remote wallet service pay a network round trip here.

5. Land. The transaction competes for a spot in a block. Two levers: the priority fee (a price per compute unit, paid to the validator) and a tip sent to a relay or block engine that forwards the transaction to the current leader (Jito, Helius Sender, Nozomi, Astralane and others each have their own tip accounts).

Measure it yourself

The script reads both transactions from the public Solana RPC, standard library only.

"""Measure what happened between a leader's Solana swap and a copy of it. usage: python3 copy_gap.py LEADER_SIG COPY_SIG [COPY_SIG ...] """ import json import sys import time import urllib.error import urllib.request RPC = "https://api.mainnet-beta.solana.com" JITO = "https://mainnet.block-engine.jito.wtf/api/v1/getTipAccounts" BASE_FEE = 5000 # lamports per signature USDC = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" NAMES = { "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4": "Jupiter v6", "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8": "Raydium AMM v4", "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P": "pump.fun", "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA": "PumpSwap", "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc": "Orca Whirlpool", "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo": "Meteora DLMM", } def post(url, body): req = urllib.request.Request( url, data=json.dumps(body).encode(), headers={"Content-Type": "application/json", "User-Agent": "copy-gap/0.1"}) for wait in (2, 5, 10, 20, None): try: with urllib.request.urlopen(req, timeout=30) as r: return json.load(r) except urllib.error.HTTPError as e: # the public RPC answers 429 when you go too fast if e.code != 429 or wait is None: raise time.sleep(wait) def rpc(method, params): out = post(RPC, {"jsonrpc": "2.0", "id": 1, "method": method, "params": params}) if "error" in out: raise RuntimeError(out["error"]) return out["result"] def tip_accounts(): out = post(JITO, {"jsonrpc": "2.0", "id": 1, "method": "getTipAccounts", "params": []}) return set(out.get("result", [])) def read(sig, tips): tx = rpc("getTransaction", [sig, {"encoding": "jsonParsed", "maxSupportedTransactionVersion": 1}]) msg, meta = tx["transaction"]["message"], tx["meta"] # some apps pay the fee from a second key, so keep every signer signers = {k["pubkey"] for k in msg["accountKeys"] if k["signer"]} n_sigs = len(tx["transaction"]["signatures"]) # where in the block did it land block = rpc("getBlock", [tx["slot"], {"transactionDetails": "signatures", "rewards": False, "maxSupportedTransactionVersion": 1}]) index = block["signatures"].index(sig) # SOL sent to a Jito tip account, anywhere in the transaction ixs = list(msg["instructions"]) for inner in meta.get("innerInstructions") or []: ixs += inner["instructions"] tip = sum(ix["parsed"]["info"]["lamports"] for ix in ixs if ix.get("program") == "system" and isinstance(ix.get("parsed"), dict) and ix["parsed"].get("type") == "transfer" and ix["parsed"]["info"]["destination"] in tips) programs = sorted({NAMES[ix["programId"]] for ix in ixs if ix.get("programId") in NAMES}) # tokens the signers received or gave, per mint def bal(rows): out = {} for r in rows or []: if r.get("owner") in signers: out[r["mint"]] = out.get(r["mint"], 0) + float(r["uiTokenAmount"]["uiAmount"] or 0) return out pre, post_ = bal(meta["preTokenBalances"]), bal(meta["postTokenBalances"]) tokens = {m: post_.get(m, 0) - pre.get(m, 0) for m in set(pre) | set(post_)} # SOL the signers spent or got, fees included keys = [k["pubkey"] for k in msg["accountKeys"]] sol = sum(meta["postBalances"][i] - meta["preBalances"][i] for i, k in enumerate(keys) if k in signers) / 1e9 return { "sol": sol, "slot": tx["slot"], "block_time": tx["blockTime"], "index": index, "block_size": len(block["signatures"]), "priority_fee": meta["fee"] - BASE_FEE * n_sigs, "jito_tip": tip, "programs": programs, "tokens": tokens, "ok": meta["err"] is None, } def main(leader_sig, copy_sigs): tips = tip_accounts() lead = read(leader_sig, tips) mint = max((m for m in lead["tokens"] if m != USDC), key=lambda m: abs(lead["tokens"][m])) print(f"leader slot {lead['slot']} position {lead['index']}/{lead['block_size']}" f" tokens {lead['tokens'][mint]:,.0f} sol {lead['sol']:+.4f}" f" usdc {lead['tokens'].get(USDC, 0):+.2f}") for sig in copy_sigs: c = read(sig, tips) got = c["tokens"].get(mint, 0) print(f"copy +{c['slot'] - lead['slot']} slots" f" position {c['index']}/{c['block_size']}" f" priority {c['priority_fee'] / 1e9:.6f} SOL" f" jito tip {c['jito_tip'] / 1e9:.6f} SOL" f" sol {c['sol']:+.4f} usdc {c['tokens'].get(USDC, 0):+.2f}" f" route {', '.join(c['programs']) or 'other'}" f" tokens {got:,.0f} ok {c['ok']}") if __name__ == "__main__": if len(sys.argv) < 3: sys.exit(__doc__) main(sys.argv[1], sys.argv[2:]) 

What each field means:

  • slots: how many slots after the leader the copy landed. 0 means the same block.
  • position: index of the transaction in its block, from getBlock. Order inside a block is not strictly arrival order, so read it as a hint.
  • priority: the fee above the 5,000 lamports base fee per signature.
  • jito tip: SOL sent to one of Jito's tip accounts, fetched live from Jito's getTipAccounts. Tips to other relays are not counted; add their accounts to the set if you know them.
  • sol / usdc: what the signers spent. The SOL figure includes fees, tips and any rent for a new token account.
  • route: the known swap programs the transaction called.

Run it with the leader's signature first, then one or more copies:

python3 copy_gap.py LEADER_SIG COPY_A_SIG COPY_B_SIG COPY_C_SIG 

What four test buys showed

In a test I ran on 17 November 2026, a leader wallet made four small buys ($10 to $20) and three bots copied each one with a small fixed amount. This is the output for the first buy, a $20 BONK purchase (the three copy lines are A, B and C, in the order of the arguments):

leader slot 470097226 position 428/661 tokens 8,481,700 sol -0.0015 usdc -20.00 copy +1 slots position 239/434 priority 0.000995 SOL jito tip 0.000000 SOL sol -0.0757 usdc +0.00 route Raydium AMM v4 tokens 2,139,515 ok True copy +2 slots position 117/500 priority 0.000006 SOL jito tip 0.000000 SOL sol -0.0722 usdc +0.00 route Jupiter v6 tokens 2,154,300 ok True copy +4 slots position 144/287 priority 0.000083 SOL jito tip 0.000000 SOL sol -0.0026 usdc -5.35 route Jupiter v6 tokens 2,162,700 ok True 

Across the four buys, all twelve copies succeeded:

slots after the leader priority fee route
A 1, 0, 1, 1 0.000995 SOL every time pool program directly (Raydium, Meteora)
B 2, 1, 2, 1 about 0.000006 SOL Jupiter
C 4, 2, 2, 3 0.000007 to 0.000402 SOL Jupiter

Three things stand out.

  • Same block is rare. One copy out of twelve landed in the leader's block, and it sat after the leader in that block (position 315 against 249).
  • The fastest bot skipped the aggregator and paid a fixed priority fee. A called the pool programs directly and paid more than 150 times B's priority fee. B, with an almost zero priority fee, still landed one or two slots after the leader.
  • No copy tipped Jito. That does not mean no tip: a bot can tip another relay, and this script only knows Jito's accounts.

On small sizes in liquid pools, one to three slots cost little: in the fourth buy, A and B got 1,187 tokens and C, three slots late, 1,172. Price per token is hard to compare across bots from the chain alone, because the amount a bot spends can include its own fee and a token account's rent, and the chain does not label which is which.

What this does not tell you

  • Four trades, one day, small copies. Bigger sizes, thin pools and busy blocks would change the picture.
  • Sells are another story. A copy sell that lands late can cost much more than a late buy on a coin that is dumping.
  • The chain shows when a copy landed, not when the bot saw the trade. Detection time is inferred from the slot and the position, not measured.
  • The public RPC is rate limited. The script retries on 429; for many pairs, use your own RPC endpoint.

If you are choosing a bot rather than measuring one, this comparison of Solana copy trading bots puts nine of them side by side.

Figures are data, not advice. Past performance does not predict results, and trading memecoins can lose money, including everything you put in.