Skip to main content

Overview

PayerCondition is a singleton condition that restricts an action to the payment’s payer address. Type: Singleton (deployed once, reused by all operators) Address (Base Sepolia): 0xBAF68176FF94CAdD403EF7FbB776bbca548AC09D Address (Base Mainnet): 0xb33D6502EdBbC47201cd1E53C49d703EC0a660b8

Logic

function check(PaymentInfo calldata payment, uint256, address caller)
    external pure returns (bool)
{
    return caller == payment.payer;
}
The condition compares caller against payment.payer — pure computation with no storage reads.

When to Use

SlotUse Case
AUTHORIZE_CONDITIONLet payer create payments (subscriptions, invoices)
REFUND_IN_ESCROW_CONDITIONLet payer request refunds during escrow
REFUND_POST_ESCROW_CONDITIONLet payer cancel streams
Typically paired with ReceiverCondition for release, since payers shouldn’t release their own funds in most configurations.

Gas

Cost: Minimal — pure function with no storage reads.

Next Steps