JSPM

  • Created
  • Published
  • Downloads 1818
  • Score
    100M100P100Q129565F
  • License ISC

torus solana wallet adapter for web3auth

Package Exports

  • @web3auth/torus-solana-adapter
  • @web3auth/torus-solana-adapter/dist/torusSolanaAdapter.cjs.js
  • @web3auth/torus-solana-adapter/dist/torusSolanaAdapter.esm.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@web3auth/torus-solana-adapter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Web3Auth Torus Solana Wallet Adapter

npm version minzip

Web3Auth is where passwordless auth meets non-custodial key infrastructure for Web3 apps and wallets. By aggregating OAuth (Google, Twitter, Discord) logins, different wallets and innovative Multi Party Computation (MPC) - Web3Auth provides a seamless login experience to every user on your application.

Torus solana adapter allows allows your Web3Auth Instance to connect with torus wallet for solana blockchain.

📖 Documentation

Read more about the Web3Auth Torus Solana Wallet Adapter in the official Web3Auth Documentation.

📄 Basic Details

🔗 Installation

npm install --save @web3auth/torus-solana-adapter

🩹 Example

import { SolanaWalletAdapter } from "@web3auth/torus-solana-adapter";
const solanaWalletAdapter = new SolanaWalletAdapter({
  adapterSettings: {
    modalZIndex: 99999,
  },
  loginSettings: {
    loginProvider: "google",
  },
  initParams: {
    buildEnv: "testing",
  },
  chainConfig: {
    chainNamespace: CHAIN_NAMESPACES.SOLANA,
    rpcTarget: "https://api.testnet.solana.com",
    blockExplorer: "https://explorer.solana.com",
    chainId: "0x2",
    displayName: "testnet",
    ticker: "sol",
    tickerName: "solana",
  },
});

// it will add/update  the torus-solana adapter in to web3auth class
web3auth.configureAdapter(solanaWalletAdapter);

Checkout the examples for your preferred blockchain and platform in our examples repository

🌐 Demo

Checkout the Web3Auth Demo to see how Web3Auth can be used in your application.

💬 Troubleshooting and Discussions

  • Have a look at our GitHub Discussions to see if anyone has any questions or issues you might be having.
  • Checkout our Troubleshooting Documentation Page to know the common issues and solutions
  • Join our Discord to join our community and get private integration support or help with your integration.