async def removeMarket(marketId: int):
"""Remove a market from the system."""
contract = retrieveContract()
w3 = retrieveWeb3Instance()
transaction = contract.functions.removeMarket(marketId).build_transaction(
{
"from": Web3.to_checksum_address(os.getenv("ACCOUNT")),
"nonce": w3.eth.get_transaction_count(
Web3.to_checksum_address(os.getenv("ACCOUNT"))
),
}
)
await submitTransactionWithOracle(w3, transaction, marketId)
Function Reference
removeMarket
Python SDK reference for removeMarket.
Remove a market from the system.