import React from "react" import { Code } from "../../../components/common/code" export function BatchBuyComment() { return <> {` // get orders info const batchBuy = await connection.sdk.order.batchBuy([ {orderId: }, {orderId: } ]) // batchBuy: { // submit: Function, // prepared: [{ // orderId: OrderId // baseFee: number // maxAmount: BigNumber // multiple: boolean // supportsPartialFill: boolean // }, { // orderId: OrderId // baseFee: number // maxAmount: BigNumber // multiple: boolean // supportsPartialFill: boolean // }] // } // send transaction const result = await buy.submit([{ orderId: , amount: 1, }, { orderId: amount: 1, originFees: [], }]) // result: IBlockchainTransaction `} }