0.0.1-alpha.16 • Published 25 days ago
@xlabs-libs/wallet-aggregator-solana v0.0.1-alpha.16
Wallet Aggregator - Solana
Implements the base abstractions for the Solana blockchain.
The package leverages on @solana/wallet-adapter-base
, which already provides an abstraction over wallets from the solana ecosystem. The SolanaWallet
class functions as a wrapper over it.
Usage
import {
PhantomWalletAdapter,
SolflareWalletAdapter,
} from "@solana/wallet-adapter-wallets";
import { clusterApiUrl } from "@solana/web3.js";
import {
getSolanaStandardWallets,
SolanaWallet,
} from "@xlabs-libs/wallet-aggregator-solana";
const cluster = "mainnet";
const url = clusterApiUrl("mainnet-beta");
const connection = new Connection(url);
const martian = new SolanaWallet(new PhantomWalletAdapter(), connection);
// get those wallets that support the wallet standard
const standardWallets = getSolanaStandardWallets(connection);
// create wallets using the adapters
const adapterWallets = [
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
].map((adapter) => new SolanaWallet(adapter, connection));
const solanaWallets: SolanaWallet[] = [...standardWallets, ...adapters];
0.0.1-alpha.16
25 days ago
0.0.1-alpha.15
3 months ago
0.0.1-alpha.14
4 months ago
0.0.1-alpha.12
10 months ago
0.0.1-alpha.13
10 months ago
0.0.1-alpha.11
11 months ago
0.0.1-alpha.10
1 year ago
0.0.1-alpha.9
1 year ago
0.0.1-alpha.8
1 year ago
0.0.1-alpha.7
1 year ago
0.0.1-alpha.6
1 year ago
0.0.1-alpha.5
1 year ago
0.0.1-alpha.4
1 year ago
0.0.1-alpha.3
1 year ago
0.0.1-alpha.2
1 year ago
0.0.1-alpha.1
1 year ago
0.0.1-alpha
1 year ago