@qorechain/qorex-cosmos-kit
v0.1.0
Published
QoreX wallet for cosmos-kit, with the QoreChain signAndBroadcast path.
Maintainers
Readme
@qorechain/qorex-cosmos-kit
QoreX for cosmos-kit, with the QoreChain signAndBroadcast path. For new dApps prefer Interchain Kit, the actively maintained successor, with @qorechain/qorex-interchain-kit.
npm install @qorechain/qorex-cosmos-kit @cosmos-kit/coreimport { ChainProvider } from "@cosmos-kit/react";
import { wallets as qorexWallets } from "@qorechain/qorex-cosmos-kit";
<ChainProvider chains={chains} assetLists={assetLists} wallets={[...qorexWallets]}>
<App />
</ChainProvider>;Sending a transaction on QoreChain
QoreChain requires a hybrid secp256k1 + ML-DSA-87 (FIPS 204) signature. Only the wallet holds the ML-DSA-87 key, so on qorechain-vladi and qorechain-diana the dApp hands the messages to QoreX and QoreX builds, signs and broadcasts:
import { qorexSignAndBroadcast } from "@qorechain/qorex-cosmos-kit";
const { txHash, code, height, shield } = await qorexSignAndBroadcast({
chainId: "qorechain-vladi",
messages: [{ typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: msgSendBytes }],
memo: "",
});The same call is available on the client: (chainWallet.client as QorexClient).signAndBroadcast(request).
Behaviour
| Call | Result |
|---|---|
| enable, getAccount, getKey | QoreX enable / getKey; pubKey and address converted from number[] to Uint8Array |
| getOfflineSigner(chainId, type) | direct signer for every preference, including cosmos-kit's default "amino" |
| signer signDirect on QoreChain | throws QOREX_USE_SIGN_AND_BROADCAST |
| signer signDirect on another chain id | forwarded to QoreX signDirect; the returned signed document is QoreX's |
| getOfflineSignerAmino, signAmino | throw QOREX_AMINO_REFUSED: refused by design, Amino JSON cannot carry the hybrid ML-DSA-87 signature |
| signArbitrary | throws QOREX_NOT_SUPPORTED_YET (planned in a future QoreX version) |
| sendTx | not provided; broadcast through your RPC endpoint |
QoreX currently serves the QoreChain chain ids only; it rejects other chain ids with "QoreX: unsupported chain".
Planned: a future QoreX release will add the hybrid layer itself in signDirect when the SignDoc has none, and will declare the capability signDirectAddsPqcLayer (QOREX_CAPABILITY_SIGN_DIRECT_ADDS_PQC_LAYER). When it is declared, the signer forwards QoreChain SignDocs too. QoreX may then raise the gas limit and fee, so always broadcast the signed document the signer returns.
Errors are QorexIntegrationError with a stable code; test it with isQorexIntegrationError(err, "QOREX_USE_SIGN_AND_BROADCAST").
Guides: https://github.com/qorechain/qorex-integrations.
Apache-2.0. Copyright 2026 QoreChain Association.
