Installation
How to add @qubic.org/wallet to your project.
bun add @qubic.org/walletnpm install @qubic.org/walletpnpm add @qubic.org/wallet@qubic.org/wallet has two required peer dependencies. Install all three together:
bun add @qubic.org/wallet @qubic.org/crypto @qubic.org/typesnpm install @qubic.org/wallet @qubic.org/crypto @qubic.org/typespnpm add @qubic.org/wallet @qubic.org/crypto @qubic.org/typesbuildTransfer and buildScTransaction are async — they call sign from @qubic.org/crypto internally. Always await them.
The vault encryption (createVault, unlockVault) uses the Web Crypto API (globalThis.crypto). This is available natively in Bun, Node.js 19+, and all modern browsers. On Node.js 18, it is available as globalThis.crypto without any import.