API reference
TypeScript (@qorechain/sdk)
The TypeScript packages ship full TSDoc on their public surface, and a
TypeDoc configuration is wired into the core package. To
generate the HTML API reference for @qorechain/sdk:
# from the monorepo root
pnpm --filter @qorechain/sdk docs:api
This runs the docs:api script (typedoc) defined in packages/ts, producing
the API site under that package's docs/ output directory. The generated output
is not committed — run the command locally or wire it into your own docs
pipeline.
The documentation site's own TypeDoc config lives at docs/typedoc.json; it
points at the core package's entry point so you can regenerate from the docs
project as well.
Public surface at a glance
The deliberate, supported exports of @qorechain/sdk:
- Client:
createClient, typesQoreChainClient,CreateClientOptions,ConnectTxOptions,ClientFees. - Networks: presets, lookup/list helpers, and config types (networks module).
- Utilities:
toBase/fromBase(denom), address encoding/validation. - Accounts:
generateMnemonic,validateMnemonic,deriveNativeAccount,deriveEvmAccount,deriveSvmAccount; account types. - Unified accounts (0.6.0):
deriveUnifiedAccount,unifiedAccountFromSeed,addressesFrom20,qoreAddresses,unifiedAccountFromPhantomSignature,connectPhantomUnified. - PQC:
generatePqcKeypair,pqcSign,pqcVerify, length constants, algorithm IDs/helpers,PqcSigner,HybridSigner,buildHybridSignatureExtension,HYBRID_SIG_TYPE_URL. - Read clients:
RestClient(incl.getPermissionSchema),JsonRpcClient,QorClient, HTTP helpers (getJson,postJsonRpc,buildUrl,joinUrl,QoreHttpError); typed query clients for every module, includingamm,license,abstractaccount(permissionSchema), and themultilayerAnchor/Anchorsstate-anchor queries. - Cross-VM:
getCrossVmMessage,getPendingCrossVmMessages,getCrossVmParams. - CosmWasm:
createCosmWasmClient,connectCosmWasmSigner,queryContractSmart,getContractInfo,instantiate,execute,uploadCode. - Transactions:
estimateFee,directSignerFromPrivateKey,TxClient,MSG_SEND_TYPE_URL, hybrid helpers (encodeHybridExtension,attachHybridExtension,buildHybridTx,signAndBroadcastHybrid); structured error decoding viadecodeTxError(incl.abstractaccountcodes 5/6/10/11 andpqccode 21). - eth-native signing (0.6.0):
signClassicalEth,signHybridEth(secp256k1 overkeccak256(SignDoc), pubkey type/cosmos.evm.crypto.v1.ethsecp256k1.PubKey, plus the ML-DSA-87 hybrid extension),EthNativeSigner,accountAuthInfo. - Authenticator lanes (0.7.0): message composers
msg.abstractaccount.registerAuthenticator/revokeAuthenticator/executeEvm/executeCosmosandmsg.pqcrotation (also exported standalone asexecuteEvmMsg,executeCosmosMsg,registerEthAuthenticatorMsg,revokeAuthenticatorMsg,rotatePqcKeyMsg); byte-exact sign-bytesevmAuthSignBytes,cosmosAuthSignBytes,rotationSignBytes; wallet buildersbuildPhantomExecuteEvm/buildPhantomExecuteCosmos(ed25519signMessage) andbuildMetaMaskExecuteEvm/buildMetaMaskExecuteCosmos(EIP-191personal_sign); key rotationrotatePqcKeyMsgFromMnemonic,derivePqcLegacy. See the Authenticators guide.
@qorechain/evm
createEvmClient, evmAccountFromPrivateKey, the erc20 helpers, contract
wrappers (deployContract, readContract, writeContract), the precompiles
bindings, PRECOMPILE_ADDRESSES, and the ABIs (ERC20_ABI, IQORE_PQC_ABI,
IQORE_AI_ABI, IQORE_CONSENSUS_ABI).
@qorechain/svm
createSvmClient, DEFAULT_SVM_RPC_URL, svmKeypairFromSecretKey,
svmAddress, the program builders (createMemoInstruction,
createTransferTokenInstruction, createAssociatedTokenAccountInstruction,
getAssociatedTokenAddress, createInvokeInstruction), and the program-id
constants.
Other languages
| Language | Generated docs | Install |
|---|---|---|
| Python | PyPI — docstrings on the public API | pip install qorechain-sdk at 0.7.0 (import qorsdk) |
| Go | pkg.go.dev (godoc) | go get github.com/qorechain/qorechain-sdk/packages/go/... (tag packages/go/v0.7.0) |
| Rust | docs.rs (rustdoc) | cargo add qorechain-sdk — latest published crate (0.7.0 from the repo; import qorechain) |
| Java | Maven Central javadoc | io.github.qorechain:qorechain-sdk:0.7.0 |
Each package mirrors the same surface (network presets, denom/address
utilities, HD derivation — including unified eth-native accounts — PQC
primitives and hybrid signing, typed messages and queries, the authenticator
lanes, and REST + qor_ JSON-RPC read clients), documented inline in the
source so the language-native doc tooling renders it. The TypeScript wallet
builders (buildPhantom* / buildMetaMask*) and the browser-wallet adapters
are TypeScript-only.