TypeScript
Build and sign every Vordium operation with ethers.js and fetch.
Vordium operations are standard EIP-712 typed data, so ethers.js signs all of them. You need:
npm install ethersThe domain
import { keccak256, concat, getBytes } from 'ethers'
// each tag is the ASCII text of the domain's tag and the byte 0x01, as hex
const TAG = { VordCore: '0x564f524449554d5f564f5244434f524501', VordexSession: '0x564f524449554d5f564f5244455853455353494f4e01' }
// read chain_id and genesis_sha256 from GET /status, and check them against the network spec first
function domain(name: 'VordCore' | 'VordexSession', chainId: number, genesisSha256: string) {
return {
name, version: '1', chainId,
verifyingContract: '0x0000000000000000000000000000000000001002',
salt: keccak256(concat([TAG[name], getBytes('0x' + genesisSha256)])),
}
}The types
Every type string is on the Signing page; in ethers each becomes a list of { name, type }
fields in the same order. The TypeScript quickstart builds SessionCreate,
PlaceOrder and CancelOrder and sends them — a complete, tested program.
A read
const API = 'https://testnet.vordex.xyz/chain'
const { prices } = await (await fetch(`${API}/oracle/prices`)).json()
for (const p of prices.slice(0, 3)) console.log(p.symbol, p.mark_price) // this list carries plain decimal pricesNetwork facts last checked against the network 2026-10-22 13:00:37 UTC · mainnet spec v28 · testnet spec v8
Python SDK
Install the published SDK, choose a network, and the modules it offers — orders, sessions, agents, feeds and the bridge.
MCP server
Connect Claude, Cursor or your own AI agent to Vordium through the Model Context Protocol — read markets and accounts, and trade as an agent whose limits the chain enforces.