QubicTypeScript

Live client

createLiveClient — factory function for real-time tick data, balance queries, transaction broadcast, asset lookups, and contract calls.

createLiveClient targets the Qubic live API at https://rpc.qubic.org/live/v1. Use it for current state: the active tick, account balances, broadcasting transactions, and querying smart contracts.

Every method returns Result<T, QubicRpcError>: { ok: true, value } on success, { ok: false, error } on failure. There are no thrown exceptions.

createLiveClient(options?)

import { createLiveClient } from "@qubic.org/rpc"

const live = createLiveClient()

If you also need the archive client, use createQubicClient instead — it creates both from a single options object.

Options

NameTypeDefaultDescription
baseUrlstring"https://rpc.qubic.org/live/v1"Live API base URL
signalAbortSignalDefault signal applied to every request
fetch(input: Request) => Promise<Response>global fetchCustom fetch implementation

On this page