Payment
Initiate a credit purchase (sender_wallet binding required)
Issues a 30-minute payment quote bound to the EVM address that will sign the on-chain USDC transfer. Required body fields: amount_usd (0.5 to 10000) and sender_wallet (0x-prefixed 40-char EVM address). The /api/payment/confirm endpoint will reject any tx whose on-chain from does not match the sender_wallet bound here, which closes the public-mempool tx sniping vector.
post/api/payment/buy-credits
Request body
Example request
{
"amount_usd": 1,
"sender_wallet": "0xabcdef0123456789abcdef0123456789abcdef01"
}Response
Quote with credits, instructions to send USDC on Base, and the bound sender_wallet.
object required