Versions in this module Expand all Collapse all v1 v1.1.0 Dec 2, 2025 Changes in this version + func ConfigureRouter(router chi.Router, cfg *config.Config, paywallSvc *paywall.Service, ...) + func NewRPCProxyHandlers(cfg *config.Config) *rpcProxyHandlers + type A2AAgentCard struct + Authentication A2AAuthentication + Capabilities []string + Description string + Metadata map[string]string + Name string + PaymentMethods []A2APaymentMethod + ServiceEndpoint string + Version string + type A2AAuthentication struct + Schemes []string + Type string + type A2APaymentMethod struct + Description string + Network string + Protocol string + Type string + type CouponSummary struct + Code string + Currency string + Description string + DiscountType string + DiscountValue float64 + type MCPError struct + Code int + Data interface{} + Message string + type MCPResource struct + Description string + MimeType string + Name string + URI string + type MCPResourcesListRequest struct + ID interface{} + JSONRPC string + Method string + Params map[string]interface{} + type MCPResourcesListResponse struct + Error *MCPError + ID interface{} + JSONRPC string + Result *MCPResourcesListResult + type MCPResourcesListResult struct + Resources []MCPResource + type ProductResponse struct + CryptoAmount float64 + CryptoCouponCode string + CryptoDiscountPercent float64 + CryptoToken string + Description string + EffectiveCryptoAmount float64 + EffectiveFiatAmount float64 + FiatAmount float64 + FiatCurrency string + HasCryptoCoupon bool + HasStripeCoupon bool + ID string + Metadata map[string]string + StripeCouponCode string + StripeDiscountPercent float64 + StripePriceID string + type ProductsListResponse struct + CheckoutCryptoCoupons []CouponSummary + CheckoutStripeCoupons []CouponSummary + Products []ProductResponse + type QuoteRequest struct + CouponCode *string + Resource string + type Server struct + func New(cfg *config.Config, paywallSvc *paywall.Service, ...) *Server + func (s *Server) ListenAndServe() error + func (s *Server) Shutdown(ctx context.Context) error + type ValidateCouponRequest struct + Code string + PaymentMethod string + ProductIDs []string + type ValidateCouponResponse struct + ApplicableProducts []string + Code string + DiscountType string + DiscountValue float64 + ErrorMessage string + ExpiresAt *string + PaymentMethod string + RemainingUses *int + Scope string + Valid bool + type VerifyRequest struct + type WellKnownCryptoPrice struct + Amount float64 + Token string + type WellKnownFiatPrice struct + Amount float64 + Currency string + type WellKnownPaymentInfo struct + Methods []string + X402 *X402Config + type WellKnownPaymentOptions struct + Payment WellKnownPaymentInfo + Resources []WellKnownResourceEntry + Server string + Version string + type WellKnownPriceInfo struct + Crypto *WellKnownCryptoPrice + Fiat *WellKnownFiatPrice + type WellKnownResourceEntry struct + Description string + Endpoint string + ID string + Metadata map[string]string + Name string + Price WellKnownPriceInfo + type X402Config struct + Network string + PaymentAddress string + TokenMint string