This is a simple implementation of the x402 protocol. This can be furthier add to the Open source bounty project MergeMintto add the agentic PR solving feature as planned in the initial planning of that project.
- Base Sepolia ETH and base Sepolia usdc
- Clone the repository.
- Install dependencies:
npm install - Rename
.env.exampleto.env. - Provide the environment values:
PAYEE_ADDRESS=0x...(Where the money goes)CLIENT_PRIVATE_KEY=0x...(Your dev wallet paying for the test script)
Open one terminal and boot the server:
npm start
Open a second terminal and trigger the auto-client sequence:
node src/client.js
Watch the transaction automatically resolve locally!