Skip to main content
POST
Create a new market
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 that will receive creator fees

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

Response

Market created successfully

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}$