QubicTypeScript

Installation

How to install @qubic.org/rpc and configure your project.

bun add @qubic.org/rpc
npm install @qubic.org/rpc
pnpm add @qubic.org/rpc

Peer dependencies

@qubic.org/rpc requires @qubic.org/types as a peer dependency. It is used for branded identity and hash types (Identity, TxHash) that appear in request parameters and response shapes.

bun add @qubic.org/types
npm install @qubic.org/types
pnpm add @qubic.org/types

TypeScript

No special tsconfig.json settings are required. The package ships with declaration files and targets ES2020. If your project targets an older environment, ensure your bundler is configured to transpile the package.

The package is published as ESM only. CommonJS (require) is not supported. Use "type": "module" in your package.json or a bundler that handles ESM imports.

On this page