Developers / 01

Integrate against published evidence

Confirm the active proxy, network and settlement token, load the checked-in ABI, then calculate fees from the contract rather than hard-coding historical values.

Evidence scope · implementation, public chain state, third-party reports, operator disclosures

Quick start

Verify network

Arbitrum One chain ID is 42161.

Load proxy ABI

Use the active proxy with StockTrading.json.

Read configuration

Read settlement token, factory, fee, asset fee and minimum fee.

Approve exact assets

Show spender and requested amount before ERC-20 approval.

const provider = new ethers.BrowserProvider(window.ethereum);
const signer = await provider.getSigner();
const network = await provider.getNetwork();
if (network.chainId !== 42161n) throw new Error('Switch to Arbitrum One');
const trading = new ethers.Contract(TRADING_PROXY, STOCK_TRADING_ABI, signer);
const fee = await trading.calculateFee(orderValue, 1);

REST API

Portfolio reads and signature-authorized cancellation.