general x402 ChatGPT

Framework enabling ChatGPT to process x402 payments using a general plugin wallet.

general x402 ChatGPT

Created At

ETHGlobal Buenos Aires

Project Description

this is an open-source framework developed for the ETHGlobal Hackathon, designed to enable ChatGPT to integrate a general plug-in wallet payment solution. The core objective is to implement a seamless and highly compatible system that allows ChatGPT to handle x402 protocol on-chain payments via standard Web3 wallets like MetaMask. By integrating the standard x402 protocol and the dedicated MCP for ChatGPT, we successfully embedded a content access monetization mechanism directly within the conversational flow. This allows users to pay for premium content, such as riddle answers or specialized services, effectively creating a decentralized commerce model executed entirely inside the AI chat interface.

How it's Made

The foundation of this project in the strategic coordination between two critical protocols: the x402 payment protocol and our MCP service. We built a Node.js backend that serves as the MCP server, responsible for fielding plugin requests from ChatGPT. When a user initiates a payment within the chat, the MCP server issues an x402 challenge to the user, prompting them to complete an on-chain transaction using their Web3 wallet (e.g., MetaMask). Upon successful transaction confirmation, the MCP server verifies the proof-of-payment and relays the success status back to the ChatGPT plugin. This architecture elegantly bridges the decentralized payment flow (x402) with the AI plugin ecosystem (MCP/ChatGPT), delivering a smooth, integrated content monetization experience.

background image mobile

Join the mailing list

Get the latest news and updates