r/solanadev • • 4d ago

Welcome to r/solanadev — please read before posting

2 Upvotes

This subreddit is for developers building on Solana: development questions, tutorials, tools, program (smart contract) development, infrastructure, and technical discussion of projects.

Please follow the community rules (in the sidebar). The short version:

  • Be respectful

  • Stay on topic: Solana development

  • No shilling, spam, or scams — no token promotion, airdrops, or presales

  • No price or trading discussion

  • Put effort into questions: include code, error messages, and what you tried

  • If a post is about your own project or company, disclose that and keep it technical

Useful resources:

Safety: never share your seed phrase or private keys with anyone, and no moderator will ever DM you asking for them. Report posts that ask.

Welcome — show us what you are building.


r/solanadev • • 4h ago

Je cherche un projet de développement logiciel sur le Web3

2 Upvotes

Salut. Je suis nouveau en Web3 mais je dois participer à un Hackathon sur le Web3 avec Solana, je suis à la recherche d'idées de projet en équipe. J'aimerais bien m'intégrer dans le domaine.


r/solanadev • • 6h ago

A fast way into Solana on-chain analytics: a clean pump.fun memecoin dataset and a Kaggle competition to practice on

Post image
1 Upvotes

Getting into on-chain analytics usually starts with weeks of plumbing: RPC limits, decoding instructions, failed transactions, ordering inside a slot. Most people give up before they ever look at the data.

I host a Kaggle competition whose dataset skips that part. Every bonding-curve trade of pump.fun tokens that migrated to PumpSwap since 2026-08-21 is already parsed into flat files: wallet, direction, amounts, reserves, slot and position in the slot, plus the migration events and the first minute of pool trades. Updated daily. You open it in pandas and start asking questions.

What you can learn by playing with it:
- how a bonding curve actually behaves trade by trade, and how price follows from reserves;
- how to build wallet-level features (who bought early, how concentrated, how fast);
- how to test an idea honestly: the competition scores your rule as PnL on new memecoins every day, so hindsight doesn't count.

Starter notebooks walk through the data step by step. Search Kaggle for "Memecoins: Pump or Dump? Predict Pump.fun Launches on Solana". $5,000 in prizes if you want to compete, freeze on December 1.

Happy to answer any questions


r/solanadev • • 23h ago

Dev Building a Solana project with an LLM

5 Upvotes

A developer at Serokell used an LLM agent to build a Solana smart contract project, including the tests and deployment scripts. My colleague Kostya Ivanov reviewed the finished code without seeing the prompts.

A few tests looked reasonable until he traced what they actually called. They ran simplified copies of the functions they were supposed to test, so they could pass even if the real implementation was broken. What worked better was deciding what each test should verify before asking the agent to write it.

Kostya’s write-up: Building a Solana project with an LLM


r/solanadev • • 2d ago

Dev No backend Solana wallet (need help naming it)

Thumbnail gallery
4 Upvotes

r/solanadev • • 3d ago

Two traps when scoring Solana tokens from RPC data: the AMM pool vault looks like a whale, and Jupiter’s priceImpactPct is a fraction

3 Upvotes

I build a pre-trade risk API and shipped both of these bugs. They seem common, so here’s what I learned.

1. getTokenLargestAccounts counts pool vaults as holders. It ranks token accounts, not owners. On a graduated pump.fun token I checked today, the largest account held 88% of supply. It was the PumpSwap pool vault, and my checker blocked the token as “one wallet holds the majority”. The real top 10 wallets held 6%.

Fix: getMultipleAccounts on the top accounts (jsonParsed) to get each owner, then getMultipleAccounts on the owners to get the program that owns them. Exclude owners owned by known AMM / bonding-curve programs (PumpSwap, pump.fun, Raydium, Orca, Meteora) plus known vault-authority PDAs. Don’t exclude every program-owned account: lock and vesting contracts should still count. Keep total supply as the denominator; measuring against non-pool supply inflates every holder on a fresh token.

2. Jupiter’s priceImpactPct is a fraction. 0.146 = 14.6%. I compared it to 5 for months, so the check never fired. A $1 quote is useless anyway: it proves a route exists, not depth. The same token quoted fine at $1, but a $500 buy moved the price 14.6% and $5,000 moved it 66%.

