Skip to main content

Create your project

Initialize a new fastapi project.

Server-side

Follow the steps below to setup your server.
1

Create your api project

shell
2

Setup Express

main.py
3

Add middleware

main.py
4

Create your endpoints

main.py

Client-side

Follow the steps below to request Flow402 protocol from your shell.
1

Call /verify endpoint

shell
2

Send two transactions using USDC and Base network

Use any wallet to send a transaction from PAYER address to your MERCHANT address.Also send a transaction from PAYER address to our FACILITATOR address 0xc4a35c792a020d55218b83c5d77172b86b934dce. This transaction’s amount needs to be greater than 0.001 USDC and greater than AMOUNT*0.1 (1% tax fee).
3

Call your paid api endpoint

shell
Response:
json