pub fn place_order_with_credits<T: Config>(
max_amount: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
para_id: Id,
)
Expand description
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
: AParaId
the origin wants to provide blockspace for.
Errors:
InsufficientCredits
QueueFull
SpotPriceHigherThanMaxAmount
Events:
OnDemandOrderPlaced
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::place_order_with_credits
.