Bonus: Token-2022 extensions (permanent delegate, transfer hook, transfer fee, default-frozen accounts, pausable) are worth decoding from the raw mint bytes. Most pump.fun Token-2022 mints only carry metadataPointer + tokenMetadata.

Disclosure: I built pretrade (the API these fixes went into). There’s a small MIT example showing the pre-buy gate pattern in Python and TS: https://github.com/mapizarro1/pretrade-solana-bot-example

What else do you check before trusting top-holder numbers? CEX wallets and burn addresses are the next ones on my list.


r/solanadev • • 4d ago

Signing a Solana transaction now and sending it later, with a durable nonce

4 Upvotes

Hey everyone,

I’ve been digging into Solana’s durable nonces and put together a walkthrough with code you can run. One thing I found pretty cool is that you can sign a transaction offline and send it hours later, even after a regular blockhash would have expired.

For example, if someone on your team won’t be online until later today, you can build the transaction now and give them time to sign it. You put the value from a nonce account in the transaction’s blockhash field. The first instruction advances that nonce so the same signed transaction can’t be used again.

Here’s the part that surprised me. If the transaction is processed and a later instruction fails, the nonce still advances. Before retrying, read the nonce account. If the value changed, you’ll need to rebuild the transaction and sign it again.

The walkthrough shows what’s stored in the nonce account, what the offline signer signs, and how to try the whole thing yourself. Read it on Substack.


r/solanadev • • 4d ago

[Notice] agent-security-gate-x402: 7-Day Transition to Thin Client (v3.0.0) for Solana Agent Guards & Legacy PyPI Yank (Nov 20 – Nov 27)

3 Upvotes

Hi r/solanadev,

Over the past few weeks, builders have been testing `agent-security-gate-x402` (`v2.2.1`) for pre-sign guardrails on **Solana Mainnet (`0.4s` SPL-USDC x402 streaming, Squads v4 sub-vaults, and Anchor CPI verification)**.

Today (**Nov 20, 2026**), we’re starting a **7-day transition window** to shift from the heavy local package to **`v3.0.0` (Cloud-Native Thin Client & Remote Gateway)**:

### Why the shift?

  1. **Real-Time <5ms Guardrails:** Prompt injections, secret leaks, and dangerous AST payloads move too fast for static local PyPI releases. Routing through our Cloud Gateway ensures every Solana agent pre-sign check uses the latest threat rules.

  2. **Lightweight Thin Client:** `v3.0.0` drops heavy server dependencies (`fastapi`, `uvicorn`, etc.) and proxies cleanly via `httpx` + `mcp` to our Cloud Run gateway.

### 7-Day Schedule (Nov 20 – Nov 27, 2026)

* **Nov 20 (Day 1):** Official transition notice published.

* **Nov 21–23 (Days 2–4):** Remote Gateway & `v3.0.0` Thin Client verification.

* **Nov 24–25 (Days 5–6):** `v3.0.0` Thin Client released on PyPI; migration window.

* **Nov 27 (Day 7):** Legacy monolithic PyPI versions (`<= v2.2.1`) **yanked on PyPI**.

No downtime during the transition—existing setups keep running while you upgrade next week (`pip install -U agent-security-gate-x402`).

🌐 Gateway: `https://agent-security-gate-x402-212942243360.asia-northeast3.run.app` (`/docs`, `/llms.txt`, `/.well-known/agent-card.json`)


r/solanadev • • 4d ago

NOCtura Wallet - Update

Post image
3 Upvotes

r/solanadev • • 4d ago

Carbium Services: We put mainnet Yellowstone gRPC on our $20 plan. Here’s what you get.

3 Upvotes

r/solanadev • • 5d ago

jitoSOL has one job, one yield. I tried to give it a second one during Colosseum, so it can make you more money.

Thumbnail reddit.com
3 Upvotes

r/solanadev • • 5d ago

I am building a group for devs on Solana

7 Upvotes

I have noticed in this space a big problem a lot of us have is that devs have a hard time finding eachother and coordinating on projects which limits effectiveness and I am wondering what if we come together to start making things. I got a small discord server 15 members total at the moment with one programmer who is working on an anti sniper tool. While I work on coin devving and liquidity pools and how to structure the coin projects. But I am looking for more members.


r/solanadev • • 8d ago

Dev Built a weekly draw on Solana as a side project, would love some eyes on the program design

4 Upvotes

