{"openapi":"3.1.0","info":{"title":"Dovafy SafePerp / SafeSwap API","version":"0.1.0","description":"Zero-custody anti-rug Solana token safety scanner and Jupiter Swap API v2 unsigned swap constructor. Disclosed 0.20% official platform fee on supported settlement pairs; 0.00% on token safety scans.","contact":{"name":"Dovafy","url":"https://dovafy.com"}},"servers":[{"url":"https://safeperp.dovafy.com","description":"Production"}],"paths":{"/api/v1/health":{"get":{"operationId":"getHealth","summary":"Service health and zero-custody status","responses":{"200":{"description":"Healthy status response"}}}},"/api/v1/safety/scan":{"post":{"operationId":"scanTokenSafety","summary":"Free multi-source pre-trade anti-rug scan for a Solana token mint","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["tokenAddress"],"properties":{"chain":{"type":"string","enum":["solana"],"default":"solana"},"tokenAddress":{"type":"string","description":"Solana base58 token mint address"}}}}}},"responses":{"200":{"description":"Safety report with PASS/WARN/BLOCK decision and risk flags"},"400":{"description":"Validation error or zero-custody violation"}}}},"/api/v1/solana/swap":{"post":{"operationId":"buildSafeSwapSolana","summary":"Scan token safety and build an unsigned Jupiter Swap API v2 transaction","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["inputMint","outputMint","amount","userPublicKey"],"properties":{"inputMint":{"type":"string"},"outputMint":{"type":"string"},"amount":{"type":"string","pattern":"^[1-9]\\d*$"},"userPublicKey":{"type":"string","description":"User public wallet address (never private key)"},"slippageBps":{"type":"integer","minimum":1,"maximum":1500,"default":100},"swapMode":{"type":"string","enum":["ExactIn","ExactOut"],"default":"ExactIn"},"acknowledgeHighRisk":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"READY_TO_SIGN with unsigned transaction and signing URL, or BLOCKED_BY_SAFETY"},"400":{"description":"Validation error or zero-custody violation"}}}},"/api/v1/solana/broadcast":{"post":{"operationId":"broadcastSignedSolanaTx","summary":"Submit a locally signed Solana transaction bound to an active signing session","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sessionId","signedTransactionBase64"],"properties":{"sessionId":{"type":"string"},"signedTransactionBase64":{"type":"string"}}}}}},"responses":{"200":{"description":"Transaction signature and Solscan explorer URL"},"404":{"description":"Sign session not found or expired"},"409":{"description":"Transaction already submitted for this session"}}}},"/api/v1/hyperliquid/perp-order":{"post":{"operationId":"buildSafeHyperliquidPerpOrder","summary":"Evaluate Hyperliquid perp risk and build an unsigned order with Builder Code","responses":{"200":{"description":"READY_TO_SIGN, BUILDER_APPROVAL_REQUIRED, or BLOCKED_HIGH_RISK"}}}},"/api/v1/evm/bridge-quote":{"post":{"operationId":"buildSafeBridgeQuote","summary":"Scan destination EVM token via GoPlus and build an unsigned LI.FI bridge/swap transaction","responses":{"200":{"description":"READY_TO_SIGN with MetaMask/Rabby signing URL, or BLOCKED_BY_SAFETY"}}}}}}