r/solanadev • • May 05 '21

r/solanadev Lounge

14 Upvotes

A place for members of r/solanadev to chat with each other


r/solanadev • • 9d 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 • • 38m ago

Send me some sol

1 Upvotes

If it's not hard to share some solana with me I'll put my address below

Solana network

Solana address: BT4afFNSqbsNpp1BbDpfjcx3SujS9NzGDU7jstBBbo7y


r/solanadev • • 10h ago

Dev The algorithm behind a new AMM trading model in action

2 Upvotes

We’ve developed a new automated market maker (AMM) model that lets traders buy, sell, go long, or go short, all on a single liquidity curve. Each trade involves some complex calculations, so we haven’t been able to get the full model working on EVM chains. Right now, it’s fully functional only on Solana.

We think this approach could be one direction AMM exchanges take in the future. We’ve finished development, completed the audit, and deployed the exchange on Solana mainnet. We haven’t raised any money or started running it as a business.

I’d love to hear what folks here who know AMMs think. How much value do you see in a project like this?


r/solanadev • • 9h ago

After SIMD-0500 you can't finalize an SBPF v2 program, you have to upgrade it to a v3 build first. How are you checking that build?

1 Upvotes

I was reading the SIMD-0500 notes after it went live on testnet at epoch 1097, and the case I keep coming back to is a plan a lot of teams have: launch the program upgradeable, keep the upgrade authority for a few weeks in case something breaks, then finalize it so nobody can change it again.

Once SIMD-0500 is active, the upgradeable loader refuses deploy, upgrade and finalize for an ELF built for SBPF v0, v1 or v2. Programs already on chain keep running. So if yours is a v2 build, you can't just drop the authority later. You first upgrade it to a v3 build (cargo build-sbf --arch v3) and only then finalize, which means the binary that becomes permanent is a new compile, not the one you tested for weeks.

Mainnet has no epoch yet, it's planned with Agave v4.4, so there is time. But it isn't always just a flag: hand-declared extern "C" syscalls have to move to solana-define-syscall or the build may not link, and I'd want the whole test suite run against the v3 .so itself, not only the host build.

If you're planning to freeze a program, how are you going to show users that the v3 binary you finalize is the same code you tested and had reviewed?


r/solanadev • • 9h ago

I built a File Explorer for Solana Seeker – looking for feedback from the community 🚀

Thumbnail
gallery
0 Upvotes

Hey Solana devs! 👋

I'm an independent developer and a Solana Seeker owner. I've been working on an Android app called File Explorer, which is already available in the Solana dApp Store.

Some of its features include:

📁 File and folder management

📊 Storage analysis and statistics

🎨 Modern and customizable interface

I'm actively developing the app and would love to get honest feedback from the Solana developer community.

What features would you like to see in a file manager for Seeker?

If you own a Seeker, I'd really appreciate it if you could give it a try!

I'm also happy to connect with other developers building for Solana Mobile.

💻 GitHub – Source code & releases: https://github.com/EpicKohus/File-Explorer

Let's build something great together! 💜


r/solanadev • • 18h ago

NOCtura Wallet - Update

Post image
3 Upvotes

r/solanadev • • 1d ago

Dev Devs who launched a memecoin on Solana: how did your first one actually go?

5 Upvotes

I've been reading a lot about memecoin launches on Solana and I'd love to hear from people who actually did it.

For those who launched their first memecoin:

- What went better than you expected?

- What went wrong or surprised you on launch day?

- How did you deal with snipers, bots or scam DMs after launch?

- What's the one thing you'd do differently if you started again?

Not looking to shill anything, just want to learn from real experiences before trying it myself. Good stories and bad ones are both welcome.


r/solanadev • • 1d ago

I built a pump.fun memecoin bot, tested 6 versions on 517 paper trades, and costs ate every edge (code + data open)

2 Upvotes

I spent a week building a paper-trading bot for brand-new Solana memecoins on pump.fun and tried to test it properly: walk-forward splits, one pre-registered test, and error bars on everything.

What I found:

