Earn 5.76% APY staking with Solana Compass + help grow Solana's ecosystem

Stake natively or with our LST compassSOL to earn a market leading APY

Conference Talk Breakpoint 24

Breakpoint 2024: Workshop: Solana Actions and Blinks (Nick Frostbutter)

Solana 🧭 Compass By Solana 🧭 Compass Sep 20, 2024 6 min read

Discover how Solana Blinks and Actions are transforming web3 interaction, bringing blockchain transactions directly to users wherever they are online.

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!
Note: these notes were generated by AI to help surface more Solana content

Solana is set to revolutionize how users interact with blockchain applications across the internet with the introduction of Blinks and Actions. This groundbreaking technology promises to bring Solana transactions directly to users, seamlessly integrating blockchain functionality into everyday online experiences.

Summary

At Breakpoint 2024, Nick Frostbutter, developer relations at the Solana Foundation, presented a workshop on Solana Blinks and Actions. These new tools are designed to enhance the way users interact with decentralized applications (DApps) by allowing transactions to be initiated directly from shared links across the internet.

Blinks, short for blockchain links, are described as the front-end component, while Actions serve as the back-end. Together, they create a powerful system that enables developers to bring rich, interactive blockchain experiences to users wherever they are online. This technology aims to streamline the process of engaging with Solana-based applications, potentially increasing adoption and usability of blockchain technology.

The workshop detailed three main methods for implementing Blinks: the Solana Action URI Scheme, the actions.json file, and an interstitial website using an action query parameter. Each method has its own advantages, with the actions.json file being highlighted as the most recommended approach due to its seamless integration with existing web standards and fallback options.

Key Points:

Understanding Blinks and Actions

Blinks are essentially the front-end component of this new technology, while Actions serve as the back-end. They work together to create a seamless experience for users interacting with Solana-based applications. Blinks turn shareable URLs into rich, interactive experiences that can unfold directly within a user's current environment, such as a social media platform or messaging app.

The key innovation here is the ability to bring blockchain transactions directly to where users already are, eliminating the need to navigate to separate websites or applications. This has the potential to greatly reduce friction in the user experience and make blockchain interactions more accessible to a broader audience.

Implementation Methods

Nick Frostbutter outlined three primary methods for implementing Blinks:

  1. The Solana Action URI Scheme: This method uses a custom URI scheme (solana-action://) to directly specify the action API endpoint. However, it's the least recommended due to lack of fallback options and limited support across platforms.
  1. The actions.json file: This approach involves placing a JSON file at the root of a domain, which maps normal URLs to API endpoints. It's highly recommended as it provides a seamless experience with proper fallback options.
  1. Interstitial website with action query parameter: This method utilizes standard web technologies to create a bridge between normal web links and Blinks functionality.

Of these methods, the actions.json file is highlighted as the most effective and recommended approach. It allows developers to leverage existing web infrastructure while providing the enhanced functionality of Blinks.

Developer Resources and Support

The workshop also highlighted the various resources available to developers interested in implementing Blinks and Actions. These include:

  • A GitHub repository with open-source examples and the Blinks SDK
  • Educational content on YouTube
  • Comprehensive documentation within the Solana ecosystem
  • Support for multiple frameworks and languages, including Next.js, Express, and Axum for Rust
  • Additional tools and resources from partners like Dialect

This wealth of resources demonstrates Solana's commitment to supporting developers in adopting and implementing this new technology, which could accelerate its integration across the web3 landscape.

Facts + Figures

  • Blinks is short for "blockchain links"
  • Several major wallet providers already support Blinks, including SoulFlare, Backpack, Phantom, OKX, and Bybit
  • The actions.json file is stored at the root of a domain and maps normal URLs to API endpoints
  • Developers can implement Blinks using various frameworks including Next.js, Express, and Axum for Rust
  • An "awesome blinks" repository exists for developers to share their Blinks implementations
  • The Solana Foundation provides a YouTube playlist with educational content on Blinks and Actions
  • Dialect, a partner organization, has contributed significant engineering work to the Blinks ecosystem

Top quotes

  1. "Blinks are the front end and then actions are the back end."
  2. "We want to be able to allow transactions, Solana transactions being brought directly to people where they already are."
  3. "Effectively to actually become a blank, you know, when you're sharing that URL, there's sort of three conditions that can actually be for them to become a blank."
  4. "It's sort of the most recommended because you have a fallback. It's a normal HTTPS link."
  5. "If you build an awesome blank, open a PR. I'd love to merge it."

Questions Answered

What are Solana Blinks and Actions?

Solana Blinks and Actions are new technologies designed to enhance user interaction with blockchain applications. Blinks are the front-end component that turns shareable URLs into rich, interactive experiences, while Actions serve as the back-end. Together, they allow users to initiate Solana transactions directly from links shared across the internet, bringing blockchain functionality to where users already are online.

How do Blinks improve the user experience for blockchain applications?

Blinks improve the user experience by eliminating the need to navigate to separate websites or applications to interact with blockchain functionality. They allow users to engage with Solana-based applications directly from shared links, whether on social media, messaging apps, or other platforms. This reduces friction in the user journey and makes blockchain interactions more accessible and seamless.

What are the different methods for implementing Blinks?

There are three main methods for implementing Blinks: the Solana Action URI Scheme, the actions.json file, and an interstitial website using an action query parameter. The actions.json file is the most recommended approach as it provides a seamless experience with proper fallback options, allowing normal URLs to be mapped to API endpoints while maintaining compatibility with standard web practices.

Which wallet providers currently support Blinks?

Several major wallet providers already support Blinks, including SoulFlare, Backpack, Phantom, OKX, and Bybit. This wide support from established wallet providers indicates a strong ecosystem developing around the technology, which could lead to rapid adoption and integration across various platforms.

What resources are available for developers interested in implementing Blinks and Actions?

Developers interested in implementing Blinks and Actions have access to a variety of resources. These include a GitHub repository with open-source examples and the Blinks SDK, educational content on YouTube, comprehensive documentation within the Solana ecosystem, and support for multiple frameworks and languages. Additionally, there's an "awesome blinks" repository where developers can share their implementations and learn from others in the community.



Comments

Please login to leave a comment.


Solana tokens

Solana Token Markets

Explore all tokens →