Mechanisms

mechanisms/evm/exact/v1/client

github.com/x402-foundation/x402/go/v2/mechanisms/evm/exact/v1/client

import "github.com/x402-foundation/x402/go/v2/mechanisms/evm/exact/v1/client"

Constants

Client error constants for the exact EVM scheme (V1)

Source: mechanisms/evm/exact/v1/client/errors.go:5

const (
	ErrInvalidAmount             = "invalid_exact_evm_client_amount"
	ErrFailedToSignAuthorization = "invalid_exact_evm_client_failed_to_sign_authorization"
)

Functions

func NewExactEvmSchemeV1(signer evm.ClientEvmSigner) *ExactEvmSchemeV1

Source: mechanisms/evm/exact/v1/client/scheme.go:21

NewExactEvmSchemeV1 creates a new ExactEvmSchemeV1

Types

type ExactEvmSchemeV1

Source: mechanisms/evm/exact/v1/client/scheme.go:16

ExactEvmSchemeV1 implements the SchemeNetworkClientV1 interface for EVM exact payments (V1)

type ExactEvmSchemeV1 struct {
	// contains filtered or unexported fields
}

func CreatePaymentPayload( ctx context.Context, requirements types.PaymentRequirementsV1, ) (types.PaymentPayloadV1, error)

Source: mechanisms/evm/exact/v1/client/scheme.go:33

CreatePaymentPayload creates a V1 payment payload for the exact scheme

func SchemeV1) Scheme() string

Source: mechanisms/evm/exact/v1/client/scheme.go:28

Scheme returns the scheme identifier