Installation
How to install @qubic.org/rpc and configure your project.
bun add @qubic.org/rpcnpm install @qubic.org/rpcpnpm add @qubic.org/rpcPeer 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/typesnpm install @qubic.org/typespnpm add @qubic.org/typesTypeScript
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.