const { marketAddress, metadataUri } = await client.createMarket({
marketName: 'Will ETH be above 5k?',
outcomes: ['Yes', 'No'],
resolverKind: 'admin',
marketAdmin: yourAddress,
seedWei, // omit for create-only
oddsBps, // required with seedWei
metadata: {
description: '…',
resolutionCriteria: 'Coinbase ETH-USD at 23:59 UTC.',
image: marketImageFile,
outcomeImages: [yesFile, noFile],
},
})
if (!marketAddress) {
throw new Error('Created, but the receipt did not include the new address')
}
const market = client.market(marketAddress)