pay_x402_invoice
Pay any Algorand x402 invoice with any assets you hold, even if you lack the demanded one. Returns unsigned transaction groups to sign and submit in order.
Instructions
Pay ANY Algorand-settled x402 invoice with any 1-4 routable assets you hold, even if you hold none of the demanded asset. Pass the accepts entry you picked from the 402 response as invoice, plus your inputs (single input with no amount = minimum is solved for you). Returns UNSIGNED groups — sign everything in one pass, then submit the groups IN ORDER (swap first; its on-chain floor guarantees the payment is funded; if you already hold the demanded asset it is a single direct payment). Works for HOGSWAP credit top-up offers too: feed accepts[0] of the 402 straight in. EVM-settled invoices are not supported (no bridge). NEVER pass mnemonics or private keys to any tool — signing happens in YOUR wallet tooling, never on this server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| api_key | No | hsk_ API key override; omit to use the HOGSWAP_API_KEY env config | |
| invoice | Yes | ||
| user_address | Yes | YOUR address |