Pay per call with x402

Pay for a Nova tool call inline, in STX, sBTC or USDCx on Stacks.

NovaAbout 15 minMarkdown

In short

Your code will pay for a paid Nova tool in the same request, and only be charged if the tool runs.

Step 1 of 4
  1. Send a POST to the tool's /api/tools/<slug>/run endpoint with its input. A paid tool answers with HTTP 402 and a payment-required header listing the accepted payments. Full guide