for developers
make every request count.
Connect wallet payments to the resources you deliver. Start with a price, an order, and a verified Ethereum receipt.
four steps to paid access.
- 01
define the resource
Choose what your customer receives and set an exact USDC or ETH price. Keep protected content on your backend.
- 02
create the order
Bind the payer, currency, amount, recipient, and payment window to an order before requesting approval.
- 03
verify settlement
Check the Ethereum transaction and its receipt. Repeated requests must not create another charge.
- 04
deliver access
Release the resource after verification and keep the order recoverable across refreshes and interruptions.
start from the working interface.
The builder brief demonstrates the order API and paid-resource boundary. The documentation covers the implemented endpoints and recovery behavior.
# Read the resource's payment requirements
curl -i http://localhost:4020/api/demo/research
# Read payment configuration and available currencies
curl -s http://localhost:4020/api/config
# Complete checkout, then retrieve the resource with your paid order
curl -i http://localhost:4020/api/demo/research \
-H "Authorization: Bearer <paid-order-id>"