QubicTypeScript

Installation

How to add @qubic.org/wallet to your project.

bun add @qubic.org/wallet
npm install @qubic.org/wallet
pnpm 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/types
npm install @qubic.org/wallet @qubic.org/crypto @qubic.org/types
pnpm add @qubic.org/wallet @qubic.org/crypto @qubic.org/types

buildTransfer 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.