Hey, I’ve been working on this for a while and it just went live on mainnet, so I figured this is the right place to get honest feedback before more people use it.

It’s a weekly draw. You buy a ticket for 1 USDC, each ticket is a 5 character code, and on Friday the winning code is picked with ORAO VRF. If nobody hits it, the pot rolls over to the next week. The split (60% prize, the rest to projects/ops/reserves) is calculated in the program, and winners claim their prize automaticly.

The part I’m least sure about is the randomness. When sales close, the request seed is built using a slot hash from after the close, so in theory nobody can know it while tickets are still being sold. There’s also a reroll in case ORAO never answers, but it only works if the current request hasn’t been fulfilled yet. I think that’s enough to stop anyone (me included) from picking a result, but I’d really like someone to try and poke holes in it.

Other things I went back and forth on: tickets are stored in paged PDAs and the pages get closed after the draw to get the rent back. Not sure if that holds up if a round gets big, or if I should’ve gone with zero-copy or compression from the start. Close, reveal, settle and finalize are all permissionless, and my bot just calls them on time.

There are also supporter NFTs (Metaplex Core) with a small resale market built into the program. It uses a listing PDA and a TransferV1 CPI, no escrow and no fee. It works fine in my tests, but a second opinion would help.

The frontend is a pixel art, game style thing with Phantom, because I wanted it to feel less like a typical crypto site, also made a "non-Gaming view" if people don't like the pixel art game style , it uses a "card" system but with the same "art" .

Site: https://chaindraw.app
Program: 5TUpP4hsu5Tnu6wrEh9iSbkkNLpdJHLDefYmqPWRr4ES

Any feedback is welcome, including “contructive” & "non-constructive".


r/solanadev • • 8d ago

From a Community Idea to Real-World Impact

Thumbnail reddit.com
3 Upvotes

r/solanadev • • 8d ago

Welcome to ZUNO — Bring a cause. We build the launch.

Thumbnail reddit.com
3 Upvotes

r/solanadev • • 8d ago

Solana RPC, WebSocket and gRPC on one API key, gRPC on mainnet from $20 a month: Carbium services is live

5 Upvotes

r/solanadev • • 9d ago

How do you consistently land position 1 right behind a pump.fun creator bundle? (BAM rounds, bids, fan-out – our data inside)

5 Upvotes

Hi all,

I'm an independent dev running a small pump.fun sniper from Frankfurt and I'm stuck on one specific problem: landing at position 1 directly behind the creator's bundle in slot 0. Our data says position 1 is where almost all the edge is – positions 2+ or slot +1 are break-even or negative after fees. Sharing our measurements in case they're useful, and hoping someone has solved this.

Setup

- Detection: Helius preprocessed + BAM preconf, Corvus aRPC, Yellowstone gRPC. We see creates ~1 ms before other feeds.

- Tx is built and signed ~0.15 ms after detection (official pump SDK, tight CU limit).

- Same signed tx fanned out to ~14 endpoints (Jito FRA, Helius Sender, Nozomi, bloXroute, Astralane, 0slot, Falcon, own TPU client).

- Bid so far: low (~0.006 SOL prio+tip). Competitors on the same coins typically bid 0.04–0.18 SOL, max seen 0.7 SOL tip.

What we measured (109 real buys + all pump trades over several days)

- Position-1 rate: only ~5–14%.

- Median landing after create: BAM ~27 ms (fastest competitor ~24 ms), Harmonic ~60 ms (vs ~36 ms), Agave-Jito ~53 ms (vs ~30 ms).

- BAM and Harmonic order mostly by bid within an auction round (rank correlation −0.65 / −0.58). Highest bidder gets pos 1 in ~79% (BAM) / ~63% (Harmonic).

- But 25–50% of bots ahead of us bid *less* than we did → they arrived a round earlier (BAM ~20 ms, Harmonic ~50 ms rounds).

- A leader's first slot starts 45–95 ms late and is visibly shorter (~130–140 ms of tx flow vs ~175 ms). On Harmonic first-window slots we almost always slip to slot +1.

- Our fan-out is currently sequential in code: the last endpoint gets the tx ~1.9 ms after the first. Fixing that now.

What works

