Skip to main content
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
creator
string
required

Address of the market creator

Pattern: ^0x[a-fA-F0-9]{40}$

Response

200 - application/json

Market created successfully through router

marketAddress
string

Address of the newly created market

Pattern: ^0x[a-fA-F0-9]{40}$
marketCounter
integer<uint64>

Counter/ID of the created market

transactionHash
string

Transaction hash of the market creation

Pattern: ^0x[a-fA-F0-9]{64}$