Earn 5.75% 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 Accelerate 25

Scale or Die at Accelerate 2025: SWIG Smart Wallet: Engineering for Efficiency

Solana 🧭 Compass By Solana 🧭 Compass 8 min read

SWIG: Next-gen Solana smart wallet for programmable money movements, subaccounts, and fine-grained permissions

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

Anagram, a crypto holding company, has unveiled SWIG - a groundbreaking smart wallet solution for Solana that promises to revolutionize how we interact with decentralized finance. With its innovative approach to programmable money movements and highly efficient design, SWIG is set to transform the landscape of crypto wallets and empower developers to create more sophisticated DeFi applications.

Keep up to date with the Solana eco
Follow us on Google News

Summary

SWIG, developed by Anagram, represents the next evolution of crypto wallets on Solana. It moves beyond traditional externally owned accounts (EOAs) to offer a highly programmable and efficient smart wallet solution. SWIG leverages Solana's account-based architecture and high-speed, low-cost transactions to enable complex, programmable money movements.

Key features of SWIG include role-based permission systems, subaccounts, multiple authentication methods, and extremely efficient operation. The wallet introduces only minimal computational overhead, with just 1,300 compute units (CUs) for a Solana transfer and 2,500 CUs for an SPL token transfer.

SWIG's fine-grained permission system allows for unprecedented control over wallet interactions. Users can set specific permissions for different roles, limit interactions to certain DeFi protocols, and even use Ethereum keys for authentication. This flexibility opens up new possibilities for AI teams, custodians, and developers looking to create more sophisticated DeFi applications.

Anagram has open-sourced SWIG, providing developers with TypeScript examples, an SDK, and helpful resources to start building with this new technology. The team is already collaborating with various projects, including embedded wallet providers, custodians, large exchanges, and AI swarms, showcasing the wide-ranging potential of SWIG in the Solana ecosystem.

Key Points:

Next-Generation Smart Wallet

SWIG represents a significant leap forward in wallet technology for Solana. Unlike traditional EOAs that require users to manage seed phrases or private keys, SWIG offers a programmable solution that abstracts away much of the complexity. This smart wallet approach allows for more sophisticated money movements and interactions with DeFi protocols, opening up new possibilities for developers and users alike.

The wallet's design takes full advantage of Solana's unique features, including its account-based architecture and high-speed, low-cost transactions. This makes SWIG particularly well-suited for applications that require frequent or complex on-chain actions, such as automated portfolio rebalancing or AI-driven trading strategies.

Fine-Grained Permission System

At the core of SWIG's functionality is its highly flexible permission system. This allows wallet owners to define specific roles and authorities, each with its own set of permissions and limitations. For example, a wallet could have an owner role with full access, a manager role with limited spending abilities, and a session key for frequent, low-risk transactions.

This granular control extends to the types of actions each role can perform. Permissions can be set to limit interactions to specific DeFi protocols, token types, or even particular on-chain actions like staking. This level of control is particularly valuable for institutional users, AI systems, or any application where risk management and operational security are paramount.

Subaccounts and Programmable Control

SWIG introduces the concept of subaccounts within a single wallet structure. This feature is particularly useful for payment providers or portfolio management applications, allowing them to create separate "accounts" for different purposes without the need to manage multiple wallets.

The wallet also offers programmable control options, including the ability to use Ethereum keys for authentication. This cross-chain compatibility makes it easier for projects built on Ethereum to transition their user base to Solana, potentially accelerating adoption of the Solana ecosystem.

Efficiency and Low Overhead

One of SWIG's most impressive features is its efficiency. By leveraging Solana's "zero-copy" functionality and employing careful optimization techniques, the SWIG team has managed to keep the computational overhead extremely low. A standard Solana transfer using SWIG adds only 1,300 compute units to the transaction, while an SPL token transfer adds 2,500 CUs.

This efficiency is crucial for maintaining Solana's high performance and low transaction costs, even as more complex wallet interactions become commonplace. It ensures that the benefits of smart wallet functionality don't come at the cost of network efficiency or user experience.

Open Source and Developer-Friendly

Anagram has made SWIG open source, providing developers with a wealth of resources to start building with this new technology. This includes TypeScript examples, an SDK, and various code samples developed in collaboration with partners. By open-sourcing SWIG, Anagram aims to foster innovation and encourage widespread adoption of this new wallet standard within the Solana ecosystem.

