x402 Payments
DeHeart is small, but x402 is a launch requirement. Paid task registration and paid heartbeat pokes should use x402 challenges rather than custom payment headers.
- A task or provider returns an x402 challenge.
- DeHeart selects an accepted rail and funding wallet.
- The client builds an unsigned payment attempt.
- A wallet or facilitator signs/settles the payment.
- DeHeart records the payment attempt/receipt metadata and accepts the heartbeat.
Supported rail model
Section titled “Supported rail model”base/ USDC through hosted facilitators.solana/ USDC through hosted facilitators.sui/ USDC or SUI through self-hosted or verifier-only rails.
The current service exposes capability metadata and unsigned payment attempts. Facilitator execution and on-chain settlement verification are the next steps, but the API shape is x402-first now.
Live endpoints
Section titled “Live endpoints”curl https://api.deheart.io/v1/payments/x402/capability
curl https://api.deheart.io/v1/payments/x402/attempts \ -H "content-type: application/json" \ -d '{"deheartObjectId":"deheart:task:demo","providerId":"demo","capability":"task_execution","network":"sui","amount":"0.01"}'