{"openapi":"3.1.0","info":{"title":"Quay","version":"1.0.0","contact":{"name":"Quay","email":"quay@mail.grokbot.com"},"description":"Pay-per-call TRON tools. Agents pay USDT on TRON or USDC on Base with x402. The server only receives. The tools still read TRON.","x-guidance":"POST /v1/fee, /v1/payment, or /v1/address. An empty body returns HTTP 402 with PAYMENT-REQUIRED before the body is validated. accepts lists USDT on TRON and USDC on Base; echo the entry you pay. The OpenAPI price is the USDT decimal, and the Base USDC amount is that same decimal. Retry with PAYMENT-SIGNATURE. MCP tools are quay_fee_advisor, quay_payment_verifier, and quay_address_check at POST /mcp; unpaid tools/call returns JSON-RPC -32042, not HTTP 402. A valid JSON body from a normal client can still use the small daily free tier."},"servers":[{"url":"https://tron-agent-tools.sharkweather1.workers.dev"}],"paths":{"/v1/fee":{"post":{"operationId":"quay_fee_advisor","summary":"Estimate TRON energy and bandwidth for a TRX or USDT transfer, and whether to burn or stake.","security":[{"x402":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USDT","amount":"0.020000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["from","to","token"],"properties":{"from":{"type":"string","description":"Sender TRON address."},"to":{"type":"string","description":"Recipient TRON address."},"token":{"type":"string","enum":["TRX","USDT"]},"amount":{"type":"string","description":"Decimal amount. Defaults to 1."}}},"example":{"from":"TUz4nTU75z5oK4pYaVipkSDQ3Bi2DXdQT8","to":"TDCkCxZpWhB9T25PfFcvhxy9SSTMTzEw8w","token":"USDT","amount":"1"}}}},"responses":{"200":{"description":"Tool result after a free call or a settled USDT or USDC payment.","content":{"application/json":{"schema":{"type":"object","required":["recommendation","energy","bandwidth","burn"],"properties":{"recommendation":{"type":"string"},"energy":{"type":"object"},"bandwidth":{"type":"object"},"burn":{"type":"object"},"notes":{"type":"array","items":{"type":"string"}}}}}}},"402":{"description":"Payment required. Read the PAYMENT-REQUIRED header. accepts lists USDT on TRON and USDC on Base. Amounts are atomic units (6 decimals). The OpenAPI price stays the USDT decimal; the Base USDC amount is the same number."}}}},"/v1/payment":{"post":{"operationId":"quay_payment_verifier","summary":"Confirm a TRX or USDT payment: amount, sender, confirmations, and mismatch flags.","security":[{"x402":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USDT","amount":"0.030000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"address":{"type":"string"},"amount":{"type":"string"},"token":{"type":"string","enum":["TRX","USDT"]},"txId":{"type":"string"},"network":{"type":"string"}}},"example":{"address":"TDCkCxZpWhB9T25PfFcvhxy9SSTMTzEw8w","amount":"0.01","token":"USDT"}}}},"responses":{"200":{"description":"Tool result after a free call or a settled USDT or USDC payment.","content":{"application/json":{"schema":{"type":"object","required":["success","flag","detail"],"properties":{"success":{"type":"boolean"},"flag":{"type":"string"},"token":{"type":"string"},"sender":{"type":["string","null"]},"confirmations":{"type":"number"},"detail":{"type":"string"}}}}}},"402":{"description":"Payment required. Read the PAYMENT-REQUIRED header. accepts lists USDT on TRON and USDC on Base. Amounts are atomic units (6 decimals). The OpenAPI price stays the USDT decimal; the Base USDC amount is the same number."}}}},"/v1/address":{"post":{"operationId":"quay_address_check","summary":"Check a TRON address: activation, balances, contract flag, and the public USDT blacklist bit.","security":[{"x402":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USDT","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["address"],"properties":{"address":{"type":"string","description":"TRON base58check address."}}},"example":{"address":"TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf"}}}},"responses":{"200":{"description":"Tool result after a free call or a settled USDT or USDC payment.","content":{"application/json":{"schema":{"type":"object","required":["address","valid","activated","isContract","hints"],"properties":{"address":{"type":"string"},"valid":{"type":"boolean"},"activated":{"type":"boolean"},"isContract":{"type":"boolean"},"usdtBlacklisted":{"type":["boolean","null"]},"hints":{"type":"array","items":{"type":"string"}}}}}}},"402":{"description":"Payment required. Read the PAYMENT-REQUIRED header. accepts lists USDT on TRON and USDC on Base. Amounts are atomic units (6 decimals). The OpenAPI price stays the USDT decimal; the Base USDC amount is the same number."}}}},"/health":{"get":{"operationId":"health","summary":"Process and chain health. No payment.","security":[]}},"/pricing":{"get":{"operationId":"pricing","summary":"Public price list. No payment.","security":[]}},"/.well-known/x402":{"get":{"operationId":"x402_discovery","summary":"x402scan compatibility fan-out. resources is a list of absolute URLs.","security":[]}},"/.well-known/mcp/server-card.json":{"get":{"operationId":"mcp_server_card","summary":"Static MCP server card for scanners that cannot complete a session.","security":[]}}},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"Base64 x402 v2 payload. Echo one accepts entry. payload.kind tron-receipt carries a USDT txId. payload.kind base-receipt carries a USDC txHash. An exact facilitator signature is also accepted when PAYMENT_MODE allows it. USDT on TRON uses permit2. USDC on Base uses EIP-3009."}}}}