Router Functions
Create Market
Create a new market through the router
POST
Create market through router
This is a smart contract write function. The curl example shown is for illustration. To call this function, use web3 libraries (ethers.js, viem, web3.py) or JSON-RPC directly.
Body
application/json
Address of the market creator
Pattern:
^0x[a-fA-F0-9]{40}$Response
200 - application/json
Market created successfully through router
Create market through router