r/solanadev • • May 05 '21

r/solanadev Lounge

14 Upvotes

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


r/solanadev • • 15d 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 • • 7h ago

Built a non-custodial Rust/tonic Jito gRPC execution gateway in NY (~10µs internal overhead) — looking for bot devs to benchmark

0 Upvotes

Hey r/solanadev — I wrote a standalone, non-custodial execution gateway in Rust (tonic + TLS 1.3 gRPC) for routing Jito bundles without the overhead of heavy RPC wrappers.

Quick breakdown of the setup:

- Hosted in NY with TCP_NODELAY, warm HTTP/2 connection pooling, and lock-free sliding-window rate limiting

- ~10µs internal gateway routing overhead before upstream Block Engine dispatch (supports regional and parallel race routing)

- Strictly non-custodial: transactions are signed locally on your machine; the gRPC contract only takes raw serialized wire bytes

- Async JSONL telemetry checking getBundleStatuses after 20s to track real on-chain land rates

I'm looking for a active Rust or Python bot devs to run some live bundles through it and share honest latency/land-rate feedback. I have free trial keys (1 req/sec) ready to hand out.

Comment or DM if you want to test it out and I'll send over the proto and a key.


r/solanadev • • 21h ago

Dev Full-stack dev looking to get paid for building on Solana: where do bounties and grants actually pay?

0 Upvotes

r/solanadev • • 1d ago

I routed my pump.fun creator fees to the people calling the coin instead of to myself. Here is the math and what has gone wrong so far.

2 Upvotes

I launched a coin on pump.fun yesterday. Instead of keeping the creator fee, I split it three ways and locked it: 40% to a prize pool for callers, 40% to the project, 20% to a buyback and burn.

The burn is the part I get asked about most. pump.fun does not let you configure a transfer tax, so anyone promising a per-trade burn on a pump.fun coin is either confused or lying. The creator fee is the only lever, and it gets paid on buys and sells both. I ladder the burn share from 20% of fees at current volume to 30% at $250k, 40% at $1m and 50% at $5m, taking the difference out of the project's own cut rather than the caller pool.

The caller side is where it gets interesting. Rounds run six hours. A caller buys a little, registers their wallet so the market cap is stamped at that second, then calls it out on pump.fun. 70% of the pool goes by call-time weight, 30% by points from an hourly sprint. To collect, they have to still hold at least half of what they registered with when the round pays. Sell under that and their share goes to whoever stayed.

What has gone wrong so far: nothing has burned, because $117 of volume produces about 30 cents of creator fees and the burn slice of that is six cents, which does not cover a swap. Two rounds have closed with zero registered callers. The pot is $13.89 because I seeded it myself rather than waiting for fees to fill it. Market cap is around $2,100 across 11 wallets.

I would rather post those numbers than a chart. The mechanism is live and readable at callitnow.fun if anyone wants to check the rules or the wallet. I am the dev, so factor that in before you take any of this as a recommendation.


r/solanadev • • 2d ago

The most underrated Solana product is the one you're cooking 🧙

Post image
5 Upvotes

r/solanadev • • 2d ago

trading journal

Thumbnail
memecoin-journal.up.railway.app
3 Upvotes

I built Memecoin Journal for traders who want to record the reasoning behind each trade—not just the final result.

Features include:

  • Quick trade logging
  • Partial entries and exits
  • Setup and mistake tracking
  • Dashboard equity curve and P&L calendar
  • Daily journal entries linked to trades
  • Analytics for setups, holding time and discipline
  • Optional read-only wallet activity review

Try it as a guest or create an account:

https://memecoin-journal.up.railway.app/

The wallet tracker is currently in beta. It never requests seed phrases or private keys, and imported activity must be reviewed before it becomes a journal trade.

The optional AI Coach keeps your API key in your browser. It is sent through the server only when you request an analysis and is not intentionally stored by the app.

I’m looking for early testers. What would make a trading journal more useful to you?

Memecoin Journal currently focuses on memecoin trading, while I’m working toward broader support for crypto investments and trades.

*I’m still learning UI and product design, so much of the interface was built with help from AI. I’m sharing it early because practical feedback will help me improve the experience.*


r/solanadev • • 3d ago

Dev New lesson "On-chain Profile". Looking for feedback!

Thumbnail
youtu.be
2 Upvotes

I built an on-chain "link in bio" profile on Solana in Rust, where the account grows when you add a link and shrinks when you remove one.

A Solana account gets a fixed size when it's created. Every byte costs rent, even the empty ones. So instead of reserving space for the worst case, this one starts with exactly the bytes it needs.

The lesson covers:

→ Account space calculated by hand from the real content: no InitSpace, no max_len, just the 4-byte length prefix of every String and Vec plus the bytes inside

→ realloc in Anchor (realloc::payer, realloc::zero) to grow the account when a link comes in and shrink it when one goes away

→ Growing pulls the extra rent from the owner's wallet through the System Program; shrinking sends the extra lamports back

