Skip to article
CogniTech.Docs

Gloam SDK integration

Installed SDK entry points, deployment checks, and the division between protocol and app.

On this page

Initialization and execution

The installed package is @gloamtrade/sdk 0.11.1. CogniTech checks mainnetNetwork("elysium"), elysiumMainnetConfig(), the pool address agreement, USDC precision, and the production ceremony for chain 99901. The app creates separate Viem clients for ordinary RPC and historical log reads.

typescript
import { elysiumMainnetConfig, mainnetNetwork, ceremonyForChainId } from "@gloamtrade/sdk";

const network = mainnetNetwork("elysium");
const deployment = elysiumMainnetConfig();
if (!network || !deployment || ceremonyForChainId(deployment.chainId) !== "production") {
  throw new Error("Elysium Gloam mainnet configuration is unavailable.");
}

Integration entry points

AreaSDK functions used
Deposit and withdrawalreadDepositLimit, depositLimitProblem, cashOutFeeLive, buildShieldBoundIntent, buildUnshieldIntent
TransfersbuildPrivateSendIntent, recipient sealing, short claim encoding
ProofsartifactProver, circuitArtifactFiles, circuitArtifactUrls
TreecreateTreeSync, assertTreeMatchesChain
Receive and requestgenerateReceiveKey, openIncomingPayment, scanIncomingPayments, sweepReceivedNote, buildPaymentRequestLink
SubmissionrelayStatus and relayIntent, plus a memo submission path when the board is verified

The browser provider holds the unlocked session in memory and publishes only the view needed by the interface. It validates the scope before signing or submitting and rechecks public evidence when publishing balances. The SDK’s additional networks or capabilities do not automatically become supported screens.

See Gloam SDK, contract configuration, and relayer behavior.