wallet-adapter VS solana-web3.js

Compare wallet-adapter vs solana-web3.js and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
wallet-adapter solana-web3.js
12 12
1,355 1,827
7.7% 11.5%
8.7 9.9
6 days ago 1 day ago
TypeScript TypeScript
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

wallet-adapter

Posts with mentions or reviews of wallet-adapter. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-15.
  • Creating a Custom Solana Connect Wallet UI with React and Chakra UI
    5 projects | dev.to | 15 Feb 2023
    If you have worked with the Solana Wallet Adapter before, you will know that it is very easy to set up a Connect Wallet button with a decent modal.
  • Getting Closer: The Mobile Era Of Web3 With Saga And Solana Mobile Stack
    1 project | /r/solana | 11 Nov 2022
    Mobile Wallet Adapter is an open protocol for connecting dApps and wallets on mobile devices. Mobile Wallet Adapter is for any Android device, not just Saga – and it’s ready now. There are two wallets available today that support the Mobile Wallet Adapter protocol – Phantom and Solflare – with more wallets in the process of their own integrations. If you are a developer with an existing dApp, now is the time to upgrade with mobile support. You can find a guide to upgrading here.
  • Want some help with solana wallet integration.
    1 project | /r/brave_browser | 15 Aug 2022
    This is what we are using right now: https://github.com/solana-labs/wallet-adapter
  • Open Source JS Library - Create Your Own Solana NFT Marketplace in Minutes
    2 projects | /r/solana | 30 May 2022
    Note: Your website needs a way for users to connect their wallet, so we assume that you have Solana wallet adapter set up. This is likely to be the case if you have already done primary sales of your NFTs with Candy Machine v2 or Candy Machine v1.
  • Connect Solana wallets on Mobile Apps
    1 project | /r/solanadev | 3 May 2022
    Hello, I'm a mobile software engineer, and i am getting into web3 & solana. I looked for a solution to connect my app to a solana wallet using react native, but i don't seem to find any solution for this (react native or even mobile apps in general). Is there a solution like https://github.com/solana-labs/wallet-adapter for mobile apps ? Is connecting a solana wallet to a mobile app even possible as we speak ?
  • The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom
    6 projects | dev.to | 1 Apr 2022
    import './App.css'; import { useState } from 'react'; import { Connection, PublicKey } from '@solana/web3.js'; import { Program, Provider, web3 } from '@project-serum/anchor'; import idl from './idl.json'; import { PhantomWalletAdapter } from '@solana/wallet-adapter-wallets'; import { useWallet, WalletProvider, ConnectionProvider } from '@solana/wallet-adapter-react'; import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui'; require('@solana/wallet-adapter-react-ui/styles.css'); const wallets = [ /* view list of available wallets at https://github.com/solana-labs/wallet-adapter#wallets */ new PhantomWalletAdapter() ] const { SystemProgram, Keypair } = web3; /* create an account */ const baseAccount = Keypair.generate(); const opts = { preflightCommitment: "processed" } const programID = new PublicKey(idl.metadata.address); function App() { const [value, setValue] = useState(null); const wallet = useWallet(); async function getProvider() { /* create the provider and return it to the caller */ /* network set to local network for now */ const network = "http://127.0.0.1:8899"; const connection = new Connection(network, opts.preflightCommitment); const provider = new Provider( connection, wallet, opts.preflightCommitment, ); return provider; } async function createCounter() { const provider = await getProvider() /* create the program interface combining the idl, program ID, and provider */ const program = new Program(idl, programID, provider); try { /* interact with the program via rpc */ await program.rpc.create({ accounts: { baseAccount: baseAccount.publicKey, user: provider.wallet.publicKey, systemProgram: SystemProgram.programId, }, signers: [baseAccount] }); const account = await program.account.baseAccount.fetch(baseAccount.publicKey); console.log('account: ', account); setValue(account.count.toString()); } catch (err) { console.log("Transaction error: ", err); } } async function increment() { const provider = await getProvider(); const program = new Program(idl, programID, provider); await program.rpc.increment({ accounts: { baseAccount: baseAccount.publicKey } }); const account = await program.account.baseAccount.fetch(baseAccount.publicKey); console.log('account: ', account); setValue(account.count.toString()); } if (!wallet.connected) { /* If the user's wallet is not connected, display connect wallet button. */ return (
    ) } else { return (
    { !value && (Create counter) } { value && Increment counter } { value && value >= Number(0) ? (

    {value}

    ) : (

    Please create the counter.

    ) }
    ); } } /* wallet configuration as specified here: https://github.com/solana-labs/wallet-adapter#setup */ const AppWithProvider = () => ( ) export default AppWithProvider;
  • Is there a library that unifies connecting to wallets similar to what Solana has?
    3 projects | /r/ethdev | 17 Mar 2022
    Solana has the wallet adapter library which provides a convenient interface for connecting to many different wallets. Is there anything similar for ETH or do I have to write and maintain custom logic for each different wallet?
  • TheWheel, a first experience programming on Solana
    3 projects | dev.to | 5 Mar 2022
    Code of TheWheel has been organized around the Solana–wallet-adapter project. I first ran a git clone command on the project before adding my files one by one in same repository.
  • Need help finding how to do auth with Solana wallets
    1 project | /r/solana | 25 Feb 2022
  • Trouble Importing Token from @solana/spl-token (npm and node)
    2 projects | /r/solana | 23 Feb 2022
    First line of the example here: https://github.com/solana-labs/wallet-adapter/issues/189

