{"openapi":"3.1.0","info":{"title":"Nexus agent payment tools","version":"0.1.0","description":"Pay per lookup in USDC on Algorand using x402 v2. No account or API key. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure."},"servers":[{"url":"https://nexus-x402-shop.vercel.app"}],"externalDocs":{"url":"https://nexus-x402-shop.vercel.app/llms.txt","description":"Payment instructions and a capped official-client example"},"paths":{"/v1/preflight":{"get":{"operationId":"preflight","summary":"Check an Algorand address before paying it USDC: can it receive USDC (opted in, not frozen, not rekeyed)? Returns yes or no with reasons.","description":"Costs 0.01 USDC per call. Unpaid requests return 402 before input validation. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure.","parameters":[{"name":"address","in":"query","required":true,"description":"Algorand address to check","schema":{"type":"string"},"example":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ"},{"name":"asset","in":"query","required":false,"description":"Asset to inspect; this does not change the USDC payment asset.","schema":{"type":"integer","minimum":0,"default":31566704}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64 x402 v2 PaymentPayload produced by your wallet client after receiving the 402 challenge. Not an API key.","schema":{"type":"string"}}],"x-x402":{"version":2,"scheme":"exact","network":"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","asset":"31566704","amount":"10000","payTo":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","alsoAccepts":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0xBc1D053ED662126B818aff72709DB3D61F04C20a"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"E6bw9RLWtLNFye9AcYbHVGQubpuzhH2S4nPk4q5v13pc"}]},"responses":{"200":{"description":"Lookup completed. A missing transaction or invalid address may be reported in this JSON; inspect its fields. Example shows a subset of a successful result.","headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement receipt","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"address":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","validAddress":true,"exists":true,"optedIn":true,"canReceive":true,"reason":"ok"}}}},"400":{"description":"Invalid asset query parameter, checked after payment."},"402":{"description":"Payment required or rejected. Inspect the challenge; no API key is needed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired, including accepts and Bazaar metadata","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"accepts":{"type":"array","items":{"type":"object"}},"error":{"type":"string"}}}}}},"502":{"description":"Upstream chain data unavailable after settlement. A new paid request can charge again."}}}},"/v1/pay-safety":{"get":{"operationId":"paySafety","summary":"Pay-safety check before sending USDC to an address on Algorand, Base or Solana. Algorand: opt-in, frozen, rekeyed, account age, recent activity, issuer powers. Base: contract or wallet, USDC blacklist, activity. Solana: USDC account and frozen state. Returns a verdict and reasons.","description":"Costs 0.02 USDC per call. Unpaid requests return 402 before input validation. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure.","parameters":[{"name":"address","in":"query","required":true,"description":"Address you are about to pay: Algorand, Base (0x...) or Solana","schema":{"type":"string"},"example":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ"},{"name":"asset","in":"query","required":false,"description":"Asset to inspect; this does not change the USDC payment asset.","schema":{"type":"integer","minimum":0,"default":31566704}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64 x402 v2 PaymentPayload produced by your wallet client after receiving the 402 challenge. Not an API key.","schema":{"type":"string"}}],"x-x402":{"version":2,"scheme":"exact","network":"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","asset":"31566704","amount":"20000","payTo":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","alsoAccepts":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"20000","payTo":"0xBc1D053ED662126B818aff72709DB3D61F04C20a"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"20000","payTo":"E6bw9RLWtLNFye9AcYbHVGQubpuzhH2S4nPk4q5v13pc"}]},"responses":{"200":{"description":"Lookup completed. A missing transaction or invalid address may be reported in this JSON; inspect its fields. Example shows a subset of a successful result.","headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement receipt","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"address":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","verdict":"ok","ageDays":30,"rekeyed":false,"optedIn":true,"txLast30Days":12,"reasons":["opted in, not frozen, not rekeyed, with recent activity"]}}}},"400":{"description":"Invalid asset query parameter, checked after payment."},"402":{"description":"Payment required or rejected. Inspect the challenge; no API key is needed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired, including accepts and Bazaar metadata","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"accepts":{"type":"array","items":{"type":"object"}},"error":{"type":"string"}}}}}},"502":{"description":"Upstream chain data unavailable after settlement. A new paid request can charge again."}}}},"/v1/tx-receipt":{"get":{"operationId":"txReceipt","summary":"Chain-verified receipt for a transaction: confirmed, sender, receiver, asset, amount, round, time, note.","description":"Costs 0.01 USDC per call. Unpaid requests return 402 before input validation. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure.","parameters":[{"name":"txid","in":"query","required":true,"description":"Algorand transaction id (52 chars)","schema":{"type":"string","pattern":"^[A-Z2-7]{52}$"},"example":"WFQGLZ5MNVFF5SVTFSDQ22G7PZRSNZ26AYNBFQZSJEFOXRHEYB5Q"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64 x402 v2 PaymentPayload produced by your wallet client after receiving the 402 challenge. Not an API key.","schema":{"type":"string"}}],"x-x402":{"version":2,"scheme":"exact","network":"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","asset":"31566704","amount":"10000","payTo":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","alsoAccepts":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0xBc1D053ED662126B818aff72709DB3D61F04C20a"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"E6bw9RLWtLNFye9AcYbHVGQubpuzhH2S4nPk4q5v13pc"}]},"responses":{"200":{"description":"Lookup completed. A missing transaction or invalid address may be reported in this JSON; inspect its fields. Example shows a subset of a successful result.","headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement receipt","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"txid":"WFQGLZ5MNVFF5SVTFSDQ22G7PZRSNZ26AYNBFQZSJEFOXRHEYB5Q","found":true,"confirmed":true,"type":"axfer","amountBaseUnits":"10000","assetId":31566704}}}},"400":{"description":"Invalid asset query parameter, checked after payment."},"402":{"description":"Payment required or rejected. Inspect the challenge; no API key is needed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired, including accepts and Bazaar metadata","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"accepts":{"type":"array","items":{"type":"object"}},"error":{"type":"string"}}}}}},"502":{"description":"Upstream chain data unavailable after settlement. A new paid request can charge again."}}}},"/v1/invoice-check":{"get":{"operationId":"invoiceCheck","summary":"Check a supplier invoice (role buyer) or a customer purchase order (role seller) against agreed prices. Returns the exact dollars above or below the agreement, the same line billed twice, credit lines at the wrong price, lines that fail their own arithmetic, items not on the agreed list, and for a buyer a note to send the supplier. You pass the lines you read; it does the math.","description":"Costs 0.10 USDC per call. Unpaid requests return 402 before input validation. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure.","parameters":[{"name":"d","in":"query","required":true,"description":"base64url (no padding) of JSON {role: \"buyer\" or \"seller\", document: {lines: [{item_code, description, qty, uom, unit_price, line_total}], subtotal, total}, agreed_prices: [{item_code, uom, price}], item_aliases (optional): [{their_code, our_code}]}, at most 6000 characters","schema":{"type":"string"},"example":"eyJyb2xlIjoiYnV5ZXIiLCJkb2N1bWVudCI6eyJudW1iZXIiOiJJTlYtMSIsImxpbmVzIjpbeyJpdGVtX2NvZGUiOiJBMSIsInF0eSI6IjIiLCJ1b20iOiJFQSIsInVuaXRfcHJpY2UiOiI1LjAwIiwibGluZV90b3RhbCI6IjEwLjAwIn1dfSwiYWdyZWVkX3ByaWNlcyI6W3siaXRlbV9jb2RlIjoiQTEiLCJ1b20iOiJFQSIsInByaWNlIjoiNC41MCJ9XX0"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64 x402 v2 PaymentPayload produced by your wallet client after receiving the 402 challenge. Not an API key.","schema":{"type":"string"}}],"x-x402":{"version":2,"scheme":"exact","network":"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","asset":"31566704","amount":"100000","payTo":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","alsoAccepts":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"100000","payTo":"0xBc1D053ED662126B818aff72709DB3D61F04C20a"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"100000","payTo":"E6bw9RLWtLNFye9AcYbHVGQubpuzhH2S4nPk4q5v13pc"}]},"responses":{"200":{"description":"Lookup completed. A missing transaction or invalid address may be reported in this JSON; inspect its fields. Example shows a subset of a successful result.","headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement receipt","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"d":"eyJyb2xlIjoiYnV5ZXIiLCJkb2N1bWVudCI6eyJudW1iZXIiOiJJTlYtMSIsImxpbmVzIjpbeyJpdGVtX2NvZGUiOiJBMSIsInF0eSI6IjIiLCJ1b20iOiJFQSIsInVuaXRfcHJpY2UiOiI1LjAwIiwibGluZV90b3RhbCI6IjEwLjAwIn1dfSwiYWdyZWVkX3ByaWNlcyI6W3siaXRlbV9jb2RlIjoiQTEiLCJ1b20iOiJFQSIsInByaWNlIjoiNC41MCJ9XX0"}}}},"400":{"description":"Invalid asset query parameter, checked after payment."},"402":{"description":"Payment required or rejected. Inspect the challenge; no API key is needed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired, including accepts and Bazaar metadata","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"accepts":{"type":"array","items":{"type":"object"}},"error":{"type":"string"}}}}}},"502":{"description":"Upstream chain data unavailable after settlement. A new paid request can charge again."}}}},"/v1/spotproof-checks-50":{"get":{"operationId":"spotproofChecks-50","summary":"Buy 50 SpotProof invoice and purchase-order checks. The response is an agent key, shown once, to send as Authorization: Bearer on https://spotproof-production.up.railway.app/mcp. Use the same ref to retry safely: a second purchase with a used ref returns no key.","description":"Costs 14.25 USDC per call. Unpaid requests return 402 before input validation. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure.","parameters":[{"name":"ref","in":"query","required":true,"description":"Your own unique order reference, 8 to 60 letters, digits, - or _. The same ref can only buy once.","schema":{"type":"string"},"example":"order-20261205-001"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64 x402 v2 PaymentPayload produced by your wallet client after receiving the 402 challenge. Not an API key.","schema":{"type":"string"}}],"x-x402":{"version":2,"scheme":"exact","network":"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","asset":"31566704","amount":"14250000","payTo":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","alsoAccepts":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"14250000","payTo":"0xBc1D053ED662126B818aff72709DB3D61F04C20a"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"14250000","payTo":"E6bw9RLWtLNFye9AcYbHVGQubpuzhH2S4nPk4q5v13pc"}]},"responses":{"200":{"description":"Lookup completed. A missing transaction or invalid address may be reported in this JSON; inspect its fields. Example shows a subset of a successful result.","headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement receipt","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"ref":"order-20261205-001"}}}},"400":{"description":"Invalid asset query parameter, checked after payment."},"402":{"description":"Payment required or rejected. Inspect the challenge; no API key is needed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired, including accepts and Bazaar metadata","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"accepts":{"type":"array","items":{"type":"object"}},"error":{"type":"string"}}}}}},"502":{"description":"Upstream chain data unavailable after settlement. A new paid request can charge again."}}}},"/v1/spotproof-checks-250":{"get":{"operationId":"spotproofChecks-250","summary":"Buy 250 SpotProof invoice and purchase-order checks. The response is an agent key, shown once, to send as Authorization: Bearer on https://spotproof-production.up.railway.app/mcp. Use the same ref to retry safely: a second purchase with a used ref returns no key.","description":"Costs 57.00 USDC per call. Unpaid requests return 402 before input validation. Public on-chain facts only. Pay-safety is a heuristic, not a scam database or a guarantee of safety. Indexer data can lag. Payment settles before the lookup runs; an upstream failure can return 502 after charging. Do not automatically buy again after a failure.","parameters":[{"name":"ref","in":"query","required":true,"description":"Your own unique order reference, 8 to 60 letters, digits, - or _. The same ref can only buy once.","schema":{"type":"string"},"example":"order-20261205-001"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Base64 x402 v2 PaymentPayload produced by your wallet client after receiving the 402 challenge. Not an API key.","schema":{"type":"string"}}],"x-x402":{"version":2,"scheme":"exact","network":"algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","asset":"31566704","amount":"57000000","payTo":"T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ","alsoAccepts":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"57000000","payTo":"0xBc1D053ED662126B818aff72709DB3D61F04C20a"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"57000000","payTo":"E6bw9RLWtLNFye9AcYbHVGQubpuzhH2S4nPk4q5v13pc"}]},"responses":{"200":{"description":"Lookup completed. A missing transaction or invalid address may be reported in this JSON; inspect its fields. Example shows a subset of a successful result.","headers":{"PAYMENT-RESPONSE":{"description":"Base64 settlement receipt","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"ref":"order-20261205-001"}}}},"400":{"description":"Invalid asset query parameter, checked after payment."},"402":{"description":"Payment required or rejected. Inspect the challenge; no API key is needed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64 x402 v2 PaymentRequired, including accepts and Bazaar metadata","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["x402Version","accepts"],"properties":{"x402Version":{"const":2},"accepts":{"type":"array","items":{"type":"object"}},"error":{"type":"string"}}}}}},"502":{"description":"Upstream chain data unavailable after settlement. A new paid request can charge again."}}}},"/v1/feedback":{"post":{"operationId":"sendFeedback","summary":"Free: tell Nexus what an agent needs. No payment or account.","requestBody":{"required":true,"content":{"application/json":{"schema":{"about":"Tell Nexus what an agent needs. Free, no payment, no account. Anonymous; send only what you are willing to publish in aggregate.","method":"POST","path":"/v1/feedback","contentType":"application/json","maxBodyBytes":4096,"fields":{"wants":{"type":"string","maxLength":1000,"required":true},"task":{"type":"string","maxLength":300,"required":false},"agent":{"type":"string","maxLength":80,"required":false},"tried":{"type":"string","maxLength":500,"required":false},"would_pay":{"type":"string","maxLength":400,"required":false},"improve":{"type":"string","maxLength":600,"required":false}},"example":{"wants":"A way to check a USDC payout address before sending, returned as one JSON verdict","task":"paying a contractor in USDC","agent":"example-agent","tried":"a block explorer, by hand"}}}}},"responses":{"202":{"description":"Received. Anonymous."},"400":{"description":"Missing wants, an unknown field, or a wrong type."},"413":{"description":"Body over 4 KB."}}}}}}