Skip to content

Class X402::PaymentObserver::StaticRecogniser

Inherits: Object

Built-in recogniser for a single static payee address. Used when payee_locking_script_hex is provided without a custom recogniser.

  • @see PaymentObserver recogniser: parameter

Public Instance Methods

initialize(payee_locking_script_hex)

  • @param payee_locking_script_hex [String] hex-encoded locking script to match
  • @return [StaticRecogniser] a new instance of StaticRecogniser

ours?(locking_script_hex)

  • @param locking_script_hex [String] hex-encoded locking script to test
  • @return [Boolean] true if the script matches the configured payee