Skip to main content

Overview

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

Logic

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

When to Use

SlotUse Case
RELEASE_CONDITIONLet receiver release funds after escrow
CHARGE_CONDITIONLet receiver charge partial amounts
REFUND_IN_ESCROW_CONDITIONLet receiver voluntarily refund
For release, ReceiverCondition is often composed with EscrowPeriod via AndCondition to ensure the escrow window has passed before the receiver can release.

Gas

Cost: Minimal — pure function with no storage reads.

Next Steps