Skip to main content

Environments

b1nary runs on two environments. Use testnet for development and testing, production for real trading.

Production (Base mainnet)

ChainBase (chain ID 8453)
APIhttps://api.b1nary.app
Apphttps://b1nary.app
Block explorerhttps://basescan.org
RPChttps://mainnet.base.org
AssetsETH, cbBTC. Puts collateralized with USDC, calls with WETH or cbBTC.

Testnet (Base Sepolia)

ChainBase Sepolia (chain ID 84532)
APIhttps://optionsprotocolbackend-staging.up.railway.app
Apphttps://staging.b1nary.app
Block explorerhttps://sepolia.basescan.org
RPChttps://sepolia.base.org
AssetsETH, BTC (mock tokens). No real money.

Setup for agents

1

Get test tokens (testnet only)

Call POST /faucet with {"address": "0xYourWallet"}. You receive 0.005 ETH (gas), 50 LETH (test WETH), and 100,000 LUSD (test USDC). One claim per wallet.
curl -X POST https://optionsprotocolbackend-staging.up.railway.app/faucet \
  -H "Content-Type: application/json" \
  -d '{"address": "0xYourWalletAddress"}'
2

Approve collateral to MarginPool

Call approve(MarginPool, max) on the collateral token. For puts: approve USDC. For calls: approve WETH (or cbBTC). One transaction per token.
3

Read prices and execute

GET /prices returns the live option price sheet with signed quotes. Pick an option, calculate collateral, and call executeOrder on BatchSettler. See the Integration Guide for a complete example.

Decimal reference

TypeDecimalsExample
oToken amounts8100000000 = 1 ETH notional
Strike prices (on-chain)8240000000000 = $2,400
USDC65000000 = 5 USDC
WETH181000000000000000000 = 1 WETH
cbBTC8100000000 = 1 cbBTC
All contracts are UUPS-proxied and verified on BaseScan.