@gorbag/wallet-adapter
v1.1.1
Published
[](https://www.npmjs.com/package/@gorbag/wallet-adapter) [](https://github.com/DavidNzube101/gorbag-wallet/blob/main/packages/gorbag-
Readme
Gorbag Wallet Adapter
Wallet adapter for Gorbag Wallet that enables dApps to connect using the standard Solana wallet interface.
Installation
npm install @gorbag/wallet-adapterOverview
The Gorbag Wallet Adapter allows decentralized applications (dApps) to connect to the Gorbag Wallet using the same standard interface as other Solana wallets like Phantom and Solflare. This implementation follows the Solana wallet standard, making it easy for dApps to integrate Gorbag support alongside other wallet options.
Features
- Full compatibility with standard Solana wallet adapter patterns
- Support for transaction signing (legacy and versioned)
- Message signing capabilities
- Connection and disconnection handling
- Event emission for wallet state changes
- iOS support with universal link handling
Usage
import { GorbagWalletAdapter } from '@gorbag/wallet-adapter';
// Create adapter instance
const adapter = new GorbagWalletAdapter();
// Connect to wallet
await adapter.connect();
// Sign a transaction
const signature = await adapter.signTransaction(transaction);
// Send a transaction
const signature = await adapter.sendTransaction(transaction, connection);Compatibility
This adapter works with the Gorbag browser extension when it injects the standard wallet interface into the page (window.gorbag.solana or window.solana).
License
Apache 2.0 - See LICENSE for details.
Author
David Nzube (Skipp)
