MPP.Client.Providers.X402Exact (mpp v0.19.0)

Copy Markdown View Source

Client provider for x402 v2 exact EVM EIP-3009 payments.

Signs synthetic PAYMENT-REQUIRED challenges via MPP.X402.Exact (Task 40 sign_transfer/2 + x402 nonce rules). Native Payment-auth EVM challenges are refused through supports_challenge?/2.

Summary

Functions

Sign an x402 exact PAYMENT-SIGNATURE payload.

Return true for EVM charge offers; supports_challenge?/2 further restricts to x402.

Return true only for synthetic x402 exact challenges this config can sign.

Functions

pay(challenge, config)

@spec pay(MPP.Challenge.t(), map()) :: {:ok, MPP.Credential.t()} | {:error, term()}

Sign an x402 exact PAYMENT-SIGNATURE payload.

supports?(method, intent, config)

@spec supports?(String.t(), String.t(), map()) :: boolean()

Return true for EVM charge offers; supports_challenge?/2 further restricts to x402.

supports_challenge?(challenge, config)

@spec supports_challenge?(MPP.Challenge.t(), map()) :: boolean()

Return true only for synthetic x402 exact challenges this config can sign.