createBurnBody method

Cell createBurnBody({
  1. required BigInt amount,
  2. Cell? customPayload,
  3. BigInt? queryId,
})

Implementation

Cell createBurnBody({
  required BigInt amount,
  Cell? customPayload,
  BigInt? queryId,
}) {
  return beginCell()
      .storeUint(DexOpCodes.BURN.op, 32)
      .storeUint(queryId ?? BigInt.zero, 64)
      .storeCoins(amount)
      .storeAddress(null)
      .storeMaybeRef(customPayload)
      .endCell();
}