- The best entry rules had a real edge of about +4% to +7% per trade before costs.

- A round trip costs about 6% (1.25% fee each way, plus slippage and tips), so that edge disappears.

- −15% stops actually filled around −24% on fast coins.

- A market filter that looked great on old data made things worse on new data.

- 5 of 6 versions lost money. The newest one is slightly positive after 34 trades, which is far too few to mean anything.

All 517 paper trades and the code are here: https://github.com/seanrisman-commits/swaggy-bot

I'd love feedback. Is there a way around the cost problem that I'm missing, or a flaw in how I tested it?


r/solanadev • • 2d ago

Solana Developers: What's the best approach for reliable historical holder distribution and wallet concentration tracking?

3 Upvotes

Hi Solana developers!

I'm the founder of AI Meme Radar, a multichain blockchain research platform currently under development.

We're building research tools to help analysts investigate token holder distribution, wallet concentration, liquidity movements, and on-chain trading activity across Solana and other blockchains.

One of our current technical challenges is obtaining reliable, historically comparable Solana token-holder snapshots.

Specifically, we're investigating:

  1. Holder distribution: How can we reliably reconstruct token ownership across wallets rather than simply counting token accounts?
  2. Slot consistency: What's the best way to obtain token balances and mint supply from the same finalized slot?
  3. Wallet concentration: How should we handle multiple token accounts belonging to the same owner and distinguish known liquidity-pool or program-controlled accounts?
  4. Historical monitoring: Would standard Solana RPC methods be sufficient for periodic snapshots, or would Yellowstone Geyser, an indexing service, or historical account data be more appropriate?
  5. Data verification: How can researchers detect missing account updates and validate historical changes in holder concentration?

Our objective is to build a transparent research system where reported metrics are supported by verifiable on-chain evidence rather than estimates presented as facts.

I'd appreciate recommendations from developers who have worked with Solana RPC, token-account indexing, Geyser streams, or historical blockchain analytics.

What architecture would you recommend for a reliable, production-grade holder distribution monitoring system?

Thanks for sharing your experience!


r/solanadev • • 2d ago

I pulled apart a 240-byte Solana v1 transaction

4 Upvotes

Hey everyone,

I’ve been digging into Solana v1 and wanted to see what the wire format actually looks like in a real transaction. I took a simple devnet transfer and split its 240 bytes into fields you can check yourself.

The part that caught my eye was the signature. With legacy and v0, you read the signatures before the message. This v1 transaction starts with 0x81 and puts the signature at the end. In this example, bytes 0 through 175 are what the signer authorizes, and the final 64 bytes are the signature.

I included the code that fetches the transaction and prints the offsets, plus an example showing why changing the resource budget changes the signed bytes.

Read it on Substack


r/solanadev • • 2d ago

I deleted 2,367 lines of agent trading/vault code and rebuilt it as a pure pre-settlement KYW & <3ms security gate (Solana + EVM + x402 + MCP)

4 Upvotes

Over the past month I was building two parallel pieces for autonomous AI agents: a pre-sign security gate (`security-gate-x402`) and an on-chain finance/vault agent.

This week I made a hard architectural cut: I stripped out 2,367 lines of directional trading, arbitrage, and ERC-4626 vault code and merged the useful counterparty verification primitives directly into a single **Pre-Settlement Customs & Verification Gate**.

**Why:**

With Solana's 0.4s finality and x402 machine-to-machine USDC payments, one prompt injection, poisoned MCP tool, or bad counterparty address drains a treasury irreversibly. At the same time, taking custody or running directional strategies adds massive risk. Sitting purely at the pre-sign / pre-settlement layer is much cleaner.