- Single-tx bundles (tip inside the tx) with a tight min-tokens-out: if someone is ahead, the tx fails, the bundle is dropped and costs nothing. We verified this on Jito FRA (sendBundle / bundleOnly), Nozomi sendBundle and Helius Sender sendBundle, even without a UUID. So "position 1 or nothing" is possible and we can bid higher, paying only when we win.

Questions

  1. What actually got you into the *first* BAM/Harmonic round after the create bundle more reliably? Specific endpoints, leader-aware routing, BAM DBI/QUIC (applied, waiting), co-location, something else?

  2. Is the bundle path (Jito/Nozomi/Sender) measurably slower than a plain tx into the first BAM round? Any numbers?

  3. Has anyone seen validator-side penalties for the same signature arriving via many relays, or is that a myth?

  4. Any public data on how BAM round boundaries line up with slot start, so you can predict whether you'll make round 1?

Happy to share more numbers in the thread. Thanks!


r/solanadev • • 10d ago

Built a minimal Rust RPC failover prototype for Solana (RpcRouter) — looking for feedback on failure modes

5 Upvotes

Hello everyone! I built a lightweight, async Rust prototype (RpcRouter) that wraps a primary and backup RpcClient and automatically switches to the backup node if the primary fails or times out.

Repo: link to my project

Right now, it's an early proof-of-concept with three simulated test scenarios (healthy primary, primary failure with backup recovery, and full outage) using get_slot().
Before I expand this into a full crate, I'd love input from anyone running Solana bots or Rust backends in production:Any architectural feedback on the repo is appreciated!


r/solanadev • • 11d ago

Blog Solana off-chain signing: inspect the bytes, then reject a replay

3 Upvotes

I wrote a walkthrough of off-chain message signing in Solana, starting with the CLI and ending with a small one-time sign-in example.

One useful detail: the CLI signs an envelope around the text. Verifying only the visible text fails, even with the correct public key and signature. The article reconstructs that envelope in Python and checks it against the actual CLI signature.

Then we reuse the original proof. It still verifies, because signature verification has no record of whether the application already accepted it.

The sign-in example adds a stored challenge, checks its context and expiration, and consumes it after successful verification. It demonstrates replay rejection locally; it isn’t a complete production wallet or HTTP-session implementation.

Full article, commands and output: https://andreyobruchkov1996.substack.com/p/solana-off-chain-messages-from-raw


r/solanadev • • 11d ago

Dev Reading SOL and SPL balances with one RPC call: how do you show stale data?

2 Upvotes

I’m building Crypto Million, a public wallet dashboard, and would like feedback on the Solana read path. For the project’s wallet, one getMultipleAccounts call at confirmed commitment reads the SOL account and the known USDC and USDT token accounts. I check the owner and mint before counting a token balance. A missing known token account is zero; a failed RPC request is an unknown balance.

For the combined USD estimate, a failed network read or a missing price for a nonzero balance leaves the last complete total on screen and marks it stale. This avoids showing a sudden drop just because a provider timed out, but it can hide which network is holding up the refresh.

If you build or use Solana dashboards, would you keep the last complete total with a per-network freshness label, or show a clearly labeled partial total? You can see the wallet and its Solscan link in the demo by choosing Solana: https://crypto-million.pages.dev/#networks. You can inspect it without connecting a wallet or making a transfer.


r/solanadev • • 12d ago

Free MCP server

3 Upvotes

Free MCP server for Web3 data.

Give your AI assistant access to 27 tools covering live TVL, DeFi yields, token unlocks, DAO treasuries, funding rounds, and more.

No API keys. No subscriptions. Just connect and explore.

Works with Claude, ChatGPT, Cursor and more.

https://alphagrowth.io/mcp


r/solanadev • • 14d ago

Dev We made getSupply method ~50× faster (1s → 10–20 ms) at Chainstack

3 Upvotes

The problem existed because of how the getSupply method is answered. For every call, the node had to scan about 1.4M stake accounts. That took about 1s on a good day and up to 30s on a busy node. This is also why many providers rate limit the method hard or disable it.

getSupply returns the SOL supply picture in one call:

  • total: all lamports in existence

  • circulating: lamports that are circulating

  • nonCirculating: lamports that are locked

  • nonCirculatingAccounts: the list of accounts holding the locked part

curl -X POST YOUR_ENDPOINT \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSupply","params":[{"commitment":"finalized","excludeNonCirculatingAccountsList":true}]}'

Tip: set excludeNonCirculatingAccountsList: true if you only need the numbers. It keeps the response small.

