Resolve a market
Prerequisites
After resolution: redeeming
Viem examples
Shared: ABI and address
import { getPublicClient, getWalletClient, MARKET_ABI } from "./viem-setup";
import { gnosis } from "viem/chains"; // or mainnet, base, etc.
const chain = gnosis;
const publicClient = getPublicClient(chain);
const walletClient = getWalletClient(chain, process.env.PRIVATE_KEY! as `0x${string}`);
const account = walletClient.account!;
const marketAddress = "0x..."; // Market contract addressResolve the market
Simulate before sending
Last updated