@quantabit/wallet-sdk
v1.0.2
Published
QuantaBit Wallet SDK - Multi-chain wallet binding, balance queries, and transaction history
Maintainers
Readme
@quantabit/wallet-sdk
QuantaBit Wallet System SDK - Multi-chain wallet binding, balance queries, and transaction history
📦 Installation
npm install @quantabit/wallet-sdk
# or
yarn add @quantabit/wallet-sdk🚀 Quick Start
1. Setup Provider
import { WalletProvider } from "@quantabit/wallet-sdk";
import "@quantabit/wallet-sdk/styles.css";
function App() {
return (
<WalletProvider
apiUrl="https://api.example.com/v1"
token="your-auth-token"
language="en"
onConnect={(wallet) => console.log("Wallet connected:", wallet)}
>
<YourComponent />
</WalletProvider>
);
}2. Using Components
import { WalletCard, TransactionList } from '@quantabit/wallet-sdk';
// Wallet card
<WalletCard showAssets showActions />
// Transaction list
<TransactionList pageSize={20} showFilter />3. Using Hooks
import { useWallet } from "@quantabit/wallet-sdk";
function MyComponent() {
const {
wallets, // Bound wallet list
primaryWallet, // Primary wallet
assets, // Asset list
totalBalance, // Total assets (USD)
loading,
bindWallet, // Bind wallet
unbindWallet, // Unbind wallet
copyAddress, // Copy address
} = useWallet();
return <div>...</div>;
}📚 Components
| Component | Description |
| --- | --- |
| WalletCard | Wallet card showing balance, address, and assets |
| TransactionList | Transaction list with filtering |
📖 Supported Chains
import { ChainType } from "@quantabit/wallet-sdk";
ChainType.ETHEREUM; // Ethereum
ChainType.BSC; // BNB Chain
ChainType.POLYGON; // Polygon
ChainType.SOLANA; // Solana
ChainType.ARBITRUM; // Arbitrum
ChainType.OPTIMISM; // Optimism
ChainType.BASE; // Base📄 License
MIT License
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
