{"openapi":"3.0.3","info":{"title":"Else Wallet Payments API","version":"1.0.0","description":"Laso-independent native USDC payment preparation and read-only chain status. No authentication, signing, broadcasting, custody or checkout balance access. The caller signs with their own wallet. Else card/gift agent budgets do not apply to external wallet payments."},"servers":[{"url":"https://elsepay.co/payments/v1"}],"security":[],"paths":{"/balance":{"get":{"summary":"Read the main associated native USDC account and SOL balance","parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string","description":"Base58 Solana wallet address."}}],"responses":{"200":{"description":"Public wallet balance; not the Else checkout balance."},"422":{"description":"Invalid address."},"503":{"description":"Solana unavailable."}}}},"/transfers/prepare":{"post":{"summary":"Prepare one unsigned direct USDC transfer","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["wallet","recipient","amount"],"properties":{"wallet":{"type":"string","description":"Base58 Solana wallet address."},"recipient":{"type":"string","description":"Base58 Solana wallet address."},"amount":{"type":"string","pattern":"^[0-9]+(\\.[0-9]{1,6})?$","example":"10.00"}}}}}},"responses":{"200":{"description":"Unsigned transaction prepared; no funds submitted.","content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","description":"Base64 unsigned version 0 Solana transaction."},"wallet":{"type":"string","description":"Base58 Solana wallet address."},"recipient":{"type":"string","description":"Base58 Solana wallet address."},"network":{"type":"string"},"amountUsdc":{"type":"string","pattern":"^[0-9]+(\\.[0-9]{1,6})?$","example":"10.00"},"expiresAt":{"type":"string","format":"date-time"},"submitted":{"type":"boolean","enum":[false]},"custody":{"type":"string","enum":["user-wallet"]}}}}}},"422":{"description":"Invalid or unsupported payment request, or insufficient wallet balance."},"429":{"description":"Rate limited; respect Retry-After."},"503":{"description":"Solana RPC unavailable; no transaction submitted."}}}},"/transactions/{signature}":{"get":{"summary":"Read an existing transaction without resubmitting it","parameters":[{"name":"signature","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"unknown, pending, confirmed, finalized or failed. Unknown is not proof that no payment occurred."}}}},"/x402/prepare":{"post":{"summary":"Prepare an unsigned, sponsor-funded exact x402 v2 USDC payment","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["wallet","serviceUrl","payTo","maxAmountUsdc","paymentRequired"],"properties":{"wallet":{"type":"string","description":"Base58 Solana wallet address."},"serviceUrl":{"type":"string","format":"uri","description":"Public HTTPS GET resource. The API never fetches this URL."},"payTo":{"type":"string","description":"Explicitly pinned service recipient."},"maxAmountUsdc":{"type":"string","pattern":"^[0-9]+(\\.[0-9]{1,6})?$","example":"10.00"},"paymentRequired":{"type":"object","description":"Original public x402 v2 challenge. Only exact native USDC on Solana mainnet, one payee, version 0 and existing recipient ATA are supported. No splits, additional fees or unsupported extensions."}}}}}},"responses":{"200":{"description":"Unsigned transaction prepared; no funds submitted.","content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"type":"string","description":"Base64 unsigned version 0 Solana transaction."},"wallet":{"type":"string","description":"Base58 Solana wallet address."},"recipient":{"type":"string","description":"Base58 Solana wallet address."},"network":{"type":"string"},"amountUsdc":{"type":"string","pattern":"^[0-9]+(\\.[0-9]{1,6})?$","example":"10.00"},"expiresAt":{"type":"string","format":"date-time"},"submitted":{"type":"boolean","enum":[false]},"custody":{"type":"string","enum":["user-wallet"]}}}}}},"422":{"description":"Invalid or unsupported payment request, or insufficient wallet balance."},"429":{"description":"Rate limited; respect Retry-After."},"503":{"description":"Solana RPC unavailable; no transaction submitted."}}}}}}