solana-web3.js

Posts with mentions or reviews of solana-web3.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-17.
  • Education Blog Post | HeliusLabs - How do Solana RPCs work?
    1 project | /r/solana | 6 Mar 2023
    In practice, no one really works with direct JSON-RPC requests like this (although you certainly can!). Most developers prefer working with RPC clients. The most commonly used one is the Solana Web3 JS library, which can be found here.
  • The fastest and most efficient way to learn Solana (for Solidity developers)
    3 projects | dev.to | 17 Nov 2022
    All Solana invocations must be done though the RPC, which is typically handled by Solana web3js. Unless you are handy with this library, you won’t be able to execute your smart contracts.
  • The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom
    6 projects | dev.to | 1 Apr 2022
    solana/web3.js - A Solana version of web3.js that seems to work pretty well, but the documentation was almost unusable for me
  • Bulk key pair generating
    1 project | /r/solana | 11 Mar 2022
    As much as I don’t really think you SHOULD do this, I would use the JavaScript api
  • Need help with linking a transaction request to my website
    2 projects | /r/solana | 14 Feb 2022
  • Solana and javascript?
    3 projects | /r/solana | 11 Feb 2022
    As others have said, they use Solana's JSON RPC to interact with the blockchain, in Solscan's case it's mostly fetching the data. For JavaScript we have an official SDK: @solana/web3.js
  • That's My Ape A blockchain-free chain of custody tool
    9 projects | news.ycombinator.com | 23 Dec 2021
    https://github.com/solana-labs/solana-web3.js

    Essentially what it comes down to is a user has a wallet, that is typically a web wallet via extension, but you can of course use hardware wallets if you'd like, however those do require you to own one, so if you just want to play around with the ecosystem, these extensions are the easiest to use. These above projects are javascript APIs that allow for interacting with wallets and onchain programs.

  • I want a Solana developer roadmap
    18 projects | /r/solana | 5 Dec 2021
    Intro to Programming on Solana https://paulx.dev/blog/2021/01/14/programming-on-solana-an-introduction/ Intro to Anchor Framework https://project-serum.github.io/anchor/getting-started/introduction.html Video Solana Core Concepts https://www.youtube.com/watch?v=4dNuMXBjpr0&list=PLilwLeBwGuK4teLcqyXavweEbveCjjRk0 Solana Tutorial | Solana for Developers https://www.youtube.com/watch?v=qNIhClYDjR8 Programming Solana (playlist) https://www.youtube.com/playlist?list=PL41Cw3fN3CfdbmhgxADwyDyIoDrxc22v2 Programming Solana Smart Contracts https://www.youtube.com/watch?v=i6Ycr5nhjH8 Figment Learn Pathway (playlist) https://www.youtube.com/playlist?list=PLkgTdjgP1aUAiqqbvVi3b0sSdxByd5KSX Programming Solana Smart Contracts | Hello World Anchor Tutorial https://www.youtube.com/watch?v=oD1umX\_DnUw Courses Building Smart Contracts on Solana https://solhack.com/courses/building-solana-smart-contracts-dapps-with-james-bachini/ How Rusty is Your Rustlang https://solhack.com/courses/how-rusty-is-your-rust-lang/ Programming on Solana an Introduction https://solhack.com/courses/programming-on-solana-an-introduction/ Solana Security Audit Workshop by Solend https://solhack.com/courses/solana-security-audit-workshop-by-solend/ Figment Solana-Pathway https://learn.figment.io/network-documentation/solana/solana-pathway . Docs Terminology https://docs.solana.com/terminology Transactions https://docs.solana.com/developing/programming-model/transactions Accounts https://docs.solana.com/developing/programming-model/accounts Runtime https://docs.solana.com/developing/programming-model/runtime Devnet Endpoint and Rate Limits https://docs.solana.com/cluster/rpc-endpoints#devnet Testnet Endpoint and Rate Limits https://docs.solana.com/cluster/rpc-endpoints#testnet On-chain Programs https://docs.solana.com/developing/on-chain-programs/overview Native Programs https://docs.solana.com/developing/runtime-facilities/programs JSON RPC API https://docs.solana.com/apps/jsonrpc-api Solana Program Library https://spl.solana.com/ Examples / Reference Implementations Hello World Example https://github.com/solana-labs/example-helloworld Serum DEX Example https://github.com/project-serum/anchor/blob/master/examples/swap/programs/swap/src/lib.rs Automated Market Maker + Swap Reference Implementation https://github.com/solana-labs/oyster-swap Borrow/Lend Reference Implementation https://github.com/solana-labs/oyster-lending Margin Reference Implementation https://github.com/solana-labs/oyster-margin . SDKs Go: https://github.com/dfuse-io/solana-go Go: https://github.com/portto/solana-go-sdk C#: https://github.com/bmresearch/Solnet C#: https://github.com/bmresearch/Solnet.Serum JS: https://github.com/solana-labs/solana-web3.js/ JS/TS: https://github.com/project-serum/serum-ts Java: https://github.com/skynetcapital/solanaj Java: https://github.com/skynetcapital/solanaj-programs Python: https://github.com/michaelhly/solana-py Python: https://github.com/serum-community/pyserum Swift: https://github.com/ajamaica/Solana.Swift Extra stuff: https://github.com/paul-schaaf/awesome-solana Tools Solana Explorers https://explorer.solana.com/ https://solscan.io/ https://solanabeach.io/transactions Command Line Interface https://docs.solana.com/cli SPL Token UI https://spl-token-ui.com/
  • Distribution of Solend users by deposits
    2 projects | /r/solend | 1 Dec 2021
    This library is pretty good https://solana-labs.github.io/solana-web3.js
  • Where is the latest version of solanaWeb3.min.js?
    1 project | /r/solana | 26 Oct 2021
    A website that is a year old (https://morioh.com/p/720daf27c8c8) gave this address: https://github.com/solana-labs/solana-web3.js/releases/download/v0.0.6/solanaWeb3.min.js

What are some alternatives?

When comparing wallet-adapter and solana-web3.js you can also consider the following projects:

complete-guide-to-full-stack-solana-development - Code examples for the blog post titled The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom

solana-py - Solana Python SDK

React - The library for web and native user interfaces.

solana-go-sdk - Solana Golang SDK

hardhat - Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.

anchor - ⚓ Solana Sealevel Framework

solana-escrow - Reference Implementation for the guide https://paulx.dev/blog/2021/01/14/programming-on-solana-an-introduction/

metaplex - A directory of what the Metaplex Foundation works on!

web3modal - A single Web3 provider solution for all Wallets

solanaj-programs - SolanaJ implementations for popular Solana programs such as Serum DEX.

zksync - zkSync: trustless scaling and privacy engine for Ethereum

rosetta-api - Reference Implementation Of The Rosetta API Open Standard For DLT Interoperability.