MPP Channel Mode

bash
wasit mpp-channel --target <url> [options]
OptionDefaultNotes
--target <url>requiredThe paid resource
--commitment-key <hex>COMMITMENT_SECRET_HEXRaw ed25519 seed, hex
--network <id>MPP_STELLAR_NETWORKCAIP-2
--rpc-url <url>testnet defaultSoroban RPC
--channel <address>CHANNEL_CONTRACTAn assertion — see below
--expect-token <address>MPP-10
--expect-from <address>MPP-10
--expect-to <address>MPP-10
--expect-refund-period <n>MPP-10, in ledgers
--allow-destructiveoffEnables MPP-13
--destructive-channel <addr>CHANNEL_CONTRACT_DISPOSABLEChannel MPP-13 may close
--jsonoffMachine-readable output (see below) instead of formatted text

MPP-1012 and MPP-14 cost nothing. MPP-13 closes a channel permanently and is skipped unless both --allow-destructive and a named channel are given.

--channel asserts, it does not select

The channel under test is resolved from the target's own 402 challenge, so every check in a run reports on the same contract. --channel states which address you expect that to be. When the two differ, MPP-10 fails and inspects nothing — a run that reported on both would be reporting on two contracts at once.

The --expect-* flags

MPP-10 verifies the channel's on-chain parameters against what you say they should be. Only the channel's operator knows these, so without all four the check is skipped rather than guessed at.