→ A real bug caught by the tests: the size of a link forgot the length prefixes, so the first add_link failed with AccountDidNotSerialize, 8 bytes short

→ LiteSVM tests that check every size and every lamport of rent, plus the failure cases, a devnet deploy, and a small React front end with Codama and Phantom

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

How would you validate a Solana quote when independent RPC reads land on different slots?

Post image
4 Upvotes

I maintain a read-only Solana scanner on Windows. We quote a round trip through two Raydium pools for the same pair (CLMM and CPMM) in both directions. Our release test requires the UI to match both quotes for at least 9 of an independent RPC reader's first 10 distinct slots.

Our four-minute test scored 0/10. The independent reader sampled 74 distinct slots. The UI showed both directions at 8 slots. The two sets had zero overlap. The first 10 reference slots contained one distinct PTN account state. We observed no PTN pool or vault change notification in that window.

We also replayed 6 of the scanner's snapshots. All 12 gross swap outputs matched the UI. At slot 476044201, both calculations returned 994.822945 from 1,000 input units in one direction. The UI valued the SOL fee at 3.394655 input units using pool A. The verifier used fixed pool B and got 3.400165. That explains the 0.005510-unit net difference at this slot.

How would you verify which fee pool the scanner selected and what account state it used? When independent reads land on different slots, what evidence would let you count two snapshots as equivalent within the quote's validity window? What would make you reject a match?

A sample trace or a counterexample from a similar system would help.


r/solanadev • • 4d ago

Dev From no key to working Solana code: Carbium RPC, SDKs, the Library and the MCP server

Thumbnail
youtu.be
4 Upvotes

We run Carbium, a Solana RPC, an infrastructure stack, and let us present to you the quickest path from nothing to working code:

  • No key: call the RPC right now, no sign-up. getSlot, getLatestBlockhash and ten more methods answer without a key.
  • SDKs: one client in TypeScript, Python, Rust and Go.
  • The Library: 488 working Solana examples, MIT licensed. Copy the code or download a ready project. The film runs the priority fee example against a busy pool.
  • MCP server: gives your coding agent the same reads, so you can just ask it.

https://carbium.sh


r/solanadev • • 4d ago

ICYMI, Birdeye is giving 24M free CUs to every Superteam member!

Thumbnail x.com
3 Upvotes

r/solanadev • • 5d ago

Send me some sol pls

6 Upvotes

I know it is hard to, but if you will send me some sol I am really beyond grateful.

This is my address, sir/mam: GiLrV2voHx1V1bNQnbi1GUBoejnXUtYV3R7KhnrK7rbR

Godbless everybody 🙏


r/solanadev • • 5d ago

Shipped solana-rpc-fallback v0.1.0 to crates.io — lightweight async Solana RPC failover router

2 Upvotes

Hey everyone,

A little over a week ago I shared an early prototype of a lightweight Solana RPC failover router here and got super helpful feedback from you all.

Based on your suggestions, I added get_balance and safe send_transaction failover (forwarding the exact same signed transaction bytes across backup nodes without re-signing) and just published v0.1.0 to crates.io: link to the crate

What it does

  • Wraps multiple RpcClient nodes behind one RpcRouter
  • Enforces per-attempt timeouts and an overall request deadline
  • Puts slow or failing nodes on cooldown automatically so subsequent calls skip them
  • Forwards already-signed Transaction bytes safely on failover

Install
cargo add solana-rpc-fallback

Source and stub-server failover tests are on GitHub: link to the repo

Still keeping it simple and lightweight — would love any feedback if you try it out!


r/solanadev • • 5d ago

Yall got any advice for builders on Solana?

Thumbnail gallery
4 Upvotes

r/solanadev • • 5d ago

New lesson "On-chain Polls". Looking for feedback!

Thumbnail
youtu.be
3 Upvotes

I built on-chain polls on Solana in Rust where each wallet can vote only once, and there's no list of voters anywhere.

The rule doesn't come from an if statement. It comes from the address of an account.

The lesson covers:

→ Every vote creates a small receipt account at a PDA derived from compound seeds (vote, poll, voter), so a second vote from the same wallet fails because that account already exists

→ Poll state modeled with a fixed-size Vec of options and a PollStatus enum (Open or Closed)

→ Custom Anchor constraints with their own errors, reading the instruction's arguments, so a bad vote fails before the handler runs

→ A real bug caught by the tests: with only the voter in the seeds, the same wallet couldn't vote on a second poll. One extra seed fixed it

→ Tests with LiteSVM for the happy path and every failure case, a devnet deploy, and a small React front end with a Codama-generated client and Phantom

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

Dev The algorithm behind a new AMM trading model in action

3 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 • • 6d 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?

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

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

Thumbnail
gallery
1 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 • • 7d ago

NOCtura Wallet - Update

Post image
4 Upvotes

r/solanadev • • 7d ago

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

1 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 • • 8d 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 • • 9d 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 • • 9d 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 • • 9d 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!