**What changed technically (with measured numbers):**

  1. **Benchmarked in front of a live x402 API (GAIB Token Kiosk):**- Token Kiosk warm latency: ~620–683ms- Local AST + prompt-injection pre-check overhead: **0.20ms–2.37ms** (~0.3% overhead)- Malicious injection (`curl ... | bash`) blocked at **2.67ms** before spending any API credits.
  2. **Unified 5-Chain Counterparty KYW & USDC Solvency (`/api/v1/kyw/verify`):**- Single call checks OFAC/mixer blocklists, live on-chain USDC + gas solvency across **Solana (501), Polygon (137), Base (8453), Arbitrum (42161), and Ethereum (1)**, plus optional `<3ms` payload audit and SHA-256 `proof_hash`.
  3. **Shrunk our PyPI package by 97% (`v3.0.0` Thin MCP Client):**- `agent-security-gate-x402` went from 537 KB (`fastapi`/`web3`/`cryptography`) down to **16.9 KB** (`httpx` + `mcp` only), forwarding stdio MCP calls to 18 live tools (`/mcp/tools`).

Live Swagger Docs: https://agent-security-gate-x402-212942243360.asia-northeast3.run.app/docs

Live KYW Stats: https://agent-security-gate-x402-212942243360.asia-northeast3.run.app/api/v1/kyw/stats

GitHub: https://github.com/nohosa001-pixel/security-gate-x402

For anyone building agents that hold Solana or EVM wallets: how are you currently handling pre-sign policy enforcement and counterparty solvency checks before your agent signs a transfer?


r/solanadev • • 3d ago

Dev I created a hands-on lesson on building a Time-Locked SOL Vault with Anchor. Looking for feedback!

Thumbnail
youtu.be
3 Upvotes

Hi everyone!

I've created a hands-on lesson for developers interested in learning how to build Solana programs using Rust and the Anchor framework.

In this lesson, I walk through building a Time-Locked SOL Vault from scratch, explaining the implementation and the key concepts behind it.

The lesson covers:

  • Anchor Framework: Structuring and implementing the Solana program.
  • PDAs (Program Derived Addresses): Deriving deterministic addresses for the vault.
  • CPI (Cross-Program Invocation): Interacting with the System Program to transfer SOL.
  • PDA Signer Seeds: Understanding how programs authorize transactions on behalf of PDAs.
  • Clock Sysvar: Implementing time-based restrictions directly on-chain.

The goal is to provide a practical, step-by-step explanation of how these concepts work together in a real Solana program.

I'd really appreciate feedback, especially from people interested in learning Solana development:

  • Was the explanation clear and easy to follow?
  • Was the pace appropriate for someone learning Anchor?
  • Did I explain the underlying concepts well enough, or were there parts that needed more detail?
  • What topics would you like to see covered in future lessons?

I'm continuously working on improving the way I teach complex blockchain concepts, so honest feedback is very welcome.

Thanks for watching!


r/solanadev • • 3d ago

Trading infra and toolkit for developers

Thumbnail
velucid.dev
2 Upvotes

I just got into trading exactly 1 year ago, during this time, i had built up FOMO and a whole lot of assumptions, like a lot of traders do.

I have been coding for years, different stacks and such. Relevantly, i enjoyed using Vercel and Next.js for my websites and web apps.

I was losing quite a bit of money, then i realized, why don't i use the coding skills i already have to get objective, mathematical answers?

That's when i found out quant, but in memecoins, the quant ecosystem is very immature, there's barely any infrastructure other than RPC providers, and on top of that, most quant software feels like you need a degree in every single thing on this planet.

This gave me the idea: Why don't I make something that people (including me) can build a strategy on, and deploy it instantly over a variety of different markets, including memecoins, and feel like they are using a piece of software that may already be faimiliar to them (aka Vercel).

That's practically what Velucid is, I'm taking my time to build it properly, I will give updates once i am able to reach a milestone, and can also give a more detailed vision, feel free to ask questions, or give your feedback!


r/solanadev • • 4d ago

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

4 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 • • 4d ago

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

Post image
2 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 • • 5d ago

Dev Building a Solana project with an LLM

7 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 • • 7d ago

Dev No backend Solana wallet (need help naming it)

Thumbnail gallery
4 Upvotes

r/solanadev • • 8d ago

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

5 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 • • 8d 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 • • 8d 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 • • 8d ago

NOCtura Wallet - Update

Post image
3 Upvotes

r/solanadev • • 9d ago

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

3 Upvotes