feat: add solana-node-dynamic community template#374
Draft
avneesh0612 wants to merge 1 commit intosolana-foundation:mainfrom
Draft
feat: add solana-node-dynamic community template#374avneesh0612 wants to merge 1 commit intosolana-foundation:mainfrom
avneesh0612 wants to merge 1 commit intosolana-foundation:mainfrom
Conversation
Node.js + Express backend that creates Dynamic MPC server wallets on Solana and signs transactions from the server - the building block for gasless relayers, Telegram bots, AI agent wallets, and any backend that needs programmatic Solana signing. - @dynamic-labs-wallet/node (core server SDK) - @dynamic-labs-wallet/node-svm (Solana / SVM extension) - @solana/web3.js for transaction building + RPC - Express endpoints: - POST /wallets create a new MPC wallet - GET /wallets/:addr/balance - POST /transfer sign + submit a SOL transfer - .env.example covers DYNAMIC_ENVIRONMENT_ID, DYNAMIC_API_TOKEN (server-side only), SOLANA_RPC_URL (defaults to devnet), PORT - 1200x630 og-image.png generated via pnpm create-image - README documents endpoints + security considerations (API token never exposed to client, validate inputs, rate-limit before prod) Regenerates templates.json, TEMPLATES.md, and workflows to index. Signed-off-by: Avneesh Agarwal <aagarwal@fireblocks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Node.js + Express backend template that creates Dynamic MPC server wallets on Solana and signs transactions from the server — the building block for gasless relayers, Telegram bots, AI agent wallets, and any backend that needs programmatic Solana signing. Fills a gap in the current
community/lineup, which is frontend-heavy.community/solana-node-dynamic/— Node 20+ + Express 4 + TypeScript@dynamic-labs-wallet/node(core server SDK)@dynamic-labs-wallet/node-svm(Solana / SVM extension)@solana/web3.jsfor transaction building + RPCPOST /wallets— create a new MPC walletGET /wallets/:address/balance— fetch SOL balancePOST /transfer— sign + submit a SOL transfer viaclient.solana.signTransactionGET /health— probe.env.examplecoversDYNAMIC_ENVIRONMENT_ID,DYNAMIC_API_TOKEN(server-side only),SOLANA_RPC_URL(defaults to devnet),PORT..envgitignored.og-image.pngtemplates.json/TEMPLATES.md/ workflows regeneratedTemplate metadata
displayName: Solana Node + Dynamic Server Walletsusecase: Starterkeywords: solana, dynamic, dynamic-xyz, node, server-wallet, mpc, gasless, relayer, backend, express, typescriptTest plan
pnpm install && pnpm lintpasspnpm -F solana-node-dynamic devstarts Express with a clear env-missing error if creds are blankDYNAMIC_ENVIRONMENT_ID+DYNAMIC_API_TOKEN:POST /walletsreturns an address,POST /transfersigns + confirms on devnetRelated
Part of a family of Dynamic templates as separate draft PRs:
solana-nextjs-dynamic,solana-react-dynamic,solana-react-native-dynamic.