Create a single on demand core order. Will use the spot price for the current block and will reap the account if needed.
Parameters:
origin
max_amount
para_id
ParaId
Errors:
InsufficientBalance
QueueFull
SpotPriceHigherThanMaxAmount
Events:
OnDemandOrderPlaced
Create a single on demand core order. Will use the spot price for the current block and will reap the account if needed.
Parameters:
origin: The sender of the call, funds will be withdrawn from this account.max_amount: The maximum balance to withdraw from the origin to place an order.para_id: AParaIdthe origin wants to provide blockspace for.Errors:
InsufficientBalance: from the Currency implementationQueueFullSpotPriceHigherThanMaxAmountEvents:
OnDemandOrderPlaced