
Author: Aaron Milano, QuickNode; Translation: Bit Chain Vision Xiaozou
1. Introduction
Solana Actions and Blockchain Links (Blinks) are the two major innovations of Solana. They are expected to completely change the way of interaction between users and blockchain.They promise to enhance the overall user experience of various network platforms by achieving seamless sets of user -friendly.Whether it is sponsoring your favorite Internet celebrities, subscribing to high -quality content, or voting in DAO, both Actions and Blinks enable creators to connect with their audience anywhere on the Internet in any place.Imagine that a user can publish a link on Twitter (for example, donate.com/to/user_address), which shows a sponsorship small part directly in Tweet, as shown below:
The use cases and possibilities they bring are unlimited.In this article, we will explore what Solana A actions and Blinks are, how they work, and how they use them to enhance the interaction between users and Solana blockchain.
It is more helpful to understand this article, but if you have a basic understanding of Solana Pay, because Actions is actually the expansion of Solana Pay.Let’s start now.
Please note that Solana Actions and Blinks are new technologies, and the information provided in this article is based on its current state.With the development of technology, new features and functions may be introduced.
2. Solana Actions
Solana Actions provides a standardized way to pass the signature transaction or message directly to the user.These transactions can be executed on the chain.Their working principle is as follows:
-
GET request: The client sends a GET request to the Action URL to obtain metadata that can be operated.The meta -data response includes information such as the program name, icon, and available operations of the application.This is useful when presenting the user interface.
-
Post request: After the user selects an operation, the client sends a post request to the Action URL to obtain a signature transaction or message.The user wallet is then completed and the transaction is sent to the blockchain.
3. ActionS working principle
-
Initial GET request: The client obtains metadata available on the URL (the website can choose to do this, or the Chrome expansion program/wallet can be done when detecting the known operation URL).
-
Display UI: The client application displays a user interface to perform operations for metadata obtained in the GET request.
-
User interaction: Users choose an operation to trigger a post request to get the transaction.
-
Transaction generation: ACTION URL generates and returns a encoding transaction based on the user’s choice.
-
Signature of the transaction: Wallet reminds the user to sign and send the transaction to the network.
marvelous!We now know how Solana Actions works, but how does the client support them?This is the place of Blockchain Links (Blinks).Let’s explore it nextBlinks.
4. Blockchain Links (Blinks)
Blinks is a client application that converts Solana Actions into a shared UI with a rich metadata UI to interact with Actions and executes Actions.Blinks does this:
-
Detect Action URL: Blink URL contains the operating request parameters pointing to Solana Action URL.Blinks detects this parameter.
-
Analyze Action: The Blink client will operate the ACTION API link provided in the inquiry parameter.
-
User interface: The client presents a rich user interface, and the user can complete the entire life cycle (for example, a sponsorship or voting button).
-
Execute Actions: Users can complete the entire life cycle of operation, including signing transactions with their wallets.
5. URL SCHEME mechanism
Blinks usedSolana action url schemeThe mechanism is as follows:
Solana-Action: & lt; link & gt;
in& lt; link & gt;yesACTION API’s URLEssenceThe link to the query parameter must be encoded in URL to avoid conflicting with other protocol parameters.
6. Blinks’s ACTIONS detection
Blinks can detect the operation through any of the following three methods:
7. Action Identity and verification
Solana Actions can contain oneAction Identity(Operation logo), which is used to attribute the on -chain activity as a specific verification provider.The message as a special format using the MEMO instruction is included in the transaction, allowing the indexes and analysis platforms to track and verify the source of the operation.
8. Summary
Solana Actions and Blinks are expected to simplify and enhance the interaction between users and blockchain transactions.They can seamlessly integrate blockchain functions into various applications and web interfaces, making blockchain interoperability more accessible and more user -friendly.
Some of the following ideas may help you think about how to use Solana Actions and Blinks in your project:
Use case:
-
Sponsorship/PaymentHousehold: Share a “DONATE To Me” Blink on Twitter, and supports fans to donate SOL immediately.
-
Subscribe to high -quality content: Users to subscribe for high -quality content (for example, buy NFT) through a Blink on the Discord channel.The update of metadata on the chain can reflect the new subscription and can trigger the interview of the BOT robot authorization on exclusive channels.
-
Jupiter exchange tokens: Shared exchange links on YouTube or Twitch, allowing users to exchange tokens directly via video player.
-
DAO voting: Share DAO proposal links on Twitter, and users vote after reading DAO release.