prepare_invoice_payment
Prepare an unsigned USDC payment for an existing unpaid, unexpired invoice.
Bearer key required; no package or data credits needed. Returns a base64
legacy Solana transaction and last_valid_block_height. Review it against
get_invoice_status: payer, recipient, mint, amount and pumpview:<id> memo.
Your authorized wallet signs and broadcasts locally, using USDC plus SOL
for network fees and possible token-account rent. PumpView never receives
the private key. This tool does not sign, submit or activate the package.
Next call confirm_invoice_payment with the wallet's broadcast signature.
A 409 means expired/paid invoice. On blockhash expiry, check the old signature
before preparing a replacement for the same invoice; never pay twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice id returned by get_payment_instructions for this API-key account. Not a swap id or Solana transaction signature. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction_base64 | Yes | Unsigned legacy Solana transaction. Review payer, recipient, exact USDC amount and invoice memo before local wallet signing and broadcast. Never submit through submit_swap. | |
| last_valid_block_height | Yes | Block-height expiry of this transaction. Invoice expiry must also be respected. After expiry, check the prior signature before preparing another payment. |