Solana एक्शन ब्लिंकर
The Solana Action Blinker app allows you to create Solana Actions and parse Solana Action URLs into their corresponding actions.

अवलोकन
The Solana Action Blinker application allows you to create and interact with Solana Actions by parsing Solana Action URLs into their corresponding actions. With this tool, you can input a valid Action URL to view its details, connect your wallet to execute available actions, and create new actions following the provided structure. Whether you're parsing existing actions or building new ones, this app simplifies the process of interacting with Solana Action URLs.
It uses a Next.js 14 परियोजना को बूटस्ट्रैप किया गया create-next-app.
पृष्ठभूमि
Solana Actions provide a standardized way to deliver signable transactions or messages from an application directly to a user. Blinks are client apps that convert Solana Actions into shareable, metadata-rich UIs for interacting with and executing Actions. For more information, check out our Guide on Solana Actions.
शुरू करना
Install Dependencies
Open the project directory:
cd sample-dapps/solana-action-blinker
Then, install the dependencies:
NPM स्थापित करना
# या
धागा
# या
पीएनपीएम स्थापित करना
# या
बन इंस्टॉल
Set Environment Variables
सुनिश्चित करें कि आपके पास एक Quicknode endpoint यह सुविधाजनक है—आप इसे यहां से मुफ्त में प्राप्त कर सकते हैं।
- नाम बदलें
.env.exampleको.env.localand update with your Quicknode Solana Node Endpoint. - Make sure to update the cluster to ensure your transaction URLs point to the correct explorer (use only of the enum values provided in the
.env.examplefile).
QN_ENDPOINT=https://example.solana-mainnet.quiknode.pro/123456
NEXT_PUBLIC_CLUSTER=mainnet-beta # mainnet-beta | devnet | testnet | local
सबसे पहले, डेवलपमेंट सर्वर चलाएं:
npm run dev
# या
यार्न देव
# या
पीएनपीएम देव
# या
बन देव
परिणाम देखने के लिए अपने ब्राउज़र में http://localhost:3000 खोलें।
डीऐप का उपयोग करना
- Enter a valid Solana Action URL in the input field. You may copy and paste one of the example links on the homepage.
- Click "Parse Action" to see the parsed action details.
- You will see the parsed details of the action URL. To see and execute available actions, connect a wallet.

- Click any of the available actions to execute the action (you will need to sign the transaction when prompted by your wallet).
- You may create additional actions by following the structure in
solana-action-blinker/app/api/actions
वास्तुकला
src/
├── app/
│ ├── page.tsx # Main page for Blink
│ └── layout.tsx # layout for the page
│ └── api/
│ └── solana/
│ └── sendAndConfirm/route.ts # Send and Confirm Transaction
│ └── actions/
│ └── memo/route.ts # Creates a Memo Solana Action
│ └── donate/route.ts # Creates a Donate Solana Action
└── components/
│ ├── ActionComponents/ # includes components for parsing and executing Solana Actions
│ ├── Blink.tsx # Main component
│ ├── SolanaProviders.tsx # Wallet Adapter Context providers
│ └── [supporting components]
└── hooks/
│ ├── useActionFetch.ts # Fetches and parses Solana Actions from URLs
│ └── useTransactionProcessor.ts # Executes Solana Transactions
└── utils/ # includes various utility functions and constants
वर्सेल पर तैनात करें
Next.js दस्तावेज़ीकरण
Next.js के बारे में अधिक जानने के लिए, निम्नलिखित संसाधनों पर एक नज़र डालें:
- Next.js डॉक्यूमेंटेशन - Next.js की विशेषताओं और API के बारे में जानें।
- Next.js सीखें - एक इंटरैक्टिव Next.js ट्यूटोरियल।
आप Next.js के GitHub रिपॉजिटरी को देख सकते हैं - आपकी प्रतिक्रिया और योगदान का स्वागत है!
- रिपॉजिटरी को फोर्क करें
- एक फीचर ब्रांच बनाएं:git checkout -b feature/amazing-feature
- अपने बदलावों को सेव करें:git commit -m "अद्भुत सुविधा जोड़ें"
- अपनी शाखा को आगे बढ़ाएं:git push origin feature/amazing-feature
- एक पुल रिक्वेस्ट खोलें।
