const transaction = await aptos.transaction.build.simple({
sender: account.accountAddress,
data: {
function: `${PACKAGE}::dex_accounts_entry::place_bulk_orders_to_subaccount`,
typeArguments: [],
functionArguments: [
"0x123...abc", // subaccountAddr
"0x456...def", // marketAddr (PerpMarket object address)
1, // sequenceNumber (must be monotonically increasing)
[5670000000, 5680000000, 5690000000], // bidPrices (in chain units)
[1000000000, 2000000000, 3000000000], // bidSizes (in chain units)
[5710000000, 5720000000, 5730000000], // askPrices (in chain units)
[1000000000, 2000000000, 3000000000], // askSizes (in chain units)
null, // builderAddress (optional)
null, // builderFees (optional)
],
},
});