get_credit_offer
Generate a credit top-up offer as an x402 payment request, supplying a USDC transfer invoice to pay with any asset and credit your account.
Instructions
Create a credit top-up and get the x402 offer (HTTP 402 IS the payment instruction, not an error). accepts[0] is a plain USDC transfer invoice — feed it straight into pay_x402_invoice (keep the note!) to pay with any asset. Credits land ~1 block after the payment confirms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | hsk_ API key override; omit to use the HOGSWAP_API_KEY env config | |
| usdc_micro | Yes | top-up size in µUSDC (1 USDC = 1,000,000) |