dreamline-x402
v1.0.1
Published
x402 client with Dreamline spend governance — on-chain blacklists, policy enforcement, EIP-712 authorization
Maintainers
Readme
@dreamline/x402
x402 client with Dreamline spend governance.
Add on-chain blacklists, policy enforcement, and EIP-712 authorization to any x402 payment in 3 lines.
Install
npm install @dreamline/x402Usage
const { createDreamlineClient } = require("@dreamline/x402");
const fetch = createDreamlineClient({ apiKey: "dlk_your_key" });
await fetch("https://api.coingecko.com/price");
await fetch("https://suspicious-exchange.io/pay");
// Error: [Dreamline] Payment blocked: On-chain blacklistFacilitator
- https://dreamline-backend.onrender.com/facilitator/verify
- https://dreamline-backend.onrender.com/facilitator/settle
- https://dreamline-backend.onrender.com/facilitator/supported
License
BUSL-1.1
