batchCancelOrder method
Batch cancel order.
poolId Object id of pool, created after invoking createPool.
orderIds array of order ids you want to cancel, you can find your open orders by query.list_open_orders eg: "0", "1", "2"
Implementation
Future<TransactionBlock> batchCancelOrder({
required String poolId,
required List<String> orderIds
}) async {
final txb = TransactionBlock();
final typeArgs = await getPoolTypeArgs(poolId);
txb.moveCall(
"$PACKAGE_ID::$MODULE_CLOB::batch_cancel_order",
typeArguments: typeArgs,
arguments: [
txb.object(poolId),
deepbookBCS.ser('vector<u64>', orderIds),
txb.object(_checkAccountCap()),
],
);
return txb;
}