eclipse-global-wallet
v0.0.6
Published
Eclipse Global Wallet is a library to support Dynamic Global Wallets
Maintainers
Readme
Eclipse-global-wallet
Documentation • GitHub • NPM • Discord
- This package is plug-and-play. Install it, import one line, and your app can discover the Eclipse Global Wallet.
- No configuration or editing of this package is required.
Install
npm i eclipse-global-wallet
# or
yarn add eclipse-global-wallet
# or
pnpm add eclipse-global-walletQuick Start
Import once at application startup to register the wallet with the Solana Wallet Standard:
import "eclipse-global-wallet/solana";That’s it. Any Solana-standard compatible library or dApp will now discover Eclipse Global Wallet.
Examples
React (Vite)
// src/main.tsx
import "eclipse-global-wallet/solana"; // registers the wallet
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
ReactDOM.createRoot(document.getElementById("root")!).render(<App />);Next.js (client entry)
// app/providers.tsx or pages/\_app.tsx
"use client";
import "eclipse-global-wallet/solana";
export default function Providers({ children }: { children: React.ReactNode }) {
return <>{children}</>;
}Requirements A Solana-standard compatible integration in your app (or direct use of the standard).
Your dApp should point to an Eclipse RPC when using @solana/web3.js, e.g.:
import { Connection } from "@solana/web3.js";
const connection = new Connection("<your-eclipse-rpc>", "confirmed");Troubleshooting
Ensure the package is installed and up-to-date:
npm ls eclipse-global-wallet
npm i eclipse-global-wallet@latestLicense ISC © Eclipse Labs
Links Eclipse: https://www.eclipsenetwork.xyz
