Skip to content

Canister-Software/test-icp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-icp-server

A minimal x402-protected Express server that accepts ICP micropayments using @canister-software/x402-icp.

Setup

Clone the repo and install dependencies:

npm install

Create a .env file:

FACILITATOR_URL=https://facilitator.canister.software
PAYTO_PRINCIPAL=your-icp-principal-here

Run

npm run start

Routes

Route Protection Price
GET /api/data x402 100000 e8s (0.001 TESTICP)
GET /health None Free

Related

About

x402 protected Express server with ICP micropayment integration using @canister-software/x402-icp

Topics

Resources

Stars

Watchers

Forks

Contributors