IssuerBurn: ((payment: ERef<Payment>, optAmountShape?: Pattern) => Promise<Amount>)

Burn all of the digital assets in the payment. optAmountShape is optional. If the optAmountShape pattern is present, the amount of the digital assets in the payment must match optAmountShape, to prevent sending the wrong payment and other confusion.

If the payment is a promise, the operation will proceed upon fulfillment.

As always with optional Pattern arguments, keep in mind that technically the value undefined itself is a valid Key and therefore a valid Pattern. But in optional pattern position, a top level undefined will be interpreted as absence. If you want to express a Pattern that will match only undefined, use M.undefined() instead.