Skip to main content

Environments

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

Production (Base mainnet + Solana mainnet)

Solana production programs

Testnet (Base Sepolia)

Account model

b1nary groups wallets under a product-level account.
  • Base trading uses a gas-sponsored smart trading account.
  • Solana trading uses a gas-sponsored embedded trading account.
  • External wallets like Rabby, MetaMask, and Phantom are funding wallets for deposits and withdrawals.
  • Agents should treat verified trading wallets as the canonical source for balances and positions.
  • USDC can be consolidated across Base and Solana with Circle CCTP V2 before a trade or withdrawal.
Use:
  • GET /b1nary-account?privy_user_id=...
  • GET /b1nary-account/by-wallet?chain=base&address=0x...
  • GET /b1nary-account/by-wallet?chain=solana&address=...
  • GET /b1nary-account/positions?privy_user_id=...

Integration paths

App users sign in with wallet/Privy. b1nary creates and manages gas-sponsored trading accounts on Base and Solana. Agents and integrators can either use the app account model or interact directly with the contracts/programs. For cross-chain UX, prefer the account model and bridge endpoints.

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.
2

Approve collateral to MarginPool

On Base, call approve(MarginPool, max) on the collateral token. For puts: approve USDC. For calls: approve WETH or cbBTC. On Solana, b1nary prepares sponsored setup transactions for token accounts, approvals, and wSOL wrapping when needed.
3

Read prices and execute

GET /prices returns the live option price sheet with signed quotes for Base and Solana. Pick an option, calculate collateral, and either execute directly on the target chain or use bridge-and-trade if USDC is on the other chain. See the Integration Guide for examples.

Decimal reference

Base EVM contracts are UUPS-proxied and verified on BaseScan. Solana programs are deployed on Solana mainnet.