API Reference

Protocol Constants

Rollup RPC Node

Contracts

ContractMainnet AddressTestnet Address
Matching.sol0xeB8d770ec18DB98Db922E9D83260A585b9F0DeAD0x3cc154e220c2197c5337b7Bd13363DD127Bc0C6E
SubAccount.sol0xE7603DF191D699d8BD9891b821347dbAb889E5a50xb9ed1cc0c50bca7a391a6819e9cAb466f5501d73
ERC20.sol [USDC: 6 decimals]0x6879287835A86F50f784313dBEd5E5cCC5bb84810xe80F2a02398BBf1ab2C9cc52caD1978159c215BD
CashAsset.sol0x57B03E14d409ADC7fAb6CFc44b5886CAD2D5f02b0x6caf294DaC985ff653d5aE75b4FF8E0A66025928
TradeModule.sol0xB8D20c2B7a1Ad2EE33Bc50eF10876eD3035b5e7b0x87F2863866D85E3192a35A73b388BD625D83f2be
TransferModule.sol0x01259207A40925b794C8ac320456F7F6c8FE26360x0CFC1a4a90741aB242cAfaCD798b409E12e68926
DepositModule.sol0x9B3FE5E5a3bcEa5df4E08c41Ce89C4e3Ff01Ace30x43223Db33AdA0575D2E100829543f8B04A37a1ec
WithdrawalModule.sol0x9d0E8f5b25384C7310CB8C6aE32C8fbeb645d0830xe850641C5207dc5E9423fB15f89ae6031A05fd92
StandardRiskManager.sol0x28c9ddF9A3B29c2E6a561c1BC520954e5A33de5D0x28bE681F7bEa6f465cbcA1D25A2125fe7533391C
RFQ.sol0x9371352CCef6f5b36EfDFE90942fFE622Ab77F1D0x4E4DD8Be1e461913D9A5DBC4B830e67a8694ebCa

ETH Market

ContractMainnet AddressTestnet Address
BaseAsset.sol0x41675b7746AE0E464f2594d258CF399c392A179C
ERC20.sol [WETH: 18 decimals]0x3a34565D81156cF0B1b9bC5f14FD00333bcf6B93
Option.sol0x4BB4C3CDc7562f08e9910A0C7D8bB7e108861eB40xBcB494059969DAaB460E0B5d4f5c2366aab79aa1
Perp.sol0xAf65752C4643E25C02F693f9D4FE19cF23a095E30x010e26422790C6Cb3872330980FAa7628FD20294
PortfolioRiskManager.sol0xe7cD9370CdE6C9b5eAbCe8f86d01822d3de205A00xDF448056d7bf3f9Ca13d713114e17f1B7470DeBF

BTC Market

ContractMainnet AddressTestnet Address
BaseAsset.sol0x0776C34032C618770ca2Be9eD3a11148128b1A50
ERC20.sol [WBTC: 8 decimals]0xF1493F3602Ab0fC576375a20D7E4B4714DB4422d
Option.sol0xd0711b9eBE84b778483709CDe62BacFDBAE136230xAeB81cbe6b19CeEB0dBE0d230CFFE35Bb40a13a7
Perp.sol0xDBa83C0C654DB1cd914FA2710bA743e925B530860xAFB6Bb95cd70D5367e2C39e9dbEb422B9815339D
PortfolioRiskManager.sol0x45DA02B9cCF384d7DbDD7b2b13e705BADB43Db0D0xbaC0328cd4Af53d52F9266Cdbd5bf46720320A20

Constants

ConstantMainnetTestnet
DOMAIN_SEPARATOR (Matching.sol)0xd96e5f90797da7ec8dc4e276260c7f3f87fedf68775fbe1ef116e996fc60441b0x9bcf4dc06df5d8bf23af818d5716491b995020f377d3b7b64c29ed14e3dd1105
ACTION_TYPEHASH (Matching.sol)0x4d7a9f27c403ff9c0f19bce61d76d82f9aa29f8d6d4b0c5474607d9770d1af170x4d7a9f27c403ff9c0f19bce61d76d82f9aa29f8d6d4b0c5474607d9770d1af17
CHAIN_ID957901