@trezoa/wallet-standard-wallet-adapter-base
v1.1.4
Published
A base wallet adapter for the Trezoa ecosystem that implements the Wallet Standard interface.
Readme
@trezoa/wallet-standard-wallet-adapter-base
A base wallet adapter for the Trezoa ecosystem that implements the Wallet Standard interface.
Installation
npm install @trezoa/wallet-standard-wallet-adapter-baseDescription
This package provides a base implementation for wallet adapters that bridge between the Wallet Standard and Trezoa wallet adapters. It allows wallets that implement the Wallet Standard to be used with existing Trezoa wallet adapter interfaces.
Features
- ✅ Wallet Standard compliance
- ✅ Full Trezoa transaction support (legacy and versioned)
- ✅ Sign and send transaction capabilities
- ✅ Message signing support
- ✅ Sign-in with Trezoa support
- ✅ TypeScript support with full type definitions
Usage
import { StandardWalletAdapter } from '@trezoa/wallet-standard-wallet-adapter-base';
import type { WalletAdapterCompatibleStandardWallet } from '@trezoa/wallet-adapter-base';
// Create adapter from a Wallet Standard compatible wallet
const adapter = new StandardWalletAdapter({
wallet: standardWallet as WalletAdapterCompatibleStandardWallet
});
// Use like any other Trezoa wallet adapter
await adapter.connect();
const signature = await adapter.sendTransaction(transaction, connection);Supported Features
Transaction Signing
signTransaction()- Sign a single transactionsignAllTransactions()- Sign multiple transactionssendTransaction()- Sign and send a transaction
Message Signing
signMessage()- Sign arbitrary messages
Authentication
signIn()- Sign-in with Trezoa (SIWS)
Requirements
- Node.js >= 16
- A wallet that implements the Wallet Standard
- Trezoa web3.js v1.98.0 or higher
Dependencies
This package requires the following peer dependencies:
{
"@trezoa/web3.js": "^1.98.0",
"bs58": "^6.0.0"
}Related Packages
@trezoa/wallet-adapter-base- Base wallet adapter interfaces@trezoa/wallet-standard-features- Trezoa-specific Wallet Standard features@wallet-standard/base- Core Wallet Standard types
License
Apache-2.0
Contributing
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our GitHub repository.
Support
For support and questions:
- GitHub Issues: trezoa-team/wallet-standard
- Community: Trezoa Discord
