place_order_with_credits: TxDescriptor<{ max_amount: bigint; para_id: number }>

Create a single on demand core order with credits. Will charge the owner's on-demand credit account the spot price for the current block.

Parameters:

  • origin: The sender of the call, on-demand credits will be withdrawn from this account.
  • max_amount: The maximum number of credits to spend from the origin to place an order.
  • para_id: A ParaId the origin wants to provide blockspace for.

Errors:

  • InsufficientCredits
  • QueueFull
  • SpotPriceHigherThanMaxAmount

Events:

  • OnDemandOrderPlaced
MMNEPVFCICPMFPCPTTAAATR