Supply is the base number behind a lot of what users see. Explorers and dashboards use it to show circulating supply and market cap. Analytics and tokenomics tools track how locked and circulating SOL change over time.

Staking apps need it to calculate the share of supply staked and the inflation-based yield, and price aggregators and portfolio trackers rely on it for a supply figure they can verify on-chain.

This is fixed on Chainstack Solana nodes as of 6 Nov. Median response time across regions went from ~1 s to ~10–20 ms.

Disclosure: I work at Chainstack. This upgrade is live on all Chainstack Solana nodes, including the free Developer plan, so you can test it without a card.


r/solanadev • • 15d ago

Clear signing for Solana

4 Upvotes

So currently if you try to use any dapp on Solana, you can see what the website shows you e.g. creating a limit order or adding some USDC to a lending vault etc, but on your wallet when it comes time to sign the transaction, you only see a simulation and it only shows you that your coins are moving, but doesn't show you where or if you will get anything back or are they forever transferred somewhere, and on a hardware wallet it is even worse, you only see the hash bytes.

SignLens is trying to fix that, it provides clear signing of transactions, explaining every individual instruction what it does (if it is from a known program) so you know exactly what to expect. It also tries to warn on any potential malicious transactions like accounts given away or giving spending rights etc.

SignLens is a browser extension, it doesn't hold any keys as its main purpose is to explain the transaction, and the signing itself is done by your wallet as always. It can also work as a watch only mode, where you can just put any Solana address and interact with dapps to see the explanations it gives.

I would love some feedback, if all of the dapps you are using are explained, is the explanations clear enough ( currently only English and Chinese ), or any other suggestions.

- Source: https://github.com/signlens/signlens-extension

- Chrome: https://chromewebstore.google.com/detail/signlens-beta/anihjjfeahahigbnjonlacmboeeolnmk

- Firefox: https://addons.mozilla.org/firefox/addon/signlens-beta/


r/solanadev • • 16d ago

Newcastle Superteam UK

4 Upvotes

Hi r/solanadev, if anyone here is in the North East of England you should consider coming along to the Newcastle Frontier Tech Co-Working event. It happens every Friday between 10am and 3pm.

It's a great place to meet fellow devs in the Solana community and talk about what you're working on over a tasty cup of coffee. Network, find a potential co-founder or other devs for hire to work on your projects. It would be great to see you there.

I'm not paid or earning commission, not got an official position in Superteam UK or anything. Just sharing hoping to grow the community and meet other devs working on Solana in the North East.

Register on luma at https://luma.com/2111nom8

Thanks all!


r/solanadev • • 16d ago

We built an open-source Solana Anchor escrow & spend-guard program for autonomous AI agents (0.4s finality, $5k/tx hard cap)

5 Upvotes

Hey fellow Solana builders,

With the explosion of autonomous AI agents (ElizaOS, Solana Agent Kit, AutoGPT), we noticed a glaring vulnerability: **Agents are given raw keypairs with zero on-chain circuit breakers.**

A single prompt injection or hallucinated transaction instruction can completely drain an agent's treasury in 1 transaction.

To solve this, we wrote and deployed an open-source **Solana Anchor Escrow & Security Gate program**:

### ⚡ Key Capabilities:

  1. **0.4s Micro-Settlements:** Leverages Solana Mainnet sub-second finality to stream micro-USDC payments ($0.00025 fee) for GPU compute and API tools on-demand.

  2. **On-Chain Hard Spend Controls:** Enforces hard caps at the Anchor program level ($5,000 max single-tx / $25,000 24h velocity cap) so even a compromised agent cannot drain its vault.

  3. **Pre-Sign AST Threat Inspection (<5ms):** Inspects incoming transaction payloads off-chain before invoking the Anchor PDA to reject malicious code execution or credential exfiltration.

### 📜 Deployed Program:

* **Solana Mainnet Program ID:** `AGR3W3R9pKxnuZGYrpaggfkbMKVrjoniLaGvi1voBFSC`

* **Anchor Client & FastMCP Tools:** Fully compatible with LangChain and Python agent runtimes.

We’re actively preparing our Colosseum hackathon update and would love technical feedback from the Solana dev community on our PDA account architecture!

*(GitHub repo, npm/pypi packages, and live testnet/mainnet hub links are in the first comment)*