Skip to content

feat: add solana-blinks-axum template#312

Open
0xsouravm wants to merge 2 commits intosolana-foundation:mainfrom
orbitflare:main
Open

feat: add solana-blinks-axum template#312
0xsouravm wants to merge 2 commits intosolana-foundation:mainfrom
orbitflare:main

Conversation

@0xsouravm
Copy link
Copy Markdown
Contributor

Solana Blinks (Axum) Community Template

This PR adds a new community template for building Solana Actions/Blinks using Rust with the Axum web framework and a Next.js testing frontend.

What's included

  • Three example actions - SOL transfers, a donation flow with action chaining (transfer + on-chain memo), and a swap placeholder ready to wire up to
    Jupiter/Raydium
  • Action chaining - Stateless multi-step flows using URL-encoded chain state, no server-side storage needed
  • Testing frontend - Next.js web UI for testing action endpoints locally
  • Production ready - CORS (required by the Actions spec), tracing, structured error handling, and environment configuration built-in
  • Zero-config development - cp .env.example .env && cargo run to start

Files added

  • community/solana-blinks-axum/ - Complete template with Axum server, three example actions, action chaining, and Next.js frontend

Files updated

  • templates.json - New template entry
  • .github/workflows/templates.json - Added to CI workflow
  • TEMPLATES.md - Template documentation
  • pnpm-lock.yaml - Workspace entry

Installation:

npx create-solana-dapp my-project --template solana-blinks-axum

The setup instructions guide users through starting the Rust backend and the Next.js frontend in separate terminals.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

This pull request has been automatically marked as stale because it has not had any activity for 7 days.

It will be closed in 7 days if no further activity occurs.

If you believe this PR is still relevant, please add a comment or push new commits to keep it open.

Thank you for your contributions!

@GuiBibeau
Copy link
Copy Markdown
Collaborator

@cxalem can you check this one. Looks interesting!

Copy link
Copy Markdown
Collaborator

@cxalem cxalem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing this now!

@@ -0,0 +1,3 @@
RPC_URL=https://api.mainnet-beta.solana.com
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The frontend is pointing to devnet but this defaults to mainnet! Would be cleaner to default to devnet here too so everything matches out of the box!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cxalem this is done!

@cxalem
Copy link
Copy Markdown
Collaborator

cxalem commented Mar 9, 2026

Hey @0xsouravm, thanks for putting this together! Looks solid overall, I'll sync with the team today and get back to you soon!

@0xsouravm
Copy link
Copy Markdown
Contributor Author

Hey @cxalem ! Any updates on this?

@0xsouravm
Copy link
Copy Markdown
Contributor Author

Hey @cxalem! Just a quick follow-up.

@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 7 days.

It will be closed in 7 days if no further activity occurs.

If you believe this PR is still relevant, please add a comment or push new commits to keep it open.

Thank you for your contributions!

@github-actions github-actions bot added the stale label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants