Guides
Settle a Payment
Triggering atomic settlement to disburse funds to all pool members.
Execute atomic settlement to transfer assets and distribute proportional shares to all pool members.
Settlement Overview
Settling a payment executes the atomic fund transfer and distribution snapshot. The transaction must be authorized by the payment's payer.
Executing Settle Payment
CONTRACT="CCOXHXGFTYVRRCJ7U32QZJCWXDTNQLRMDS3IAGW5MGFEWOUEXNYYKLHF"stellar contract invoke \ --id "$CONTRACT" \ --source payer \ --network testnet \ -- \ settle_payment \ --payment_id 1What Happens During Execution
- Payer account is debited 500,000,000 stroops (50 XLM).
- Alice receives 300,000,000 stroops (30 XLM).
- Bob receives 200,000,000 stroops (20 XLM).
- Payment #1 status transitions to
Settled (2).