kx402

v0.1.1
io.github.Kali123411/kx402 Checked 2 days ago Published 4 months ago

Kaspa x402 agent payer — pay x402 v2 services on Kaspa (KAS) per call, no account or API key

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kaspa_x402_address Wallet address

Return the funding wallet's Kaspa address and network.

kaspa_x402_balance Wallet balance

Return the funding wallet's spendable KAS balance.

kaspa_x402_offer Inspect an x402 offer

Fetch a resource's 402 and return its payment terms. Does NOT pay.

ParameterTypeDescription
url *stringThe x402 resource URL (returns HTTP 402 with a PAYMENT-REQUIRED header).
inputstringInput for an embed-style resource (?input=).
modelstringModel selector for a shared chat gateway (?model=).
promptstringPrompt for a chat resource (?prompt=).
textstringInput for a summarize-style resource (?text=).

kaspa_x402_pay Pay an x402 offer

Pay a Kaspa x402 resource and return its result. SPENDS REAL FUNDS — bounded by the offer's payTo and by max_sompi.

ParameterTypeDescription
url *stringThe x402 resource URL (returns HTTP 402 with a PAYMENT-REQUIRED header).
inputstringInput for an embed-style resource (?input=).
max_sompistringHard cap on the amount to pay, in sompi. Defaults to the offer amount.
modelstringModel selector for a shared chat gateway (?model=).
promptstringPrompt for a chat resource (?prompt=).
textstringInput for a summarize-style resource (?text=).