QubicTypeScript

Archive client

createQueryClient — factory function for historical transaction lookup, tick data, event logs, and computor history.

createQueryClient targets the Qubic archive API at https://rpc.qubic.org/query/v1. Use it for historical queries: looking up past transactions, fetching tick data, reading event logs, and checking indexer state.

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

createQueryClient(options?)

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

const archive = createQueryClient()

If you also need the live client, use createQubicClient instead.

Options

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

On this page