const result = await client.enableTrading();
if (result.txHash) {
console.log(`Trading enabled. TX: ${result.txHash}`);
} else {
console.log('Trading already enabled (cached)');
}interface TransactionResult {
txHash: string;
safeTxHash: string;
returnValue: string;
}// Split 100 USDT into YES + NO tokens
const amountWei = BigInt(100) * BigInt(10 ** 18);
const result = await client.split(
123, // marketId
amountWei, // amount in wei
true, // checkApproval: auto-enable trading if needed
);
console.log(`Split TX: ${result.txHash}`);const amountWei = BigInt(50) * BigInt(10 ** 18);
const result = await client.merge(123, amountWei, true);const result = await client.redeem(123, true);