auctions
Create a new auction
Create a new auction for a specific slot. The auction will be initialized
in 'pending' state and automatically transition through the 9-state lifecycle
based on Ethereum slot timing.
post/api/v1/auctions
Request body
Example request
{
"slot": 1234567,
"metadata": {
"reservePrice": "1000000000000000000",
"maxBidders": 100,
"settlementMethod": "uniform_price"
}
}Response
Auction created successfully
Example response
{
"id": "pfh0haxfpzowht3oi213cqos",
"slot": 1234567,
"state": "bidding",
"createdAt": "2024-01-01T00:00:00.000Z",
"biddingDeadline": "2024-01-01T00:00:08.000Z",
"settlementDeadline": "2024-01-01T00:00:12.000Z",
"finalizedAt": "2024-01-01T00:00:20.000Z",
"metadata": {
"reservePrice": "1000000000000000000",
"maxBidders": 100,
"settlementMethod": "uniform_price"
},
"totalBids": 42,
"clearingPrice": "1500000000000000000",
"totalAllocated": 1000
}