Skip to main content
Glama

Fewsats MCP Server

Official
by Fewsats

create_x402_payment_header

Generates a payment header for the X402 protocol required in HTTP requests, specifying payment details such as asset, amount, and network for processing on the Fewsats MCP Server.

Instructions

Creates a payment header for the X402 protocol. The chain is base-sepolia or base The x402 payload must be a dict with this structure: { "accepts": [ { "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", "description": "Payment for GET https://proxy402.com/7Yhuf2O3zs", "extra": { "name": "USDC", "version": "2" }, "maxAmountRequired": "10", "maxTimeoutSeconds": 300, "mimeType": "", "network": "base-sepolia", "payTo": "0xbA5Ae80f48E0C74878c1a362D69c27c2135Aa594", "resource": "https://proxy402.com/7Yhuf2O3zs", "scheme": "exact" } ], "error": "X-PAYMENT header is required", "x402Version": 1 } Returns a dict with the payment_header field that must be set in X-PAYMENT header in a x402 http request.

Input Schema

NameRequiredDescriptionDefault
chainYes
x402_payloadYes

Input Schema (JSON Schema)

{ "properties": { "chain": { "title": "Chain", "type": "string" }, "x402_payload": { "title": "X402 Payload", "type": "object" } }, "required": [ "chain", "x402_payload" ], "title": "create_x402_payment_headerArguments", "type": "object" }

Other Tools from Fewsats MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fewsats/fewsats-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server