Versions in this module Expand all Collapse all v1 v1.1.0 Dec 2, 2025 Changes in this version + const AmountTolerance + const BlockhashValidityWindow + const DefaultAccessTTL + const DefaultConfirmationTimeout + const RPCPollInterval + func GetUserFriendlyMessage(code errors.ErrorCode, err error) string + type PaymentPayload struct + Network string + Payload any + Scheme string + X402Version int + type PaymentProof struct + FeePayer string + Memo string + Metadata map[string]string + Network string + Payer string + RecipientTokenAccount string + Resource string + ResourceType string + Scheme string + Signature string + Transaction string + X402Version int + func ParsePaymentProof(header string) (PaymentProof, error) + type Requirement struct + AllowedTokens []string + Amount float64 + Commitment string + Network string + QuoteTTL time.Duration + RecipientOwner string + RecipientTokenAccount string + ResourceID string + SkipPreflight bool + TokenDecimals uint8 + TokenMint string + type SolanaPayload struct + FeePayer string + Memo string + Metadata map[string]string + RecipientTokenAccount string + Resource string + ResourceType string + Signature string + Transaction string + type VerificationError struct + Code errors.ErrorCode + Err error + Message string + func NewVerificationError(code errors.ErrorCode, err error) VerificationError + func (e VerificationError) Error() string + func (e VerificationError) Unwrap() error + type VerificationResult struct + Amount float64 + ExpiresAt time.Time + Signature string + Wallet string + type Verifier interface + Verify func(ctx context.Context, proof PaymentProof, requirement Requirement) (VerificationResult, error)