Skip to main content

settle_batch

Function settle_batch 

Source
pub async fn settle_batch(
    registry: &RegistryClient,
    settlement: SettlementInfo,
    transfer_legs: Vec<TransferLeg>,
    allocations: Vec<FinalizedAllocation>,
    actors: Vec<Party>,
) -> Result<TokenCommand>
Expand description

Settle a batch of allocations through the settlement factory — the executor’s move, and the V2 replacement for V1’s execute-transfer.

Settling a batch is what makes delivery-versus-payment atomic: both legs move in one transaction, or neither does. V1 could only execute one allocation at a time.

§Errors

As any registry call.