Facts + Figures

  • SWIG adds only 1,300 compute units (CUs) overhead for a Solana transfer
  • SPL token transfers using SWIG have an overhead of about 2,500 CUs
  • SWIG allows for multiple authorities within a single wallet, each assigned different roles
  • The wallet supports fine-grained permissions, including token allowlists and action-specific controls
  • SWIG enables authentication with both Solana and Ethereum keys
  • The wallet supports the creation of subaccounts within a single SWIG instance
  • Anagram has open-sourced SWIG, including TypeScript examples and an SDK
  • SWIG is already being developed with embedded wallet providers, custodians, large exchanges, and AI projects
  • The project leverages Solana's account-based architecture and high transaction speed
  • SWIG enables programmable money movements, subscription payments, and time-based authorizations

Top quotes

  1. "Wallets as we all know, you know, really start with the basics of an EOA... But more and more we've seen, you know, these wallet apps that make it easier and easier to kind of abstract some of these more complex interactions and make it easier to operate on chain."
  1. "Today we're really trying to focus on the next evolution of wallets, which is smart wallets. Making it really really easy for programmable money movements."
  1. "We want to make sure that we're not making these transactions significantly more expensive just by introducing smart wallets."
  1. "What's really core to kind of the heart of SWIG is this fine-grained permission system."
  1. "We try to abstract as much the complexity away of using SWIG as possible so you can just focus on creating better user experiences for your users."

Questions Answered

What is SWIG?

SWIG is a next-generation smart wallet solution developed by Anagram for the Solana blockchain. It goes beyond traditional externally owned accounts (EOAs) to offer programmable money movements, fine-grained permissions, and subaccounts. SWIG is designed to make it easier for developers to create sophisticated DeFi applications while maintaining high efficiency and low computational overhead.

How does SWIG improve upon traditional crypto wallets?

SWIG improves upon traditional crypto wallets by offering programmable control, role-based permissions, and subaccounts. Unlike standard wallets where users manage a single private key, SWIG allows for multiple authorities with different roles and permissions. It also supports various authentication methods and enables complex, automated transactions that were previously difficult or impossible with standard EOAs.

What makes SWIG particularly suitable for Solana?

SWIG is tailored for Solana's unique features, including its account-based architecture and high-speed, low-cost transactions. The wallet takes advantage of Solana's "zero-copy" functionality to minimize computational overhead, adding only 1,300 compute units for a standard Solana transfer. This efficiency allows SWIG to enable complex wallet functionality without compromising Solana's performance advantages.

How does SWIG's permission system work?

SWIG's permission system allows wallet owners to define specific roles and authorities, each with its own set of permissions and limitations. These can include restrictions on which DeFi protocols can be interacted with, which tokens can be transferred, and what types of actions (like staking or trading) are allowed. This granular control enables sophisticated risk management and operational security for various use cases.

Can SWIG work with other blockchains besides Solana?

While SWIG is built for Solana, it does offer some cross-chain compatibility features. Notably, it supports authentication using Ethereum keys, making it easier for Ethereum-based projects to transition their users to Solana. However, the core functionality of SWIG is designed to leverage Solana's unique capabilities.

How can developers start using SWIG?

Anagram has open-sourced SWIG, providing developers with various resources to start building with the technology. These include TypeScript examples, an SDK, and code samples developed in collaboration with partners. Developers can access these resources and learn more about SWIG at onswig.com.

What kinds of new applications does SWIG enable?

SWIG enables a wide range of new applications in the DeFi space. These include subscription payment systems, programmable hot wallets with customizable limits, AI-driven trading systems with fine-grained permissions, and simplified multi-account management for exchanges or payment providers. The flexibility of SWIG's permission system also makes it valuable for institutional users requiring robust security measures.

How does SWIG maintain efficiency while offering advanced features?

SWIG maintains efficiency through careful optimization and by leveraging Solana's "zero-copy" functionality. The team behind SWIG has focused on minimizing computational overhead, resulting in very low additional compute units for transactions (1,300 CUs for a Solana transfer, 2,500 CUs for an SPL transfer). This ensures that the advanced features of SWIG don't come at the cost of increased transaction fees or reduced network performance.


Solana 🧭 Compass
Solana 🧭 Compass
@SolanaCompass

Solana Compass is an independent Solana analytics and staking platform, operating a validator on Solana mainnet since September 2021. Its network statistics and...


Comments

Please login to leave a comment.


Solana tokens

Solana Token Markets

Explore all tokens →