{"openapi":"3.0.3","info":{"title":"Bop Wallet Payments API","version":"1.0.0","description":"Unsigned wallet tools on Elysium, chain 99901. Bop-issued partner API access with wallet:read or wallet:prepare is required for functional operations. Private keys and seed phrases are never accepted. These operations are separate from the Bop checkout balance. Call POST operations from your server; browser Origin headers must match the Bop origin. No endpoint signs or broadcasts a transaction. Wallet errors include code and request_id, with message when available; they do not use the purchase API retryable field."},"externalDocs":{"description":"Bop partner guide","url":"https://boppay.app/partners#networks"},"servers":[{"url":"https://boppay.app/payments/v1"}],"paths":{"/":{"get":{"summary":"Discover wallet capabilities","security":[],"responses":{"200":{"description":"Supported network, assets and operations","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"network":{"type":"string","enum":["eip155:99901"]},"chainId":{"type":"integer","enum":[99901]},"assets":{"type":"array","items":{"type":"string","enum":["USDC"],"default":"USDC"}},"operations":{"type":"array","items":{"type":"string"}},"walletSecretsAccepted":{"type":"boolean","enum":[false]},"submitsTransactions":{"type":"boolean","enum":[false]}}}}}},"400":{"description":"Invalid input, unsupported payment, or wallet request unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"401":{"description":"A valid active Bop-issued partner key is required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"403":{"description":"Partner approval, wallet permission or browser origin rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"413":{"description":"Body exceeds 32,768 characters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"429":{"description":"60 requests per minute per client address; back off before retrying","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}}}}},"/balance":{"get":{"summary":"Read native HYPE and USDC balances","security":[{"partnerKey":[]}],"parameters":[{"name":"wallet","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"Current HYPE gas balance and supported token balances","content":{"application/json":{"schema":{"type":"object","properties":{"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"network":{"type":"string","enum":["eip155:99901"]},"chainId":{"type":"integer","enum":[99901]},"gasHype":{"type":"string"},"balances":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string","enum":["USDC"],"default":"USDC"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amount":{"type":"string"}}}}}}}}},"400":{"description":"Invalid input, unsupported payment, or wallet request unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"401":{"description":"A valid active Bop-issued partner key is required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"403":{"description":"Partner approval, wallet permission or browser origin rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"413":{"description":"Body exceeds 32,768 characters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"429":{"description":"60 requests per minute per client address; back off before retrying","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}}}}},"/transfers/prepare":{"post":{"summary":"Prepare an unsigned stablecoin transfer","security":[{"partnerKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"asset":{"type":"string","enum":["USDC"],"default":"USDC"},"amount":{"type":"string","pattern":"^[0-9]{1,9}(\\.[0-9]{1,6})?$","description":"Positive token amount as a decimal string, up to 6 fractional digits."},"chainId":{"type":"integer","enum":[99901]},"network":{"type":"string","enum":["eip155:99901"]}},"required":["wallet","recipient","amount"]}}}},"responses":{"200":{"description":"Unsigned ERC-20 transfer and ERC-681 payment URI","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string","enum":["eip155:99901"]},"chainId":{"type":"integer","enum":[99901]},"asset":{"type":"string","enum":["USDC"],"default":"USDC"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"amount":{"type":"string"},"amountBase":{"type":"string"},"transaction":{"type":"object","properties":{"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"chainId":{"type":"string","enum":["0x1863d"]},"value":{"type":"string","enum":["0x0"]},"data":{"type":"string"}}},"paymentUri":{"type":"string"},"submitted":{"type":"boolean","enum":[false]}}}}}},"400":{"description":"Invalid input, unsupported payment, or wallet request unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"401":{"description":"A valid active Bop-issued partner key is required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"403":{"description":"Partner approval, wallet permission or browser origin rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"413":{"description":"Body exceeds 32,768 characters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"429":{"description":"60 requests per minute per client address; back off before retrying","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}}}}},"/transactions/{hash}":{"get":{"summary":"Read a transaction's canonical Elysium status","security":[{"partnerKey":[]}],"parameters":[{"name":"hash","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Pending until canonical finality; then complete or failed","content":{"application/json":{"schema":{"type":"object","properties":{"hash":{"type":"string"},"network":{"type":"string","enum":["eip155:99901"]},"state":{"type":"string","enum":["pending","complete","failed"]},"blockNumber":{"type":"string"},"explorer":{"type":"string","format":"uri"}}}}}},"400":{"description":"Invalid input, unsupported payment, or wallet request unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"401":{"description":"A valid active Bop-issued partner key is required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"403":{"description":"Partner approval, wallet permission or browser origin rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"413":{"description":"Body exceeds 32,768 characters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"429":{"description":"60 requests per minute per client address; back off before retrying","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}}}}},"/x402/prepare":{"post":{"summary":"Validate an exact x402 v2 payment and prepare a signature","security":[{"partnerKey":[]}],"description":"Requires an exact v2 challenge accepting a canonical supported Elysium token on eip155:99901, within the supplied cap, with authorization expiring within five minutes. Verifies deployed payment contracts or a matching token authorization domain. The owner separately reviews any exact allowance, payment signature and external service request. Never send Bop credentials to the service.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"serviceUrl":{"type":"string","format":"uri","description":"HTTPS target without credentials or fragments; must match the challenge resource."},"paymentRequired":{"type":"object","description":"The original x402 v2 challenge returned by the service, including accepts and optional resource."},"maxAmountUsdc":{"type":"string","pattern":"^[0-9]{1,9}(\\.[0-9]{1,6})?$","description":"Maximum USDC amount."},"payTo":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Optional exact recipient constraint."}},"required":["wallet","serviceUrl","paymentRequired","maxAmountUsdc"]}}}},"responses":{"200":{"description":"Unsigned typed data, payload template and any exact token allowance","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string","enum":["eip155:99901"]},"chainId":{"type":"integer","enum":[99901]},"serviceUrl":{"type":"string","format":"uri"},"asset":{"type":"string","enum":["USDC"],"default":"USDC"},"amount":{"type":"string"},"payTo":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"requirements":{"type":"object"},"typedData":{"type":"object"},"payloadTemplate":{"type":"object"},"approval":{"type":"object","properties":{"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"chainId":{"type":"string","enum":["0x1863d"]},"value":{"type":"string","enum":["0x0"]},"data":{"type":"string"}},"nullable":true},"expiresAt":{"type":"string","format":"date-time"},"submitted":{"type":"boolean","enum":[false]}}}}}},"400":{"description":"Invalid input, unsupported payment, or wallet request unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"401":{"description":"A valid active Bop-issued partner key is required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"403":{"description":"Partner approval, wallet permission or browser origin rejected","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"404":{"description":"Operation not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"413":{"description":"Body exceeds 32,768 characters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}},"429":{"description":"60 requests per minute per client address; back off before retrying","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","format":"uuid"}},"required":["code","request_id"]}},"required":["error"]}}}}}}}},"components":{"securitySchemes":{"partnerKey":{"type":"http","scheme":"bearer","description":"Bop-team-issued key with wallet:read for balance/status and wallet:prepare for unsigned preparation. Consumer keys and wallet login do not grant partner API access."}}}}