{ "openapi": "3.0.0", "info": { "contact": {}, "title": "Sprinter API", "version": "", "description": "API for Sprinter services — credit, liquidity, and solver operations." }, "paths": { "/credit/accounts/{account}/draw": { "get": { "security": [ { "ApiKeyAuth": [] }, { "BearerAuth.": [] } ], "description": "Returns the calls needed to draw credit. If the user has sufficient\nregistered collateral, the openCreditLine call is returned.", "tags": [ "Credit" ], "summary": "Build transaction calls to draw credit", "parameters": [ { "description": "User account address (borrower)", "name": "account", "in": "path", "required": true, "schema": { "type": "string" } }, { "description": "Amount to borrow (in wei)", "name": "amount", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Address to receive the borrowed funds", "name": "receiver", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "List of contract calls to execute drawing credit", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.DrawCredit.response" } } } }, "400": { "description": "Bad request due to invalid input or insufficient collateral", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/accounts/{account}/info": { "get": { "security": [ { "ApiKeyAuth.": [] } ], "description": "Returns credit details including collateral value, debt, health factor, interest, principal, and due date for a user account across all credit tokens", "tags": [ "Credit" ], "summary": "Get user credit information", "parameters": [ { "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "description": "Ethereum account address", "name": "account", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "User credit information", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.GetCreditUserInfo.response" } } } }, "400": { "description": "Invalid account address", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/accounts/{account}/lock": { "get": { "security": [ { "ApiKeyAuth.": [] } ], "description": "Creates list of contract calls to lock assets as collateral for credit account. Supports both underlying assets (e.g., USDC) which are wrapped into earn vault first, and earn positions (e.g., gtUSDCp) which are deposited directly.", "tags": [ "Credit" ], "summary": "Calldata to lock asset as collateral", "parameters": [ { "description": "Account that holds the asset and will execute calls", "name": "account", "in": "path", "required": true, "schema": { "type": "string" } }, { "description": "Amount in lowest denomination (e.g., wei for ETH)", "name": "amount", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Asset address in eth format - either underlying asset (USDC) or earn position (gtUSDCp)", "name": "asset", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Earn strategy to wrap asset before depositing. If omitted, asset is deposited directly without wrapping.", "name": "earn", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "List of contract calls to execute locking of collateral", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.Lock.response" } } } }, "400": { "description": "Bad request due to invalid input or missing parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/accounts/{account}/repay": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Creates list of contract calls to approve USDC and repay debt to CreditHub", "tags": [ "Credit" ], "summary": "Call data to repay credit debt", "parameters": [ { "description": "Account (borrower) that will repay the debt", "name": "account", "in": "path", "required": true, "schema": { "type": "string" } }, { "description": "Amount in lowest denomination (e.g., wei for ETH)", "name": "amount", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "List of contract calls to execute repayment", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.Repay.response" } } } }, "400": { "description": "Bad request due to invalid input or missing parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/accounts/{account}/unlock": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Creates list of contract calls to unlock and withdraw\ncollateral and potentially unwrap position from earn vault", "tags": [ "Credit" ], "summary": "Call data to unlock collateral", "parameters": [ { "description": "Account that holds the asset and will execute calls", "name": "account", "in": "path", "required": true, "schema": { "type": "string" } }, { "description": "Amount in lowest denomination (e.g., wei for ETH)", "name": "amount", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Asset address in eth format", "name": "asset", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Whether to generate call to unwrap from earn strategy", "name": "unwrap", "in": "query", "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "List of contract calls to execute unlocking of collateral", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.Unlock.response" } } } }, "400": { "description": "Bad request due to invalid input or missing parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/collateral/{chain}/{collateral}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Returns detailed information about a collateral asset including APY estimate (if earn vault), price in USD, underlying asset, and earn service name", "tags": [ "Credit" ], "summary": "Get collateral asset details", "parameters": [ { "example": "eip155:8453", "description": "Chain ID in CAIP-2 format", "name": "chain", "in": "path", "required": true, "schema": { "type": "string" } }, { "example": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61", "description": "Collateral asset address", "name": "collateral", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "$ref": "#/components/schemas/credit.CollateralDetailsResponse" } } } } } }, "400": { "description": "Invalid parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "404": { "description": "Collateral not supported", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/earn/unwrap": { "get": { "security": [ { "ApiKeyAuth.": [] } ], "description": "Creates list of contract calls to unwrap a position from an earn vault,\nconverting vault shares back to the underlying asset.", "tags": [ "Credit" ], "summary": "Unwrap position from earn vault", "parameters": [ { "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "description": "Owner address that holds the vault shares", "name": "owner", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "description": "Address that will receive the unwrapped underlying tokens", "name": "receiver", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "1000000000000000000", "description": "Amount of shares to unwrap", "name": "amount", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61", "description": "Vault shares token address", "name": "asset", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Slippage tolerance in percent (e.g. 0.5 = 0.5%)", "name": "slippage", "in": "query", "schema": { "type": "number", "default": 0.3 } }, { "example": "eip155:8453", "description": "Chain ID in CAIP format", "name": "chain", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.UnwrapResponse" } } } }, "400": { "description": "Invalid input parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/earn/wrap": { "get": { "security": [ { "ApiKeyAuth.": [] } ], "description": "Creates a list of contract calls (approve + deposit) to wrap an\nunderlying token into an earn vault and receive vault shares.", "tags": [ "Credit" ], "summary": "Wrap asset into earn vault", "parameters": [ { "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "description": "Account providing the underlying asset", "name": "account", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "1000000000000000000", "description": "Amount of underlying asset to wrap", "name": "amount", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "description": "Underlying token address", "name": "token", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "gauntlet-usdc-prime", "description": "Earn strategy identifier", "name": "earn", "in": "query", "schema": { "type": "string" } }, { "example": "eip155:8453", "description": "Chain CAIP-2 identifier", "name": "chain", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/credit.WrapResponse" } } } }, "400": { "description": "Invalid input parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/credit/protocol": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Returns the credit protocol configuration including credit hubs and assets", "tags": [ "Credit" ], "summary": "Get credit protocol configuration", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/config.CreditProtocolConfig" } } } }, "401": { "description": "Unauthorized - invalid or missing API key", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/health": { "get": { "description": "health check", "summary": "health check", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/server.HealthHandler.response" } } } } } } }, "/liquidity/pools/{poolType}": { "get": { "security": [ { "ApiKeyAuth.": [] } ], "description": "Returns the pool address and available balance for the requested chain and token", "tags": [ "Liquidity" ], "summary": "Get available liquidity for a specific pool type on a chain", "parameters": [ { "description": "Pool type", "name": "poolType", "in": "path", "required": true, "schema": { "type": "string", "enum": [ "aave", "aave_v2", "usdc", "usdc_v2", "aave_long_term", "aave_long_term_v2" ] } }, { "example": "eip155:1", "description": "CAIP chain ID", "name": "chain", "in": "query", "required": true, "schema": { "type": "string" } }, { "example": "USDC", "description": "Token symbol", "name": "tokenSymbol", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successfully retrieved available liquidity", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/liquidity.availableLiquidityResponse" } } } }, "400": { "description": "Bad request due to invalid input or missing parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/liquidity/v1/chain/{chain}/protocol/{protocol}/unlock": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "This endpoint returns signed authorization for an unlock transaction", "tags": [ "Liquidity" ], "summary": "Get signing authorization for a an unlock transaction", "parameters": [ { "description": "Name of the protocol, e.g., Across, Lighter", "name": "protocol", "in": "path", "required": true, "schema": { "type": "string" } }, { "description": "ID of the order that is to be unlocked", "name": "orderId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/liquidity.Unlock" } } }, "description": "request", "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/liquidity.UnlockResponse" } } } }, "400": { "description": "Bad request due to invalid input or missing parameters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } }, "/protocol/{protocol}/solver": { "get": { "description": "Returns solver address and time solver will need to fill it.", "summary": "Returns solver address", "parameters": [ { "description": "order amount in USD", "name": "amount", "in": "query", "required": true, "schema": { "type": "integer" } }, { "description": "destination chain in caip format", "name": "destinationChainId", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "destination token, either symbol or address", "name": "destinationToken", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "source chain in caip format", "name": "sourceChainId", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "source token, either symbol or address", "name": "sourceToken", "in": "query", "required": true, "schema": { "type": "string" } }, { "description": "Protocol on which intent will be executed", "name": "protocol", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/server.GetSolverHandler.response" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/responses.ErrorResponse" } } } } } } } }, "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "name": "X-Auth-Token", "in": "header" }, "BearerAuth": { "description": "Enter your Privy JWT token with the `Bearer ` prefix", "type": "apiKey", "name": "Authorization", "in": "header" } }, "schemas": { "config.ChainConfig": { "type": "object", "required": [ "collateral", "creditHubs", "escrowsMetadata", "strategies", "wrappedNativeAddress" ], "properties": { "collateral": { "description": "Asset collateral info per asset ID", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/config.CollateralDetails" } }, "creditHubs": { "description": "Credit hub info per token symbol", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/config.CreditHubInfo" } }, "escrowsMetadata": { "description": "Escrow metadata for the chain", "allOf": [ { "$ref": "#/components/schemas/config.EscrowsMetadata" } ] }, "strategies": { "description": "Earn vault strategies keyed by strategy name", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/config.EarnVaultMetadata" } }, "wrappedNativeAddress": { "description": "Wrapped native token address (e.g., WETH). Zero value means native wrapping is not supported.", "type": "string", "example": "0x4200000000000000000000000000000000000006" } } }, "config.CollateralDetails": { "type": "object", "required": [ "escrowAddress", "strategy", "symbol" ], "properties": { "escrowAddress": { "type": "string", "example": "0xfedcba0987654321fedcba0987654321fedcba09" }, "strategy": { "allOf": [ { "$ref": "#/components/schemas/entity.EarnStrategy" } ], "example": "gauntlet-usdc-prime" }, "symbol": { "allOf": [ { "$ref": "#/components/schemas/entity.TokenSymbol" } ], "example": "USDC" } } }, "config.CreditHubInfo": { "type": "object", "required": [ "assetAddress", "creditHubAddress", "creditHubControllerAddress" ], "properties": { "assetAddress": { "type": "string", "example": "0xabcdef1234567890abcdef1234567890abcdef12" }, "creditHubAddress": { "description": "Credit hub contract address", "type": "string", "example": "0x1234567890abcdef1234567890abcdef12345678" }, "creditHubControllerAddress": { "description": "Credit hub controller contract address", "type": "string", "example": "0xabcdef1234567890abcdef1234567890abcdef12" } } }, "config.CreditProtocolConfig": { "type": "object", "required": [ "chains" ], "properties": { "chains": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/config.ChainConfig" } } } }, "config.EarnVaultMetadata": { "type": "object", "required": [ "name", "type", "underlyingAddress", "vaultAddress" ], "properties": { "name": { "description": "Earn vault name (e.g., \"Gauntlet\")", "type": "string", "example": "Gauntlet" }, "type": { "description": "Strategy implementation type (e.g., \"morpho-v1\", \"aave-v3\")", "allOf": [ { "$ref": "#/components/schemas/entity.StrategyType" } ], "example": "morpho-v1" }, "underlyingAddress": { "description": "Underlying asset address (e.g., USDC)", "type": "string", "example": "0x0000000000000000000000000000000000000000" }, "vaultAddress": { "description": "Earn vault contract address", "type": "string", "example": "0x0000000000000000000000000000000000000000" } } }, "config.EscrowsMetadata": { "type": "object", "required": [ "controller", "helper" ], "properties": { "controller": { "description": "Escrow controller contract address", "type": "string", "example": "0xabcdef1234567890abcdef1234567890abcdef12" }, "helper": { "description": "Escrow helper contract address", "type": "string", "example": "0xabcdef1234567890abcdef1234567890abcdef12" } } }, "credit.CollateralDetailsResponse": { "type": "object", "required": [ "collateralAddress", "collateralPriceUsd", "earnServiceName", "isEarnVault" ], "properties": { "apy": { "type": "number", "example": 4.56 }, "collateralAddress": { "type": "string", "example": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61" }, "collateralPriceUsd": { "type": "number", "example": 1.023456 }, "earnServiceName": { "type": "string", "example": "Gauntlet" }, "isEarnVault": { "type": "boolean", "example": true }, "underlyingAsset": { "type": "string", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" }, "underlyingPriceUsd": { "type": "number", "example": 1 } } }, "credit.DrawCredit.response": { "type": "object", "required": [ "calls" ], "properties": { "calls": { "type": "array", "items": { "$ref": "#/components/schemas/evm.ContractCall" } } } }, "credit.GetCreditUserInfo.response": { "type": "object", "required": [ "data" ], "properties": { "data": { "description": "map of credit token symbol (e.g., \"USDC\") to user credit info", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/credit.UserCreditInfoFMT" } } } }, "credit.Lock.response": { "type": "object", "required": [ "calls" ], "properties": { "calls": { "type": "array", "items": { "$ref": "#/components/schemas/evm.ContractCall" } } } }, "credit.Repay.response": { "type": "object", "required": [ "calls" ], "properties": { "calls": { "type": "array", "items": { "$ref": "#/components/schemas/evm.ContractCall" } } } }, "credit.Unlock.response": { "type": "object", "required": [ "calls" ], "properties": { "calls": { "type": "array", "items": { "$ref": "#/components/schemas/evm.ContractCall" } } } }, "credit.UnwrapResponse": { "type": "object", "required": [ "amountOut", "calls", "minAmountOut", "tokenOut" ], "properties": { "amountOut": { "description": "Estimated amount of tokens to receive", "type": "string", "example": "1000000" }, "calls": { "description": "List of contract calls to execute the unwrap", "type": "array", "items": { "$ref": "#/components/schemas/evm.ContractCall" } }, "minAmountOut": { "description": "Minimum amount of tokens to receive (after slippage)", "type": "string", "example": "997000" }, "tokenOut": { "description": "Token address that will be received after unwrapping", "type": "string", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" } } }, "credit.UserCreditInfoFMT": { "type": "object", "required": [ "debt", "dueDate", "healthFactor", "interest", "principal", "totalCollateral", "totalCollateralValue" ], "properties": { "debt": { "description": "Debt is the total amount of drawn credit plus accrued interest", "type": "string", "example": "750.25" }, "dueDate": { "description": "DueDate is the repayment due date", "type": "string", "example": "2024-12-31T23:59:59Z" }, "healthFactor": { "description": "HealthFactor indicates liquidation safety\n(e.g. \"0.4044\", \"1.25\")", "type": "string", "example": "1.25" }, "interest": { "description": "Interest accrued in USD (e.g. \"12.34\")", "type": "string", "example": "12.34" }, "principal": { "description": "Principal borrowed amount in USD (Debt − Interest)", "type": "string", "example": "737.91" }, "totalCollateral": { "description": "TotalCollateral is the total amount of deposited collateral in token units displayed in highest denomination.", "type": "string", "example": "1000.00" }, "totalCollateralValue": { "description": "TotalCollateralValue is amount of usable collateral in token units displayed in highest denomination.", "type": "string", "example": "1500.50" } } }, "credit.WrapResponse": { "type": "object", "required": [ "amountOut", "calls", "tokenOut" ], "properties": { "amountOut": { "description": "Estimated shares minted", "type": "string", "example": "1000000000000000000" }, "calls": { "description": "approve + deposit calls", "type": "array", "items": { "$ref": "#/components/schemas/evm.ContractCall" } }, "tokenOut": { "description": "Vault share token received", "type": "string", "example": "0xeE8F4eC5672F09119b96Ab6fB59C27E1b7e44b61" } } }, "entity.EarnStrategy": { "type": "string", "enum": [ "gauntlet-usdc-prime", "yo-eth", "yo-btc", "yo-usdc", "" ], "x-enum-varnames": [ "StrategyGauntletUSDCPrime", "StrategyYoETH", "StrategyYoBTC", "StrategyYoUSDC", "StrategyNone" ] }, "entity.StrategyType": { "type": "string", "enum": [ "morpho-v1", "yo-protocol" ], "x-enum-varnames": [ "MorphoV1", "YoProtocol" ] }, "entity.TokenSymbol": { "type": "string", "enum": [ "usdc", "usdt", "frxusd", "liquidusd", "liquidreserve" ], "x-enum-varnames": [ "TokenUSDC", "TokenUSDT", "TokenFrxUSD", "TokenLiquidUSD", "TokenLiquidReserve" ] }, "evm.ContractCall": { "type": "object", "required": [ "chain", "data", "to", "value" ], "properties": { "chain": { "type": "string" }, "data": { "type": "array", "items": { "type": "integer" } }, "to": { "type": "array", "items": { "type": "integer" } }, "value": { "$ref": "#/components/schemas/types.BigInt" } } }, "liquidity.Unlock": { "description": "unlock authorisation signature.", "type": "object", "required": [ "signature" ], "properties": { "signature": { "type": "string" } } }, "liquidity.UnlockResponse": { "type": "object", "required": [ "data" ], "properties": { "data": { "$ref": "#/components/schemas/liquidity.Unlock" } } }, "liquidity.availableLiquidityResponse": { "type": "object", "required": [ "data" ], "properties": { "data": { "$ref": "#/components/schemas/liquidity.poolLiquidity" } } }, "liquidity.poolLiquidity": { "type": "object", "required": [ "address", "balance" ], "properties": { "address": { "type": "string" }, "balance": { "type": "string" } } }, "responses.ErrorResponse": { "type": "object", "required": [ "error" ], "properties": { "debug": { "type": "string" }, "error": { "type": "string" } } }, "server.GetSolverHandler.response": { "type": "object", "required": [ "duration", "solver" ], "properties": { "duration": { "type": "integer" }, "solver": { "type": "string" } } }, "server.HealthHandler.response": { "type": "object", "required": [ "status" ], "properties": { "status": { "type": "string" } } }, "types.BigInt": { "type": "object" } } }, "servers": [ { "url": "https://api.getmiso.fi" } ] }