MPP.Methods.USDC.Solana (mpp v0.19.0)

Copy Markdown View Source

Direct USDC charge on Solana.

v00 accepts the legacy SPL Token program and a type="transaction" credential. Broadcast, fee-payer co-signing, simulation, and signature replay reuse MPP.Methods.Solana. This module adds the USDC mint, token-program, freeze, and instruction limits from draft-usdc-charge-00.

Summary

Functions

Advertise network, decimals 6, the legacy token program, and any fee payer.

Pull-mode transaction payload accepted by this profile.

Profile name solana.

Require an RPC URL, a Solana network, and a fee-payer key when sponsoring.

Verify a legacy SPL USDC transaction and return the USDC receipt.

Functions

challenge_details(charge)

@spec challenge_details(MPP.Intents.Charge.t()) :: map()

Advertise network, decimals 6, the legacy token program, and any fee payer.

credential_type()

@spec credential_type() :: String.t()

Pull-mode transaction payload accepted by this profile.

name()

@spec name() :: String.t()

Profile name solana.

validate_config!(config)

@spec validate_config!(map()) :: :ok

Require an RPC URL, a Solana network, and a fee-payer key when sponsoring.

verify(payload, charge)

@spec verify(map(), MPP.Intents.Charge.t()) ::
  {:ok, MPP.Receipt.t()} | {:error, MPP.Errors.t()}

Verify a legacy SPL USDC transaction and return the USDC receipt.