Squads Actions and Blinks
Get started building Blinks on Squads v4.
What are Solana Actions?
Solana Actions are specification-compliant APIs that return transactions on the Solana blockchain to be previewed, signed, and sent across a number of various contexts, including QR codes, buttons + widgets, and websites across the internet.
Actions make it simple for developers to integrate the things you can do throughout the Solana ecosystem right into your environment, allowing you to perform blockchain transactions without needing to navigate away to a different app or webpage.
What are blockchain links (blinks)?
Blockchain links – or blinks – turn any Solana Action into a shareable, metadata-rich link. Blinks allow Action-aware clients (browser extension wallets, bots) to display additional capabilities for the user. On a website, a blink might immediately trigger a transaction preview in a wallet without going to a decentralized app; in Discord, a bot might expand the blink into an interactive set of buttons. This pushes the ability to interact onchain to any web surface that displays a URL.
Getting Started
Install the @solana/actions
SDK into your application:
Check out both Solana’s official docs and Dialect’s dashboard. Once you’re familiar with blinks, you can use our SDK to start building with Squads inside of a blink. Here's an example of a blink using Squads v4 SDK.
You can test your blink here, and once you’re ready to deploy it to the world you can apply for verification so the blink will render on X.
Ideas to build
Here are a few ideas from the team and community:
Create a Squad
Add corresponding keys, and a threshold, and deploy a Squad directly from X.
Squads Blink Bot
Deploy an X bot for a Squad that DMs members of the Squad when transactions are proposed.
Add Member
Specify a member key and permission levels, and propose to add a member with a blink.
Propose a transaction
Drop a base64 string and propose a transaction directly from a blink.
Propose a stake transaction
Allow certain validators to send pre-built stake transactions that can be proposed directly to your squad.
Add a Spending Limit
Create and configure spending limits via blinks.
Enable Rent Reclaim
Propose/execute a transaction to enable rent reclamation (or other configuration)
Resources
Dialect’s dashboard
Video tutorial on How to Build Solana Actions
Example of a blink using Squads v4 SDK
Find example code snippets on how to build several different Solana Actions:
If you have any questions or encounter any issues, please reach out to us on Discord.
Last updated