← Back
import { makeExecutor } from "./copy-exec.mjs";
const targets = [
  { o:"Spurs/Knicks Under196.5", tokenID:"39881912994370522718559366151684779309752207474179994711212268331639780821284", price:0.10 },
  { o:"Haiti/Scotland Under0.5",  tokenID:"100671559623775547386137199596265311964402421730602494491618536428423199638358", price:0.06 },
];
const ex = await makeExecutor();
for (const t of targets) {
  const bal = await ex.tokenBalance(t.tokenID);
  console.log(`--- ${t.o} | onchain shares=${Number(bal)/1e6}`);
  try {
    const r = await ex.sellAll({ tokenID: t.tokenID, price: t.price });
    console.log("   result:", JSON.stringify(r).slice(0,260));
  } catch(e){ console.log("   ERR:", e?.message||e); }
}