Go API Reference

Go API Reference

github.com/x402-foundation/x402/go/v2

github.com/x402-foundation/x402/go/v2

github.com/x402-foundation/x402/go/v2

github.com/x402-foundation/x402/go/v2

extensions/bazaar

Package bazaar provides the Bazaar Discovery Extension for x402 v2 and v1.

github.com/x402-foundation/x402/go/v2/extensions/bazaar

extensions/buildercode

Package buildercode provides types and helpers for the Builder Code Extension (ERC-8021).

github.com/x402-foundation/x402/go/v2/extensions/buildercode

extensions/eip2612gassponsor

Package eip2612gassponsor provides types and helpers for the EIP-2612 Gas Sponsoring extension.

github.com/x402-foundation/x402/go/v2/extensions/eip2612gassponsor

extensions/erc20approvalgassponsor

Package erc20approvalgassponsor provides types and helpers for the ERC-20 Approval Gas Sponsoring extension.

github.com/x402-foundation/x402/go/v2/extensions/erc20approvalgassponsor

extensions/paymentidentifier

Package paymentidentifier implements the payment-identifier extension for x402.

github.com/x402-foundation/x402/go/v2/extensions/paymentidentifier

extensions/signinwithx

Package signinwithx provides helpers for the sign-in-with-x extension.

github.com/x402-foundation/x402/go/v2/extensions/signinwithx

extensions/types

github.com/x402-foundation/x402/go/v2/extensions/types

extensions/v1

github.com/x402-foundation/x402/go/v2/extensions/v1

http

THIS FILE IS AUTO-GENERATED - DO NOT EDIT

github.com/x402-foundation/x402/go/v2/http

http/echo

github.com/x402-foundation/x402/go/v2/http/echo

http/gin

github.com/x402-foundation/x402/go/v2/http/gin

http/nethttp

github.com/x402-foundation/x402/go/v2/http/nethttp

mcp

Package mcp provides MCP (Model Context Protocol) transport integration for the x402 payment protocol.

github.com/x402-foundation/x402/go/v2/mcp

mechanisms/evm

github.com/x402-foundation/x402/go/v2/mechanisms/evm

mechanisms/evm/batch-settlement

Package batched holds shared batch-settlement error constants used across client / facilitator / server.

github.com/x402-foundation/x402/go/v2/mechanisms/evm/batch-settlement

mechanisms/evm/batch-settlement/client

github.com/x402-foundation/x402/go/v2/mechanisms/evm/batch-settlement/client

mechanisms/evm/batch-settlement/facilitator

Package facilitator emits canonical batch-settlement EVM rejection tokens.

github.com/x402-foundation/x402/go/v2/mechanisms/evm/batch-settlement/facilitator

mechanisms/evm/batch-settlement/server

github.com/x402-foundation/x402/go/v2/mechanisms/evm/batch-settlement/server

mechanisms/evm/exact/client

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

mechanisms/evm/exact/facilitator

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

mechanisms/evm/exact/server

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

mechanisms/evm/exact/v1/client

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

mechanisms/evm/exact/v1/facilitator

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

mechanisms/evm/upto/client

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

mechanisms/evm/upto/facilitator

github.com/x402-foundation/x402/go/v2/mechanisms/evm/upto/facilitator

mechanisms/evm/upto/server

github.com/x402-foundation/x402/go/v2/mechanisms/evm/upto/server

mechanisms/evm/v1

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

mechanisms/svm

github.com/x402-foundation/x402/go/v2/mechanisms/svm

mechanisms/svm/exact/client

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

mechanisms/svm/exact/facilitator

github.com/x402-foundation/x402/go/v2/mechanisms/svm/exact/facilitator

mechanisms/svm/exact/server

github.com/x402-foundation/x402/go/v2/mechanisms/svm/exact/server

mechanisms/svm/exact/v1/client

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

mechanisms/svm/exact/v1/facilitator

github.com/x402-foundation/x402/go/v2/mechanisms/svm/exact/v1/facilitator

signers/evm

github.com/x402-foundation/x402/go/v2/signers/evm

signers/svm

github.com/x402-foundation/x402/go/v2/signers/svm

types

github.com/x402-foundation/x402/go/v2/types