{ "openapi": "3.0.0", "info": { "title": "Rhinestone Orchestrator API", "version": "2026-09.caucasus" }, "servers": [ { "url": "https://v1.orchestrator.rhinestone.dev" } ], "components": { "securitySchemes": { "apiKeyAuth": { "type": "apiKey", "in": "header", "name": "x-api-key", "description": "Project API key." }, "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT", "description": "Integrator-issued access token (JWT authentication mode)." } } }, "paths": { "/chains": { "get": { "operationId": "listChains", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the chain", "example": "Arbitrum One" }, "testnet": { "type": "boolean" }, "supportedTokens": { "anyOf": [ { "type": "string", "enum": [ "all" ] }, { "type": "array", "items": { "type": "object", "properties": { "symbol": { "type": "string" }, "address": { "type": "string", "minLength": 1, "description": "Token contract address (format depends on the chain)" }, "decimals": { "type": "number" } }, "required": [ "symbol", "address", "decimals" ] } } ] }, "wrappedNativeToken": { "type": "object", "properties": { "symbol": { "type": "string" }, "address": { "type": "string", "minLength": 1, "description": "Token contract address (format depends on the chain)" }, "decimals": { "type": "number" } }, "required": [ "symbol", "address", "decimals" ], "description": "The wrapped-native token (e.g. WETH) for the chain. Lets clients resolve the wrapped-native address without bundling a token registry." }, "nativeToken": { "type": "object", "properties": { "symbol": { "type": "string" }, "address": { "type": "string", "minLength": 1, "description": "Token contract address (format depends on the chain)" }, "decimals": { "type": "number" } }, "required": [ "symbol", "address", "decimals" ], "description": "The chain's gas asset. Lets a client name a native-value transfer without assuming ETH — a wallet on a non-ETH chain would otherwise label AVAX or BNB as ETH in every review and receipt." }, "explorer": { "nullable": true, "description": "Block explorer, or null for a chain that has none. Compose a link as ${url}${addressPath}${value} or ${url}${txPath}${value}, then append ?${query} verbatim when present. Absent query means no suffix; null explorer means render plain text instead of a link.", "type": "object", "properties": { "url": { "type": "string", "example": "https://basescan.org" }, "addressPath": { "type": "string", "example": "/address/" }, "txPath": { "type": "string", "example": "/tx/" }, "query": { "example": "cluster=devnet", "description": "Optional query content with no leading ?. Append ?${query} verbatim after the linked value; absent means no query suffix.", "type": "string" } }, "required": [ "url", "addressPath", "txPath" ] }, "settlement": { "type": "object", "properties": { "cctp": { "type": "object", "properties": { "domain": { "type": "number" }, "tokenMessenger": { "type": "string" }, "usdc": { "type": "string" } }, "required": [ "domain", "tokenMessenger", "usdc" ] }, "oft": { "type": "object", "properties": { "adapter": { "type": "string" }, "eid": { "type": "number" }, "token": { "type": "string" } }, "required": [ "adapter", "eid", "token" ] }, "eco": { "type": "object", "properties": { "portal": { "type": "string" }, "provers": { "type": "array", "items": { "type": "string" } }, "stablecoins": { "type": "array", "items": { "type": "string" } } }, "required": [ "portal", "provers", "stablecoins" ] }, "lz": { "type": "object", "properties": { "multiCall": { "type": "string" }, "transferDelegate": { "type": "string" }, "stargateUsdc": { "type": "object", "properties": { "pool": { "type": "string" }, "token": { "type": "string" }, "eid": { "type": "number" } }, "required": [ "pool", "token", "eid" ] }, "cctp": { "type": "object", "properties": { "domain": { "type": "number" }, "token": { "type": "string" }, "feeReceiver": { "type": "string" }, "feeless": { "type": "boolean", "enum": [ true ] } }, "required": [ "domain", "token", "feeReceiver" ] } }, "required": [ "multiCall", "transferDelegate" ] }, "swapper": { "type": "object", "properties": { "swapper": { "type": "string" }, "proxy": { "type": "string" } }, "required": [ "swapper", "proxy" ] }, "fees": { "type": "object", "properties": { "appFeeCollector": { "type": "string" }, "paymaster": { "type": "string" } }, "required": [ "appFeeCollector", "paymaster" ] }, "usdStablecoins": { "description": "The USD stablecoins (6 or 18 decimals) a session stable-swap floor treats as 1:1.", "type": "array", "items": { "type": "object", "properties": { "address": { "type": "string" }, "symbol": { "type": "string" }, "decimals": { "type": "number" } }, "required": [ "address", "symbol", "decimals" ] } } }, "description": "What an SDK session pins on this chain: the contracts each settlement layer calls, and the USD stablecoins a stable-swap floor treats as 1:1. A layer appears only when every address it needs is known. Absent when the chain has none of these." } }, "required": [ "name", "testnet", "supportedTokens", "wrappedNativeToken", "nativeToken", "explorer" ] }, "description": "Supported chains and tokens, keyed by CAIP-2 chain id" } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [], "summary": "Supported chains and tokens", "description": "Get supported chains and tokens with additional metadata", "tags": [ "Utilities" ] } }, "/liquidity": { "get": { "operationId": "listLiquidity", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." }, { "name": "sourceChainId", "in": "query", "required": true, "schema": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$", "description": "Source chain ID (CAIP-2)", "example": "eip155:1" }, "description": "Source chain ID (CAIP-2)" }, { "name": "sourceToken", "in": "query", "required": true, "schema": { "description": "Source token address", "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "type": "string" }, "description": "Source token address" }, { "name": "destinationChainId", "in": "query", "required": true, "schema": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Destination chain ID (CAIP-2)", "example": "eip155:8453" }, "description": "Destination chain ID (CAIP-2)" }, { "name": "destinationToken", "in": "query", "required": true, "schema": { "type": "string", "minLength": 1, "description": "Destination token address (EVM 0x or non-EVM base58)", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" }, "description": "Destination token address (EVM 0x or non-EVM base58)" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "symbol": { "type": "string", "description": "Destination token symbol", "example": "USDC" }, "decimals": { "type": "number", "description": "Destination token decimals", "example": 6 }, "unlimited": { "type": "boolean", "description": "True when an uncapped settlement layer (e.g. OFT) supports this route", "example": false }, "maxAmount": { "nullable": true, "description": "Largest known fillable amount for this token by a single relayer instance. Exact for relayer-market settlement layers (ACROSS, ECO); bridge-backed layers (Relay, NEAR, Rhino) return a conservative probed lower bound. Null when unlimited.", "example": "200000000000", "type": "string" } }, "required": [ "symbol", "decimals", "unlimited", "maxAmount" ] } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Route liquidity limit", "description": "Returns the largest known fillable amount for a single deposit on the given source→destination route. Relayer-market layers return exact capacity; bridge-backed layers return a conservative probed lower bound.", "tags": [ "Utilities" ] } }, "/intents/{id}": { "get": { "operationId": "getIntent", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." }, { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "pattern": "^\\d+$", "description": "Unique identifier of the intent operation", "example": "77119256265773742309930654065362693497375232736834856992878277299604179621015" }, "description": "Unique identifier of the intent operation" }, { "name": "full", "in": "query", "required": false, "schema": { "description": "Whether to include intent operation details", "example": true, "type": "boolean" }, "description": "Whether to include intent operation details" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "intentId": { "type": "string", "description": "Intent id — the one passed to `GET /intents/:id`", "example": "12345678901234567890" }, "purpose": { "type": "string", "enum": [ "execution", "deployment" ], "description": "What the intent was for: `execution` moves funds or runs calls; `deployment` only initializes an account, and has no value.", "example": "execution" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ], "description": "Overall intent status: PENDING, COMPLETED, or FAILED", "example": "COMPLETED" }, "accounts": { "description": "The accounts this intent acts through, one entry per chain it acts on — each origin chain, then the destination. Projected from the resolved plan, so it names an account exactly as the quote did. Absent when the record carries no account context; a HyperCore delivery carries its origins only where the record cannot supply the venue it addressed.", "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "One chain the intent acts on, with the account it acts through there" } }, "operations": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "description": "CAIP-2 chain id; a number only for a chain no longer supported", "example": "eip155:10", "anyOf": [ { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, { "type": "number" } ] }, "items": { "type": "array", "items": { "description": "One operation this intent performed: a transaction on a chain, or the aggregate execution at a venue that runs none.", "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "CLAIM", "FILL", "BRIDGE_FILL" ], "description": "Operation type: CLAIM, FILL, or BRIDGE_FILL", "example": "FILL" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ], "description": "Operation status", "example": "COMPLETED" }, "transaction": { "description": "The transaction that carried this operation. Absent until one is known — never fabricated to look confirmed.", "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash", "example": "0xc1674f4671accbceec3f22c2c9cfa4f7aead7183f48df90c239e0d85d6c31e21" } }, "required": [ "vm", "chainId", "txHash" ], "description": "An EVM transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "signature": { "type": "string", "minLength": 1, "description": "Transaction signature, base58 (64 bytes encoded)" } }, "required": [ "vm", "chainId", "signature" ], "description": "A Solana transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "tvm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txId": { "type": "string", "minLength": 1, "description": "Transaction id, hex without the 0x prefix" } }, "required": [ "vm", "chainId", "txId" ], "description": "A Tron transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "stellar" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash, hex" } }, "required": [ "vm", "chainId", "txHash" ], "description": "A Stellar transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "unknown" ] }, "chainId": { "type": "number", "description": "Numeric chain id, as the record stored it", "example": 1337 }, "id": { "type": "string", "minLength": 1, "description": "The stored identifier, verbatim" } }, "required": [ "vm", "chainId", "id" ], "description": "A transaction on a chain no chain in force carries, so no VM can be derived for it. The identifier is served as stored rather than dropped or dressed up as an EVM hash." } ], "discriminator": { "propertyName": "vm" } }, "timestamp": { "description": "Block timestamp in unix seconds (present once landed)", "example": 1633493192, "type": "number" }, "failureReason": { "description": "Why the operation failed (present only when FAILED). `NOT_EXECUTED` means the source transaction did not land and can no longer land: the account’s funds never left, and the caller can safely re-quote and sign again. `failureEvidence` on the source operation carries the chain evidence.", "example": "BRIDGE_TIMEOUT", "type": "string" }, "failureEvidence": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "reason": { "type": "string", "enum": [ "COUNTER_UNCONSUMED" ], "description": "The role's on-chain counter never reached the one the payload signed" }, "swig": { "type": "string", "minLength": 1, "description": "The Swig state account, base58" }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role the payload was signed under" }, "signedCounter": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The replay counter the payload consumes" }, "observedCounter": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The role's stored counter at `observedSlot`" }, "lastValidSlot": { "type": "string", "pattern": "^\\d+$", "description": "The last slot the payload could have executed in", "example": "312000060" }, "observedSlot": { "type": "string", "pattern": "^\\d+$", "description": "The finalized slot the role was read at", "example": "312000081" }, "commitment": { "type": "string", "enum": [ "finalized" ] } }, "required": [ "vm", "reason", "swig", "roleId", "signedCounter", "observedCounter", "lastValidSlot", "observedSlot", "commitment" ], "additionalProperties": false, "description": "Finalized chain evidence that the source transaction did not land and can no longer land: the cluster is past the payload’s last valid slot and the role never consumed its counter. The account’s funds never left; re-quote and sign again." }, "debitsAccount": { "description": "This operation's transaction spends the account's own tokens or runs caller-supplied Solana instructions that may do so. Absent means neither applies (a destination fill, or a tokenless intent). Read it together with the operation status: a FAILED intent none of whose debiting operations reached COMPLETED never took the account's funds.", "example": true, "type": "boolean", "enum": [ true ] }, "allocation": { "type": "object", "properties": { "plannedGasMicroUsd": { "type": "string", "pattern": "^\\d+$", "description": "Sponsor-covered gas planned for this operation (micro-USD)", "example": "100" }, "fixedCompensationMicroUsd": { "type": "string", "pattern": "^\\d+$", "description": "Fixed non-gas compensation (micro-USD); nonzero only on FILL allocations", "example": "0" }, "executedGasMicroUsd": { "nullable": true, "description": "Receipt-derived actual gas (micro-USD); null means the planned fallback applies", "example": "80", "type": "string", "pattern": "^\\d+$" }, "payableMicroUsd": { "type": "string", "pattern": "^\\d+$", "description": "fixedCompensation + (executedGas ?? plannedGas), in micro-USD", "example": "80" }, "counterparty": { "nullable": true, "description": "Canonical earner, stamped from the receipt sender this allocation reconciled to, in the chain's own address format; null until earned", "type": "string" }, "nativeTokenPriceUsd": { "nullable": true, "description": "Pinned native-token USD price the gas micro-USD was valued at, as a decimal string; null when no price snapshot exists", "example": "2000", "type": "string" }, "receipt": { "description": "Canonical receipt evidence; the transaction reference and timestamp already sit on the item", "anyOf": [ { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "blockHash": { "nullable": true, "description": "Block hash", "type": "string" }, "blockNumber": { "type": "string", "description": "Block number" }, "gasUsed": { "nullable": true, "description": "Gas used", "type": "string" }, "effectiveGasPriceWei": { "nullable": true, "description": "Effective gas price (wei)", "type": "string" }, "l1FeeWei": { "nullable": true, "description": "L1 fee (wei), OP-stack chains only", "type": "string" }, "blobFeeWei": { "nullable": true, "description": "Blob fee (wei)", "type": "string" } }, "required": [ "vm", "blockHash", "blockNumber", "gasUsed", "effectiveGasPriceWei", "l1FeeWei", "blobFeeWei" ] }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "slot": { "type": "string", "description": "Slot the transaction was confirmed in", "example": "299123456" } }, "required": [ "vm", "slot" ] } ], "discriminator": { "propertyName": "vm" } }, { "type": "object", "nullable": true, "enum": [ null ] } ] }, "payment": { "nullable": true, "description": "Treasury settlement of this allocation; null until settled. Destinations, references, and operator fields are never exposed.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "PAYMENT", "ADJUSTMENT" ] }, "effectiveDate": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": [ "kind", "effectiveDate", "createdAt" ] } }, "required": [ "plannedGasMicroUsd", "fixedCompensationMicroUsd", "executedGasMicroUsd", "payableMicroUsd", "counterparty", "nativeTokenPriceUsd", "receipt", "payment" ], "description": "Present only on operations the CALLER earned: the allocation's stamped counterparty, or — before conversion stamps one — the operation's canonical receipt sender, is one of the caller's registered `scopes.relayer.fillAddresses`. Holding the relayer scope is not sufficient. Amounts are micro-USD." } }, "required": [ "type", "status" ], "description": "A single operation on a chain" }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "EXECUTION" ], "description": "An off-chain execution at the destination, rather than a transaction on a chain.", "example": "EXECUTION" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ], "description": "PENDING while the action is still owed, COMPLETED once accepted, FAILED on every other terminal outcome.", "example": "COMPLETED" }, "result": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "hypercore" ] }, "outcome": { "type": "string", "enum": [ "pending", "accepted", "refused", "error", "unknown", "partial" ], "description": "`pending` while the action is still owed — the POST runs after the fill transaction commits, so this is normal for a few seconds after delivery. `accepted` means Hyperliquid took it; an order filled for less than asked is accepted, simply for less. `refused` is the exchange declining a well-formed action — an `Ioc` that no longer crossed by the time the bridge delivered is the expected one — and `error` is it never answering before the intent expired.\n\n`unknown` means a delivery attempt got no response at all, so the action MAY have been applied and only its answer lost. `partial` means some orders of one batch were placed and others rejected — an `order` action carries up to 100 and each is matched independently.\n\nEvery non-`accepted` terminal value reports the intent as FAILED, because reporting success on a maybe is the failure this field exists to prevent. Do NOT re-send a `partial` batch as-is: the orders that filled would open a second time. Check the account on Hyperliquid for `partial` and `unknown` alike — it holds the per-order record, and the funds are in its own HyperCore balance whatever happened.", "example": "accepted" } }, "required": [ "vm", "outcome" ], "description": "What the venue did with the intent's actions, in the venue's own terms" } }, "required": [ "type", "status", "result" ], "description": "The intent’s aggregate execution at a venue" } ] }, "description": "Operations on this chain" } }, "required": [ "chainId", "items" ], "description": "Operations on one chain" }, "description": "Operations grouped by chain" }, "refunds": { "type": "array", "items": { "type": "object", "properties": { "transaction": { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash", "example": "0xc1674f4671accbceec3f22c2c9cfa4f7aead7183f48df90c239e0d85d6c31e21" } }, "required": [ "vm", "chainId", "txHash" ], "description": "An EVM transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "signature": { "type": "string", "minLength": 1, "description": "Transaction signature, base58 (64 bytes encoded)" } }, "required": [ "vm", "chainId", "signature" ], "description": "A Solana transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "tvm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txId": { "type": "string", "minLength": 1, "description": "Transaction id, hex without the 0x prefix" } }, "required": [ "vm", "chainId", "txId" ], "description": "A Tron transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "stellar" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash, hex" } }, "required": [ "vm", "chainId", "txHash" ], "description": "A Stellar transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "unknown" ] }, "chainId": { "type": "number", "description": "Numeric chain id, as the record stored it", "example": 1337 }, "id": { "type": "string", "minLength": 1, "description": "The stored identifier, verbatim" } }, "required": [ "vm", "chainId", "id" ], "description": "A transaction on a chain no chain in force carries, so no VM can be derived for it. The identifier is served as stored rather than dropped or dressed up as an EVM hash." } ], "description": "The transaction that returned the funds to the account", "discriminator": { "propertyName": "vm" } } }, "required": [ "transaction" ], "description": "A bridge refund returned to the account for this intent" }, "description": "Bridge refunds observed for this intent — a settlement layer returned the funds to the account instead of delivering them. Not operations: Rhinestone neither built nor broadcast these transactions, and a refund never makes the intent succeed. Empty means none were observed, which is every delivered intent and also a failed one whose refund we have not (or not yet) seen — so an empty list is not evidence that funds were kept." }, "details": { "type": "object", "properties": { "nonce": { "type": "string", "description": "Intent nonce (hex)", "example": "0x000000000000000000000000000000000000000000000000ab54a98ceb1f0ad2" }, "recipient": { "description": "Absent when the record carries no recipient that can be named on a chain in force. A HyperCore delivery names the venue the caller addressed, not the chain it settled on — and nothing at all where the record cannot supply that venue.", "anyOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "address": { "type": "string", "minLength": 1 } }, "required": [ "vm", "chainId", "address" ] }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "unknown" ] }, "chainId": { "type": "number" }, "address": { "type": "string", "minLength": 1 } }, "required": [ "vm", "chainId", "address" ] } ] }, "createdAt": { "type": "number", "description": "Intent creation time in unix seconds", "example": 1633493100 }, "latencyMs": { "nullable": true, "description": "Milliseconds from recorded creation to the latest included receipt; null without receipts. Negative intervals clamp to zero, not evidence of instant execution. Receipt times use chain time (possibly second-precision) or server-observation fallbacks. This is not final completion latency or a guarantee of millisecond accuracy.", "example": 8100, "type": "number", "minimum": 0 }, "settlementLayer": { "nullable": true, "description": "Settlement layer; null if the routing strategy is unrecognized", "example": "ACROSS", "type": "string", "enum": [ "INTENT_EXECUTOR", "SAME_CHAIN", "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ", null ] }, "source": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "description": "CAIP-2 chain id; a number only for a chain no longer supported", "example": "eip155:10", "anyOf": [ { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, { "type": "number" } ] }, "tokens": { "type": "array", "items": { "type": "object", "properties": { "token": { "type": "string", "minLength": 1, "description": "Token address, in the format its chain uses (EVM hex, non-EVM base58)", "example": "0x0b2c639c533813f4aa9d7837caf62653d097ff85" }, "symbol": { "nullable": true, "description": "Token symbol. `null` when the internal token registry has no entry for this address.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals. `null` when the internal token registry has no entry for this address.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "amount": { "type": "string", "description": "Token amount in base units", "example": "1000000" } }, "required": [ "token", "symbol", "decimals", "amount" ], "description": "A token moved on this leg" }, "description": "All tokens moved on this leg" }, "transaction": { "description": "The transaction that carried this leg, once it lands", "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash", "example": "0xc1674f4671accbceec3f22c2c9cfa4f7aead7183f48df90c239e0d85d6c31e21" } }, "required": [ "vm", "chainId", "txHash" ], "description": "An EVM transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "signature": { "type": "string", "minLength": 1, "description": "Transaction signature, base58 (64 bytes encoded)" } }, "required": [ "vm", "chainId", "signature" ], "description": "A Solana transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "tvm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txId": { "type": "string", "minLength": 1, "description": "Transaction id, hex without the 0x prefix" } }, "required": [ "vm", "chainId", "txId" ], "description": "A Tron transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "stellar" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash, hex" } }, "required": [ "vm", "chainId", "txHash" ], "description": "A Stellar transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "unknown" ] }, "chainId": { "type": "number", "description": "Numeric chain id, as the record stored it", "example": 1337 }, "id": { "type": "string", "minLength": 1, "description": "The stored identifier, verbatim" } }, "required": [ "vm", "chainId", "id" ], "description": "A transaction on a chain no chain in force carries, so no VM can be derived for it. The identifier is served as stored rather than dropped or dressed up as an EVM hash." } ], "discriminator": { "propertyName": "vm" } }, "timestamp": { "description": "Block timestamp in unix seconds (present once landed)", "example": 1633493192, "type": "number" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ], "description": "Leg status", "example": "COMPLETED" } }, "required": [ "chainId", "tokens", "status" ], "description": "A single source or destination leg" }, "description": "Source (claim) legs" }, "destination": { "nullable": true, "description": "Destination (fill) leg; null before a fill is dispatched", "type": "object", "properties": { "chainId": { "description": "CAIP-2 chain id; a number only for a chain no longer supported", "example": "eip155:10", "anyOf": [ { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, { "type": "number" } ] }, "tokens": { "type": "array", "items": { "type": "object", "properties": { "token": { "type": "string", "minLength": 1, "description": "Token address, in the format its chain uses (EVM hex, non-EVM base58)", "example": "0x0b2c639c533813f4aa9d7837caf62653d097ff85" }, "symbol": { "nullable": true, "description": "Token symbol. `null` when the internal token registry has no entry for this address.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals. `null` when the internal token registry has no entry for this address.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "amount": { "type": "string", "description": "Token amount in base units", "example": "1000000" } }, "required": [ "token", "symbol", "decimals", "amount" ], "description": "A token moved on this leg" }, "description": "All tokens moved on this leg" }, "transaction": { "description": "The transaction that carried this leg, once it lands", "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash", "example": "0xc1674f4671accbceec3f22c2c9cfa4f7aead7183f48df90c239e0d85d6c31e21" } }, "required": [ "vm", "chainId", "txHash" ], "description": "An EVM transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "signature": { "type": "string", "minLength": 1, "description": "Transaction signature, base58 (64 bytes encoded)" } }, "required": [ "vm", "chainId", "signature" ], "description": "A Solana transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "tvm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txId": { "type": "string", "minLength": 1, "description": "Transaction id, hex without the 0x prefix" } }, "required": [ "vm", "chainId", "txId" ], "description": "A Tron transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "stellar" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the transaction is on", "example": "eip155:8453" }, "txHash": { "type": "string", "minLength": 1, "description": "Transaction hash, hex" } }, "required": [ "vm", "chainId", "txHash" ], "description": "A Stellar transaction" }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "unknown" ] }, "chainId": { "type": "number", "description": "Numeric chain id, as the record stored it", "example": 1337 }, "id": { "type": "string", "minLength": 1, "description": "The stored identifier, verbatim" } }, "required": [ "vm", "chainId", "id" ], "description": "A transaction on a chain no chain in force carries, so no VM can be derived for it. The identifier is served as stored rather than dropped or dressed up as an EVM hash." } ], "discriminator": { "propertyName": "vm" } }, "timestamp": { "description": "Block timestamp in unix seconds (present once landed)", "example": 1633493192, "type": "number" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ], "description": "Leg status", "example": "COMPLETED" } }, "required": [ "chainId", "tokens", "status" ] }, "executions": { "description": "The calls or instructions the intent runs. Absent when the stored payload cannot supply them. The signed intended execution is reported; no per-call result is recorded.", "type": "object", "properties": { "source": { "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ], "description": "The calls the intent runs on one chain" }, "description": "The caller's own pre-claim calls, one block per origin chain that runs any" }, "destination": { "description": "What the intent runs at its destination, tagged with the destination's own execution environment. An EVM destination's calls include plumbing the route composes alongside the caller's own calls; they are what the intent runs, not a restatement of what was requested. A HyperCore destination is the exception: its `settlement` holds only the caller's own calls, exactly as the quote's `plan.destination` disclosed them.", "anyOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ], "description": "The calls the intent runs on one chain" }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The caller's own instructions, in execution order" }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve against" }, "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" } }, "required": [ "executedBy", "instructions", "addressLookupTables", "vm", "chainId" ] }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "A change to the Swig's own authorities" } }, "required": [ "vm", "chainId", "authority" ], "additionalProperties": false, "description": "A change to the Swig's own authorities" }, { "type": "object", "properties": { "actions": { "description": "The canonical actions, IN THE ORDER they are sent, each with its nonce and the agent that authorises it. Absent when the route carries none.", "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, in the key order the agent address commits to" }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "type": "string", "minLength": 1, "description": "The agent that authorises it", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "action", "nonce", "agent" ], "description": "One HyperCore action and the agent it runs as" } }, "settlement": { "description": "The caller's own HyperEVM calls, in execution order. Only calls the caller sent: the gas-refund allowance, the core deposit and the agent registrations the orchestrator composes are not disclosed here (the registrations are disclosed in the signing request's `scope.hyperCore`). Absent when the caller sent none, and on a record written before caller calls were attributed.", "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ] }, "vm": { "type": "string", "enum": [ "hypercore" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "The venue the actions run at", "example": "hypercore:perp" } }, "required": [ "vm", "chainId" ], "description": "What the intent runs at a HyperCore venue, and to reach it" }, { "type": "object", "nullable": true, "enum": [ null ] } ] } }, "required": [ "source", "destination" ] }, "deployments": { "description": "Account initializations this intent performs, one per chain. Present and empty when the record parsed and the route initialized nothing; absent when the record could not be read.", "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "One chain the intent acts on, with the account it acts through there" } }, "cost": { "type": "object", "properties": { "sponsored": { "type": "boolean", "description": "Whether the accepted EVM intent enabled any recognized sponsorship coverage. Independent of lifecycle and recorded charge; historical, Solana, and Safe records without readable coverage settings retain the accounting-derived value.", "example": true }, "sponsoredValue": { "description": "Sponsored value actually charged, in integer micro-USD (1 USD = 1,000,000 units). Once the intent executes this is reconciled from the receipt (planned gas replaced by executed), so it matches the sponsorship balance and the usage/billing reads rather than the amount reserved at quote time. On an allocation-backed intent this is the sum of its per-operation allocations, which is where reconciliation writes executed gas. Includes Relay's subsidy of its own bridge fee, charged at par.", "example": "210000", "type": "string", "pattern": "^\\d+$" }, "protocolFee": { "description": "Rhinestone-owed slice of the sponsor charge, in integer micro-USD (1 USD = 1,000,000 units): the sponsor surcharge plus a sponsored protocol fee (`options.sponsorship.protocolFees`) where one applies. Charged on allocation-backed intents too — the allocation ledger carries the relayer liability only.", "example": "10000", "type": "string", "pattern": "^\\d+$" }, "sponsorSurcharge": { "description": "Rhinestone's surcharge on the sponsored coverage, in integer micro-USD — the pure surcharge slice of `protocolFee` and reconciled with it, as `sponsorSurcharge` on a quote. Omitted where the charge was recorded without the split, which is never inferred by subtraction.", "example": "10000", "type": "string", "pattern": "^\\d+$" } }, "required": [ "sponsored" ], "description": "Intent sponsorship coverage and recorded accounting amounts. Coverage may be true when amounts are zero or omitted; amounts remain integer micro-USD and are omitted when no sponsorship row exists." } }, "required": [ "nonce", "createdAt", "latencyMs", "settlementLayer", "source", "destination", "cost" ], "description": "Extended intent details, returned only when `full=true`" } }, "required": [ "intentId", "purpose", "status", "operations", "refunds" ], "description": "Successfully retrieved intent operation status" } } } }, "400": { "description": "Invalid intent ID", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "404": { "description": "Intent ID not found", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Get Intent", "description": "Retrieves the status of an intent along with per-claim progress across chains.", "tags": [ "Intents" ] } }, "/accounts/{accountAddress}/portfolio": { "get": { "operationId": "getPortfolio", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." }, { "name": "accountAddress", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "chainIds", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "array", "items": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$" } }, { "type": "string", "pattern": "^eip155:[0-9]{1,32}$" } ] } }, { "name": "tokens", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "array", "items": { "type": "string", "pattern": "^eip155:[0-9]{1,32}:0x[a-fA-F0-9]{40}$" } }, { "type": "string", "pattern": "^eip155:[0-9]{1,32}:0x[a-fA-F0-9]{40}$" } ] } }, { "name": "filterEmpty", "in": "query", "required": false, "schema": { "type": "boolean", "default": false } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "portfolio": { "type": "array", "items": { "type": "object", "properties": { "symbol": { "type": "string", "description": "Short name (symbol) of the token", "example": "USDC" }, "chains": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$", "description": "Chain ID where the token balance exists (CAIP-2)", "example": "eip155:1" }, "address": { "description": "Token contract address on this chain", "example": "0xa0B86A33e6441B8C4505B8C4505b8C4505B8C450", "type": "string" }, "decimals": { "type": "number", "minimum": 0, "description": "Decimal places for this token on this chain. Sourced per-chain because the same logical token can have different on-chain decimals across chains (e.g. USDC: 6 on Ethereum, 18 on BNB Smart Chain).", "example": 6 }, "amount": { "type": "string", "format": "uint256", "description": "Token balance on this chain in the token's smallest unit", "example": "1000000" } }, "required": [ "chainId", "address", "decimals", "amount" ] }, "description": "Array of token balances per chain" } }, "required": [ "symbol", "chains" ] }, "description": "Array of token portfolio entries" } }, "required": [ "portfolio" ] } } } }, "400": { "description": "Invalid request parameters", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Get Account Portfolio", "description": "Retrieves the token balances across all supported chains for a user's abstracted account", "tags": [ "Utilities" ] } }, "/intents": { "get": { "operationId": "listIntents", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." }, { "name": "cursor", "in": "query", "required": false, "schema": { "description": "Opaque cursor from a previous response (`pagination.nextCursor`). Omit for the first page.", "example": "1024", "type": "string", "pattern": "^\\d+$" }, "description": "Opaque cursor from a previous response (`pagination.nextCursor`). Omit for the first page." }, { "name": "limit", "in": "query", "required": false, "schema": { "default": 20, "description": "Max items per page (max 100)", "example": 20, "type": "integer", "minimum": 1, "maximum": 100 }, "description": "Max items per page (max 100)" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "intentId": { "type": "string", "description": "Intent id — pass to `GET /intents/:id`", "example": "12345678901234567890" }, "purpose": { "type": "string", "enum": [ "execution", "deployment" ], "description": "What the intent was for, as on the intent read", "example": "execution" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ], "description": "Overall intent status: PENDING, COMPLETED, or FAILED", "example": "COMPLETED" }, "accounts": { "description": "The accounts this intent acts through, one entry per chain it acts on — the same summaries `GET /intents/:id` reports for the same record, projected through the same rules. Absent when the record carries no account context; never present and empty.", "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "One chain the intent acts on, with the account it acts through there" } }, "sourceChainIds": { "type": "array", "items": { "description": "CAIP-2 chain id; a number only for a chain no longer supported", "example": "eip155:10", "anyOf": [ { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, { "type": "number" } ] }, "description": "Source chains — one per distinct chain the intent spends on. Empty when the record carries no operations.", "example": [ "eip155:1", "eip155:8453" ] }, "destinationChainId": { "description": "Where the intent delivers — for a HyperCore intent the venue it addressed, not the chain the delivery settled on. Absent when the record carries no fill, or cannot supply that venue, as on the intent read.", "example": "eip155:10", "anyOf": [ { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, { "type": "number" } ] }, "value": { "description": "Absent where no single truthful value exists: no value leg, or a multi-token delivery no one cell can describe. Never a zero-value placeholder.", "type": "object", "properties": { "side": { "type": "string", "enum": [ "output", "input" ], "description": "`output` where the fill records planned delivery, including same-chain outputs; `input` where source spend is the only retained fact, including historical same-chain rows without output accounting.", "example": "output" }, "chainId": { "description": "The chain the value landed on", "example": "eip155:8453", "anyOf": [ { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, { "type": "number" } ] }, "tokenAddress": { "type": "string", "minLength": 1, "description": "The token, in its own chain's address format", "example": "0x0b2c639c533813f4aa9d7837caf62653d097ff85" }, "amount": { "type": "string", "description": "Amount in base units", "example": "1000000" }, "symbol": { "nullable": true, "description": "Token symbol; `null` when the internal token registry has no entry for this address.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals; `null` when the internal token registry has no entry for this address.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": [ "side", "chainId", "tokenAddress", "amount", "symbol", "decimals" ] }, "createdAt": { "type": "number", "description": "Intent creation time in unix seconds", "example": 1633493100 } }, "required": [ "intentId", "purpose", "status", "sourceChainIds", "createdAt" ], "description": "A single intent list entry" }, "description": "Intents on this page, newest first" }, "pagination": { "type": "object", "properties": { "nextCursor": { "nullable": true, "description": "Pass as `cursor` to fetch the next page; null when no more results.", "example": "1024", "type": "string" }, "hasNextPage": { "type": "boolean", "example": true } }, "required": [ "nextCursor", "hasNextPage" ], "description": "Keyset pagination metadata" } }, "required": [ "data", "pagination" ], "description": "Paginated list of the client’s intents" } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "List Intents", "description": "Retrieves a paginated list of the authenticated client's intents, newest first.", "tags": [ "Intents" ] }, "post": { "operationId": "createIntent", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "201": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "intentId": { "type": "string", "pattern": "^\\d+$" } }, "required": [ "intentId" ] } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "404": { "description": "The quoted intent has expired or was already submitted. Request a new route to retry.", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "409": { "description": "The intent or its shared sponsorship authorization was already used.", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "422": { "description": "Simulation found the account short of balance or allowance.", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "503": { "description": "Intent submission or the router contract is paused.", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Create Intent", "description": "Submits a quoted intent for execution. Takes the `intentId` from `POST /quotes` (`routes[].intentId`) plus one ordered `proofs[]` answering the quote's `signingRequests[]` position by position.", "tags": [ "Intents" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "intentId": { "type": "string", "pattern": "^\\d+$", "description": "Identifier of the intent returned by `POST /quotes` (as `routes[].intentId`)." }, "proofs": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "eip712" ] }, "signature": { "anyOf": [ { "description": "A single signature, used for both claim encodings", "example": "0x1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1c", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, { "type": "object", "properties": { "preClaim": { "description": "Signature over the fund-pull (pre-claim) encoding", "example": "0x1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1c", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "notarizedClaim": { "description": "Signature over the notarized claim encoding", "example": "0x1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1c", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "preClaim", "notarizedClaim" ], "additionalProperties": false, "description": "Two encodings of one authorization. Accepted only on an origin request the account itself verifies." } ] } }, "required": [ "kind", "signature" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "personalSign" ] }, "signature": { "description": "Signature over the requested message", "example": "0x1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1c", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "kind", "signature" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "eip7702" ] }, "nonce": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Authorization nonce the signer used. The chain and the delegate come from the request, not from here.", "example": 3 }, "signature": { "type": "object", "properties": { "r": { "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "s": { "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "yParity": { "description": "Parity of the authorization signature", "example": 0, "anyOf": [ { "type": "number", "enum": [ 0 ] }, { "type": "number", "enum": [ 1 ] } ] } }, "required": [ "r", "s", "yParity" ], "additionalProperties": false } }, "required": [ "kind", "nonce", "signature" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "webauthn" ] }, "assertion": { "type": "object", "properties": { "credentialId": { "type": "string", "minLength": 1, "description": "The credential the assertion was made with, as `PublicKeyCredential.id` (base64url) reports it" }, "authenticatorData": { "type": "string", "pattern": "^0x(?:[0-9a-fA-F]{2}){37,}$", "description": "The authenticator data the authenticator returned, as 0x-prefixed hex. At least 37 bytes: RP id hash, flags and sign counter." }, "clientDataJSON": { "type": "string", "pattern": "^\\{[\\s\\S]*\\}$", "description": "The client data exactly as the authenticator returned it, decoded as UTF-8 JSON text — not base64, not re-serialized. The signature covers its hash byte for byte.", "example": "{\"type\":\"webauthn.get\",\"challenge\":\"o_LB1OW2p5gPHi08S1ppeIeWpbTD0uHwobLD1OX2Bxg\",\"origin\":\"https://app.example.com\"}" }, "signature": { "type": "string", "pattern": "^0x[0-9a-fA-F]{128}$", "description": "The P-256 signature as 64-byte r‖s, 0x-prefixed hex — not the DER encoding the authenticator returns." }, "userHandle": { "description": "The user handle the authenticator returned with the assertion, when it returned one", "type": "string" } }, "required": [ "credentialId", "authenticatorData", "clientDataJSON", "signature" ], "additionalProperties": false } }, "required": [ "kind", "assertion" ], "additionalProperties": false, "description": "Answers a `webauthn` request, which a Solana spend out of a passkey-owned Swig is served. Verified against the Swig role’s secp256r1 key at submit." } ], "description": "The proof answering one signing request. Its `kind` must match the request at the same index.", "discriminator": { "propertyName": "kind" } }, "description": "One proof per signing request the quote served, in the same order. A missing or extra entry is refused." }, "options": { "description": "Internal use only.", "type": "object", "properties": { "dryRun": { "type": "boolean" } }, "additionalProperties": false } }, "required": [ "intentId", "proofs" ], "additionalProperties": false } } } } } }, "/intents/splits": { "post": { "operationId": "getSplit", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "intents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Array of intents, each mapping token addresses to amounts that can be filled by a single relayer", "example": [ { "0xaf88d065e77c8cc2239327c5edb3a432268e5831": "2400000000000" }, { "0xaf88d065e77c8cc2239327c5edb3a432268e5831": "1700000000000" }, { "0xaf88d065e77c8cc2239327c5edb3a432268e5831": "900000000000" } ] } }, "required": [ "intents" ] } } } }, "400": { "description": "Invalid request parameters", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "422": { "description": "Insufficient liquidity to fill the full amount. Partial splits returned.", "content": { "application/json": { "schema": { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Split Intent by Liquidity", "description": "Splits token amounts into multiple intents based on available relayer liquidity. Each returned intent can be filled by a single relayer.", "tags": [ "Intents" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$", "description": "The chain ID the intents settle on (CAIP-2)", "example": "eip155:42161" }, "tokens": { "type": "object", "additionalProperties": { "type": "string", "format": "uint256" }, "description": "Map of token addresses to amounts", "example": { "0xaf88d065e77c8cc2239327c5edb3a432268e5831": "5000000000000" } }, "settlementLayers": { "description": "Which settlement layers the orchestrator may use. `{ include: [...] }` (allow-list) or `{ exclude: [...] }` (deny-list, inverted against the orchestrator's live layer set); a bare array means `include`. Internal modes (`SAME_CHAIN`, `INTENT_EXECUTOR`) are not selectable. Default unset = all layers eligible.", "example": { "exclude": [ "RELAY" ] }, "anyOf": [ { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } }, { "type": "object", "properties": { "include": { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } } }, "required": [ "include" ], "additionalProperties": false }, { "type": "object", "properties": { "exclude": { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } } }, "required": [ "exclude" ], "additionalProperties": false } ] } }, "required": [ "chainId", "tokens" ] } } } } } }, "/quotes": { "post": { "operationId": "createQuote", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "enum": [ "quoted" ], "description": "The orchestrator quoted the intent.", "example": "quoted" }, "routes": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "intentId": { "type": "string", "pattern": "^\\d+$", "description": "Server-stored intent identifier. Pass back to `POST /intents` to submit." }, "purpose": { "type": "string", "enum": [ "execution" ], "description": "What this route is for: `execution` moves funds or runs calls, `deployment` only initializes an account.", "example": "execution" }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Quote expiry timestamp (Unix seconds). After this point, assume the quote is dead and re-quote.", "example": 1733493192 }, "estimatedFillTime": { "type": "object", "properties": { "seconds": { "type": "number", "description": "Typical end-to-end fill time for this route in seconds. Directional, not guaranteed.", "example": 3 } }, "required": [ "seconds" ], "description": "Estimated fill time for the route" }, "settlementLayer": { "type": "string", "enum": [ "INTENT_EXECUTOR", "SAME_CHAIN", "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ], "description": "Settlement layer selected for this route", "example": "RELAY" }, "plan": { "type": "object", "properties": { "source": { "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "execution": { "description": "Present only where the route runs the caller's own calls on this block — or, at a HyperCore venue, actions or caller settlement calls.", "anyOf": [ { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The caller's own calls, in execution order" } }, "required": [ "executedBy", "calls" ], "description": "The caller's own EVM calls on this block. Never a claim to be the whole native transaction — solver plumbing, swap calldata and bridge sends are not disclosed here." }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The caller's own instructions, in execution order" }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve against" } }, "required": [ "executedBy", "instructions", "addressLookupTables" ], "description": "The caller's own Solana instructions on this block" }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "A change to the Swig's own authorities" } }, "required": [ "executedBy", "authority" ], "additionalProperties": false, "description": "An authority change on this Swig, run by the Swig state account itself" }, { "type": "object", "properties": { "actions": { "description": "The canonical actions, IN THE ORDER they are sent, each with its nonce and the agent that authorises it. Absent when the route carries none.", "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, in the key order the agent address commits to" }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "type": "string", "minLength": 1, "description": "The agent that authorises it", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "action", "nonce", "agent" ], "description": "One HyperCore action and the agent it runs as" } }, "settlement": { "description": "The caller's own HyperEVM calls, in execution order. Only calls the caller sent: the gas-refund allowance, the core deposit and the agent registrations the orchestrator composes are not disclosed here (the registrations are disclosed in the signing request's `scope.hyperCore`). Absent when the caller sent none, and on a record written before caller calls were attributed.", "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ] } }, "additionalProperties": false, "description": "What the route runs at a HyperCore venue, and the caller's own calls that settle before it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "One chain the route acts on" }, "description": "One block per chain the route spends on, in the order the route reaches them." }, "destination": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "execution": { "description": "Present only where the route runs the caller's own calls on this block — or, at a HyperCore venue, actions or caller settlement calls.", "anyOf": [ { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The caller's own calls, in execution order" } }, "required": [ "executedBy", "calls" ], "description": "The caller's own EVM calls on this block. Never a claim to be the whole native transaction — solver plumbing, swap calldata and bridge sends are not disclosed here." }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The caller's own instructions, in execution order" }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve against" } }, "required": [ "executedBy", "instructions", "addressLookupTables" ], "description": "The caller's own Solana instructions on this block" }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "A change to the Swig's own authorities" } }, "required": [ "executedBy", "authority" ], "additionalProperties": false, "description": "An authority change on this Swig, run by the Swig state account itself" }, { "type": "object", "properties": { "actions": { "description": "The canonical actions, IN THE ORDER they are sent, each with its nonce and the agent that authorises it. Absent when the route carries none.", "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, in the key order the agent address commits to" }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "type": "string", "minLength": 1, "description": "The agent that authorises it", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "action", "nonce", "agent" ], "description": "One HyperCore action and the agent it runs as" } }, "settlement": { "description": "The caller's own HyperEVM calls, in execution order. Only calls the caller sent: the gas-refund allowance, the core deposit and the agent registrations the orchestrator composes are not disclosed here (the registrations are disclosed in the signing request's `scope.hyperCore`). Absent when the caller sent none, and on a record written before caller calls were attributed.", "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ] } }, "additionalProperties": false, "description": "What the route runs at a HyperCore venue, and the caller's own calls that settle before it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "The single block the route delivers to, on the chain the caller named." }, "deployments": { "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "An account initialization the route performs, disclosed separately even when it shares a transaction with a claim or a fill." }, "description": "Account initializations the route performs. Empty when it performs none." } }, "required": [ "source", "destination", "deployments" ], "description": "What the route does, resolved inline: where it spends, where it delivers, what it executes and who executes it, and the accounts it initializes." }, "cost": { "type": "object", "properties": { "input": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the debited token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" }, "description": "Tokens debited from the user, coalesced by (chainId, tokenAddress)" }, "output": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the delivered token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" }, "description": "Tokens delivered to the recipient, coalesced by (chainId, tokenAddress)" }, "fees": { "type": "object", "properties": { "total": { "type": "object", "properties": { "usd": { "type": "number", "description": "USD-denominated value", "example": 0.029 } }, "required": [ "usd" ], "description": "Full route cost in USD, regardless of who pays. Equal to `sum(breakdown.*.usd)` modulo rounding." }, "breakdown": { "type": "object", "properties": { "gas": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate gas cost (destination fill, swap execution, origin gas)" }, "bridge": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate settlement-layer bridge cost" }, "swap": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate solver swap commission" }, "app": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate integrator app fee" }, "protocol": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Rhinestone protocol fee (`options.protocolFees`). `sponsored: true` when the integrator sponsorship balance pays it instead of the user." }, "sponsorSurcharge": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Rhinestone's surcharge on the sponsored relayer coverage, charged to the sponsor. 0 when the intent is not sponsored. Pure surcharge — a sponsored protocol fee is shown on `protocol`, never here." } }, "required": [ "gas", "bridge", "swap", "app", "protocol", "sponsorSurcharge" ], "description": "Per-category fee breakdown" } }, "required": [ "total", "breakdown" ], "description": "Aggregate route fees with per-category breakdown" }, "executionPayment": { "description": "Solana instruction execution only: the exact fixed wallet debit, or confirmation that the sponsor pays and the wallet has no execution debit. The wallet debit also appears in input.", "oneOf": [ { "type": "object", "properties": { "paidBy": { "type": "string", "enum": [ "wallet" ] }, "walletDebit": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the debited token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" } }, "required": [ "paidBy", "walletDebit" ] }, { "type": "object", "properties": { "paidBy": { "type": "string", "enum": [ "sponsor" ] } }, "required": [ "paidBy" ] } ], "discriminator": { "propertyName": "paidBy" } } }, "required": [ "input", "output", "fees" ], "description": "Route cost: inputs, outputs, and fee breakdown" }, "requirements": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "erc20Approval" ] }, "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the requirement applies on", "example": "eip155:8453" }, "account": { "description": "The account the requirement applies to", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "tokenAddress": { "description": "Token the requirement applies to", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "type": "string" }, "amount": { "type": "string", "format": "uint256", "description": "Minimum amount, in the token's smallest unit", "example": "1000000" }, "spender": { "description": "Always the canonical Permit2 contract on this chain. The account approves Permit2; the settlement contract pulls funds via Permit2 at claim time.", "example": "0x000000000022d473030f116ddee9f6b43ac78ba3", "type": "string" } }, "required": [ "kind", "vm", "chainId", "account", "tokenAddress", "amount", "spender" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "wrapNative" ] }, "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the requirement applies on", "example": "eip155:8453" }, "account": { "description": "The account the requirement applies to", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "tokenAddress": { "description": "Token the requirement applies to", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "type": "string" }, "amount": { "type": "string", "format": "uint256", "description": "Minimum amount, in the token's smallest unit", "example": "1000000" } }, "required": [ "kind", "vm", "chainId", "account", "tokenAddress", "amount" ], "additionalProperties": false } ], "description": "A pre-flight operation the account must perform before this route can be claimed. `quoted` does not mean it is already fulfilled.", "discriminator": { "propertyName": "kind" } }, "description": "Pre-flight operations the account must perform before this route can be claimed. Always present; empty when the route needs none. Emitted for EOA accounts only — smart accounts handle these internally." }, "signingRequests": { "type": "array", "items": { "type": "object", "properties": { "account": { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "address": { "description": "Account the signature authorizes", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "vm", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "wallet": { "type": "string", "minLength": 1, "description": "Asset-holding Swig wallet the spend debits", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "minLength": 1, "description": "Swig state account holding the authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } }, "required": [ "vm", "wallet", "swigAccount" ], "additionalProperties": false } ], "description": "The account this signature acts for, named inline per VM. Carries no per-chain observation, since one request can span chains.", "discriminator": { "propertyName": "vm" } }, "authority": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Address the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ], "additionalProperties": false, "description": "A raw key: the signature is verified by recovering it to this address." }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account" ] }, "vm": { "type": "string", "enum": [ "evm" ] }, "address": { "description": "Account that verifies the signature itself", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "vm", "address" ], "additionalProperties": false, "description": "The account verifies the signature natively (ERC-1271 / ERC-7579). Its owners are deliberately not enumerated: which key signs is the account itself to decide, and the proof bytes carry no length rule." }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "swigRole" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Swig role the spend was authorized under", "example": 1 }, "authority": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Address the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false, "description": "A passkey (WebAuthn) key, named by its public key: its signature recovers to no address." } ], "description": "The authority configured on that role", "discriminator": { "propertyName": "kind" } } }, "required": [ "kind", "roleId", "authority" ], "additionalProperties": false, "description": "A selected Swig role, plus the authority it carries. Reports the role this quote used; it does not claim to be the only role that could authorize the spend." } ], "description": "What verifies the signature", "discriminator": { "propertyName": "kind" } }, "scope": { "description": "What the signature authorizes. Always agrees with the payload; never a restatement of the route.", "anyOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "action": { "type": "string", "enum": [ "claim", "fill", "targetExecution", "delegation" ], "description": "What the signature authorizes", "example": "claim" }, "accounts": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is authorized on", "example": "eip155:8453" }, "address": { "type": "string", "minLength": 1, "description": "Account address, in its own chain's format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "chainId", "address" ], "additionalProperties": false }, "description": "The accounts and chains the action runs against" }, "hyperCore": { "description": "Present only on a request that authorizes at least one HyperCore agent registration. Lists every registration the payload commits to, in registration (slot) order: one item for a per-leg payload, all of them for an aggregate `MultiChainOps` payload. Names what each registration commits to, which the payload itself carries only as CoreWriter calldata. Changing any action, their order, a nonce or an agent requires a fresh quote.", "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, exactly as the agent commits to it. Key order is part of the commitment — the agent address is recovered from a signature over its msgpack encoding — so it is served in the order it was signed in, not re-sorted." }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "description": "The agent this registration installs. It is derived from the action bytes above, so it authorises that action and nothing else.", "type": "string" }, "slot": { "type": "string", "description": "The named API-wallet slot the agent goes in. Registering evicts whatever the account had in that slot; the account's unnamed wallet is never used.", "example": "rh1" } }, "required": [ "action", "nonce", "agent", "slot" ], "additionalProperties": false, "description": "One HyperCore agent registration" } } }, "required": [ "vm", "action", "accounts" ], "additionalProperties": false, "description": "An EVM scope names accounts, chains and action only — the calls the route runs are disclosed once, in the route's `plan`, so the two cannot disagree. The one exception is `hyperCore`, which names a commitment that exists nowhere else in a readable form." }, { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "action": { "type": "string", "enum": [ "spend" ] }, "accounts": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is authorized on", "example": "eip155:8453" }, "address": { "type": "string", "minLength": 1, "description": "Account address, in its own chain's format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "chainId", "address" ], "additionalProperties": false }, "description": "The wallet the spend debits, on its chain" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The full instruction set this signature authorizes, in execution order, in the same shape a request carries instructions in." }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve accounts through. The tables themselves are not inlined." }, "feePayer": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "role" ] }, "role": { "type": "string", "enum": [ "relayer" ] } }, "required": [ "kind", "role" ], "additionalProperties": false, "description": "Who pays the transaction fee, as a role rather than a key: the payload names no payer, and the relayer picks its own." }, "slotWindow": { "type": "object", "properties": { "from": { "type": "string", "description": "Slot the payload was pinned to", "example": "370123456" }, "to": { "type": "string", "description": "Last slot it can be landed in", "example": "370123516" } }, "required": [ "from", "to" ], "additionalProperties": false, "description": "Slot range the payload is signable in" } }, "required": [ "vm", "action", "accounts", "instructions", "addressLookupTables", "feePayer", "slotWindow" ], "additionalProperties": false, "description": "A Solana scope additionally discloses the instruction set, because the message itself is an opaque digest." }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "action": { "type": "string", "enum": [ "manageAuthority" ] }, "accounts": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is authorized on", "example": "eip155:8453" }, "address": { "type": "string", "minLength": 1, "description": "Account address, in its own chain's format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "chainId", "address" ], "additionalProperties": false }, "description": "The Swig state account whose authorities change, on its chain" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "The change this signature authorizes, exactly as the plan discloses it" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The sealed instructions this signature authorizes, in execution order: a passkey signer's secp256r1 precompile, then the Swig `AddAuthorityV1` or `RemoveAuthorityV1`, whose payer is a one-off key the relayer funds." }, "feePayer": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "role" ] }, "role": { "type": "string", "enum": [ "relayer" ] } }, "required": [ "kind", "role" ], "additionalProperties": false, "description": "Who pays the transaction fee, as a role rather than a key: the payload names no payer, and the relayer picks its own." }, "slotWindow": { "type": "object", "properties": { "from": { "type": "string", "description": "Slot the payload was pinned to", "example": "370123456" }, "to": { "type": "string", "description": "Last slot it can be landed in", "example": "370123516" } }, "required": [ "from", "to" ], "additionalProperties": false, "description": "Slot range the payload is signable in" } }, "required": [ "vm", "action", "accounts", "authority", "instructions", "feePayer", "slotWindow" ], "additionalProperties": false, "description": "A Solana authority-change scope: the change itself, and the instructions the message commits to, since the message is an opaque digest." } ], "discriminator": { "propertyName": "action" } } ] }, "chainIds": { "type": "array", "items": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "description": "The chains the payload is cryptographically BOUND to, CAIP-2, each listed once — a `MultiChainOps` payload with several legs on one chain still names it once. This is what was signed rather than what the route is about: a Permit2 payload binds to the chain it claims funds on, so a destination request repeats the chain of the origin payload it duplicates." }, "purpose": { "type": "string", "enum": [ "originAuthorization", "destinationAuthorization", "targetExecutionAuthorization", "delegationAuthorization" ], "description": "What the signature is for", "example": "originAuthorization" }, "validity": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "timestamp" ] }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Unix seconds after which the payload is dead", "example": 1733493192 } }, "required": [ "kind", "expiresAt" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "svmSlot" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id whose slots the deadline counts in", "example": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" }, "expiresAtSlot": { "type": "string", "description": "Slot after which the payload is dead", "example": "370123516" } }, "required": [ "kind", "chainId", "expiresAtSlot" ], "additionalProperties": false } ], "description": "A native deadline the payload is bound by. Every constraint returned applies; an empty list means the payload carries none of its own.", "discriminator": { "propertyName": "kind" } }, "description": "Native deadlines that apply to this payload. Empty when it carries none — quote retention is a separate thing and is not a promise that a stale payload is submittable." }, "payload": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "eip712" ] }, "typedData": { "type": "object", "properties": { "domain": { "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" }, "chainId": { "type": "number" }, "verifyingContract": { "type": "string" }, "salt": { "type": "string" } }, "description": "EIP-712 domain separator fields" }, "types": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": [ "name", "type" ] } }, "description": "EIP-712 type definitions keyed by type name" }, "primaryType": { "type": "string", "description": "Name of the top-level type to sign", "example": "PermitBatchWitnessTransferFrom" }, "message": { "type": "object", "additionalProperties": true, "description": "Message values keyed by field name. uint256 fields are encoded as decimal strings on the wire and re-coerced to bigint client-side before signing." } }, "required": [ "domain", "types", "primaryType", "message" ], "description": "EIP-712 typed data definition ready for `signTypedData`" }, "signatureFormat": { "type": "string", "enum": [ "secp256k1", "account" ], "description": "How the proof is encoded: raw 65-byte ECDSA for an EOA, or the account-native encoding for an ERC-7579 account, on which no length rule is imposed.", "example": "secp256k1" } }, "required": [ "kind", "typedData", "signatureFormat" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "personalSign" ] }, "message": { "type": "object", "properties": { "encoding": { "type": "string", "enum": [ "utf8" ] }, "value": { "type": "string", "description": "Sign these characters as UTF-8 TEXT — viem `signMessage({ message })`, never `{ raw }`. Signing the decoded bytes yields a well-formed signature the chain rejects.", "example": "a3f2c1d4e5b6a7980f1e2d3c4b5a69788796a5b4c3d2e1f0a1b2c3d4e5f60718" } }, "required": [ "encoding", "value" ], "additionalProperties": false } }, "required": [ "kind", "message" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "eip7702" ] }, "authorization": { "type": "object", "properties": { "chainId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Native chain value of the authorization tuple, not CAIP-2", "example": 8453 }, "address": { "description": "Delegate contract the authorization installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "chainId", "address" ], "additionalProperties": false, "description": "The delegation to authorize. Carries no nonce: the orchestrator observes no EOA nonces, and one read at quote time is stale by signing time — the signer supplies it with the proof." } }, "required": [ "kind", "authorization" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "webauthn" ] }, "challenge": { "type": "string", "pattern": "^0x[0-9a-fA-F]{64}$", "description": "Challenge the authenticator signs: 32 bytes as 0x-prefixed hex. Pass the decoded bytes as the WebAuthn `challenge`, not the hex text.", "example": "0xa3f2c1d4e5b6a7980f1e2d3c4b5a69788796a5b4c3d2e1f0a1b2c3d4e5f60718" } }, "required": [ "kind", "challenge" ], "additionalProperties": false, "description": "Served for a Solana spend out of a passkey-owned Swig, whose role names a secp256r1 authority. Answered with a `webauthn` proof." } ], "description": "The native payload to sign", "discriminator": { "propertyName": "kind" } } }, "required": [ "account", "authority", "scope", "chainIds", "purpose", "validity", "payload" ], "additionalProperties": false, "description": "One payload the caller must sign. Answer request `i` with proof `i`." }, "description": "Everything the caller must sign, in the order to answer it: the origin authorizations, the destination authorization, the target execution where one applies, then any EIP-7702 delegations. Each entry states its own account, authority, scope, chains, purpose and validity, so a new signing path joins the array rather than adding a field." }, "bridgeFill": { "description": "Provider handle for resolving the destination-chain delivery transaction when settlement hands off to a third-party bridge (ECO, RHINO, RELAY, NEAR, CCTP, OFT). Absent when the orchestrator settles end-to-end (e.g. ACROSS).", "oneOf": [ { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "OFT" ], "description": "LayerZero OFT" } }, "required": [ "destinationChainId", "fillStatusTimeout", "type" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "ACROSS" ], "description": "Across spoke-pool deposit. Names a deposit to watch for a refund, not a delivery — an ACROSS intent is filled by our own relayer and tracked as an ordinary fill." }, "depositId": { "type": "string", "pattern": "^[0-9]{1,78}$", "description": "The Across deposit id our claim opens on the origin chain, as a decimal uint256. Derived as keccak(arbiter | sponsor | nonce)." } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "depositId" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "ECO" ], "description": "Eco solver-network delivery" }, "quoteId": { "description": "Eco v1 quote ID for detailed delivery and refund tracking.", "type": "string", "pattern": "^quote:[0-9a-f-]{36}$" }, "intentHash": { "description": "Eco Portal intent hash. Use against Eco's intent status API to resolve the destination delivery transaction.", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "providerDestinationChainId": { "description": "Eco's own id for the delivery chain, present only where it differs from `destinationChainId` (non-EVM destinations). Eco's status API reports fulfilment against this id.", "type": "integer", "minimum": 0, "exclusiveMinimum": true, "maximum": 9007199254740991 }, "providerSourceChainId": { "description": "Eco's own id for the chain the reward was funded on, present only where it differs from the deposit chain (non-EVM origins).", "type": "integer", "minimum": 0, "exclusiveMinimum": true, "maximum": 9007199254740991 } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "intentHash" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "RELAY" ], "description": "Relay.link" }, "requestId": { "type": "string", "description": "Relay.link request ID. Use against Relay.link's status API to track the destination-chain fill." } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "requestId" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "NEAR" ], "description": "NEAR Intents" }, "depositAddress": { "description": "NEAR Intents deposit address on the origin chain, in its native form (EVM 0x or Solana base58). Track fill status via the NEAR Intents status API keyed on this address.", "anyOf": [ { "type": "string" }, { "type": "string", "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$" } ] } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "depositAddress" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "RHINO" ], "description": "Rhino.fi" }, "commitmentId": { "type": "string", "description": "Rhino.fi commitment ID. Use against Rhino.fi's status API to track the destination-chain fill." }, "keyVariant": { "description": "Rhino.fi API key variant the commitment was quoted under. Rhino.fi answers a status lookup only under that key, so the fill-tracker asks for the same variant.", "type": "string", "enum": [ "user_fee" ] } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "commitmentId" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "CCTP" ], "description": "Circle CCTP" }, "sourceDomainId": { "type": "number", "description": "Circle CCTP source domain ID — needed to fetch the attestation for the burn message on the source chain." }, "destinationDomainId": { "type": "number", "description": "Circle CCTP destination domain ID." }, "delivery": { "description": "Who submits the destination mint. Absent or 'FORWARD': Circle's Forwarding Service. 'RELAYER': the Rhinestone relayer.", "type": "string", "enum": [ "FORWARD", "RELAYER" ] } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "sourceDomainId", "destinationDomainId" ] }, { "type": "object", "properties": { "destinationChainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the chain the bridge delivers to (e.g. `eip155:8453`, `solana:…`)", "example": "eip155:8453" }, "fillExpirationPeriod": { "description": "Optional bridge-specific fill deadline duration, in seconds. Preserved on stored quote reload so checksum validation uses the same bridgeFill payload that was signed at quote time.", "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "fillStatusTimeout": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Fill-tracker watch window, in seconds. The orchestrator owns this timeout; the fill-tracker reads it here to decide when a bridge fill has timed out." }, "type": { "type": "string", "enum": [ "LZ" ], "description": "LayerZero Value Transfer" }, "quoteId": { "type": "string", "description": "LayerZero quote ID. Use against LayerZero's transfer status API to track the destination-chain fill." }, "dstChainKey": { "type": "string", "description": "LayerZero's own chain key for the destination (e.g. `base`). Its status response names chains by key rather than id." }, "routeTypes": { "type": "array", "items": { "type": "string" }, "description": "Protocols the quote routed through (e.g. STARGATE_V2_TAXI, CCTP_V2). One transfer can span several." } }, "required": [ "destinationChainId", "fillStatusTimeout", "type", "quoteId", "dstChainKey", "routeTypes" ] } ], "discriminator": { "propertyName": "type" } } }, "required": [ "intentId", "purpose", "expiresAt", "estimatedFillTime", "settlementLayer", "plan", "cost", "requirements", "signingRequests" ], "description": "A single ranked route candidate that executes the intent" }, { "type": "object", "properties": { "intentId": { "type": "string", "pattern": "^\\d+$", "description": "Server-stored intent identifier. Pass back to `POST /intents` to submit." }, "purpose": { "type": "string", "enum": [ "deployment" ], "description": "What this route is for: `execution` moves funds or runs calls, `deployment` only initializes an account.", "example": "deployment" }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Quote expiry timestamp (Unix seconds). After this point, assume the quote is dead and re-quote.", "example": 1733493192 }, "estimatedFillTime": { "type": "object", "properties": { "seconds": { "type": "number", "description": "Typical end-to-end fill time for this route in seconds. Directional, not guaranteed.", "example": 3 } }, "required": [ "seconds" ], "description": "Estimated fill time for the route" }, "settlementLayer": { "type": "string", "enum": [ "INTENT_EXECUTOR", "SAME_CHAIN", "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ], "description": "Settlement layer selected for this route", "example": "RELAY" }, "plan": { "type": "object", "properties": { "source": { "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "execution": { "description": "Present only where the route runs the caller's own calls on this block — or, at a HyperCore venue, actions or caller settlement calls.", "anyOf": [ { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The caller's own calls, in execution order" } }, "required": [ "executedBy", "calls" ], "description": "The caller's own EVM calls on this block. Never a claim to be the whole native transaction — solver plumbing, swap calldata and bridge sends are not disclosed here." }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The caller's own instructions, in execution order" }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve against" } }, "required": [ "executedBy", "instructions", "addressLookupTables" ], "description": "The caller's own Solana instructions on this block" }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "A change to the Swig's own authorities" } }, "required": [ "executedBy", "authority" ], "additionalProperties": false, "description": "An authority change on this Swig, run by the Swig state account itself" }, { "type": "object", "properties": { "actions": { "description": "The canonical actions, IN THE ORDER they are sent, each with its nonce and the agent that authorises it. Absent when the route carries none.", "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, in the key order the agent address commits to" }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "type": "string", "minLength": 1, "description": "The agent that authorises it", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "action", "nonce", "agent" ], "description": "One HyperCore action and the agent it runs as" } }, "settlement": { "description": "The caller's own HyperEVM calls, in execution order. Only calls the caller sent: the gas-refund allowance, the core deposit and the agent registrations the orchestrator composes are not disclosed here (the registrations are disclosed in the signing request's `scope.hyperCore`). Absent when the caller sent none, and on a record written before caller calls were attributed.", "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ] } }, "additionalProperties": false, "description": "What the route runs at a HyperCore venue, and the caller's own calls that settle before it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "One chain the route acts on" }, "description": "One block per chain the route spends on, in the order the route reaches them." }, "destination": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "execution": { "description": "Present only where the route runs the caller's own calls on this block — or, at a HyperCore venue, actions or caller settlement calls.", "anyOf": [ { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The caller's own calls, in execution order" } }, "required": [ "executedBy", "calls" ], "description": "The caller's own EVM calls on this block. Never a claim to be the whole native transaction — solver plumbing, swap calldata and bridge sends are not disclosed here." }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The caller's own instructions, in execution order" }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve against" } }, "required": [ "executedBy", "instructions", "addressLookupTables" ], "description": "The caller's own Solana instructions on this block" }, { "type": "object", "properties": { "executedBy": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ], "description": "The executor of the disclosed calls" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "A change to the Swig's own authorities" } }, "required": [ "executedBy", "authority" ], "additionalProperties": false, "description": "An authority change on this Swig, run by the Swig state account itself" }, { "type": "object", "properties": { "actions": { "description": "The canonical actions, IN THE ORDER they are sent, each with its nonce and the agent that authorises it. Absent when the route carries none.", "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, in the key order the agent address commits to" }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "type": "string", "minLength": 1, "description": "The agent that authorises it", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "action", "nonce", "agent" ], "description": "One HyperCore action and the agent it runs as" } }, "settlement": { "description": "The caller's own HyperEVM calls, in execution order. Only calls the caller sent: the gas-refund allowance, the core deposit and the agent registrations the orchestrator composes are not disclosed here (the registrations are disclosed in the signing request's `scope.hyperCore`). Absent when the caller sent none, and on a record written before caller calls were attributed.", "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the calls execute on", "example": "eip155:8453" }, "executedBy": { "description": "Absent where the chain is no longer in force, so the executing contract cannot be named.", "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account", "solver" ], "description": "Who runs the calls: the account itself, or a solver-operated contract running them on its behalf.", "example": "account" }, "address": { "type": "string", "minLength": 1, "description": "Address of the executing contract or account", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "kind", "address" ] }, "calls": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "description": "Amount of ETH (in wei) sent in the execution", "example": "0" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "The calls, in execution order" } }, "required": [ "vm", "chainId", "calls" ] } }, "additionalProperties": false, "description": "What the route runs at a HyperCore venue, and the caller's own calls that settle before it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "The single block the route delivers to, on the chain the caller named." }, "deployments": { "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id this account is resolved on", "example": "eip155:8453" }, "account": { "description": "The account this block acts on, resolved for its VM: an EVM account, a Solana Swig, or a bare payee.", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] } }, "required": [ "vm", "chainId", "account" ], "description": "An account initialization the route performs, disclosed separately even when it shares a transaction with a claim or a fill." }, "description": "Account initializations the route performs. Empty when it performs none." } }, "required": [ "source", "destination", "deployments" ], "description": "The account the route initializes, in `deployments`, and the chain it initializes it on." }, "cost": { "type": "object", "properties": { "input": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the debited token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" }, "description": "Tokens debited from the user, coalesced by (chainId, tokenAddress)" }, "output": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the delivered token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" }, "description": "Tokens delivered to the recipient, coalesced by (chainId, tokenAddress)" }, "fees": { "type": "object", "properties": { "total": { "type": "object", "properties": { "usd": { "type": "number", "description": "USD-denominated value", "example": 0.029 } }, "required": [ "usd" ], "description": "Full route cost in USD, regardless of who pays. Equal to `sum(breakdown.*.usd)` modulo rounding." }, "breakdown": { "type": "object", "properties": { "gas": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate gas cost (destination fill, swap execution, origin gas)" }, "bridge": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate settlement-layer bridge cost" }, "swap": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate solver swap commission" }, "app": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate integrator app fee" }, "protocol": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Rhinestone protocol fee (`options.protocolFees`). `sponsored: true` when the integrator sponsorship balance pays it instead of the user." }, "sponsorSurcharge": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Rhinestone's surcharge on the sponsored relayer coverage, charged to the sponsor. 0 when the intent is not sponsored. Pure surcharge — a sponsored protocol fee is shown on `protocol`, never here." } }, "required": [ "gas", "bridge", "swap", "app", "protocol", "sponsorSurcharge" ], "description": "Per-category fee breakdown" } }, "required": [ "total", "breakdown" ], "description": "Aggregate route fees with per-category breakdown" }, "executionPayment": { "description": "Solana instruction execution only: the exact fixed wallet debit, or confirmation that the sponsor pays and the wallet has no execution debit. The wallet debit also appears in input.", "oneOf": [ { "type": "object", "properties": { "paidBy": { "type": "string", "enum": [ "wallet" ] }, "walletDebit": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the debited token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" } }, "required": [ "paidBy", "walletDebit" ] }, { "type": "object", "properties": { "paidBy": { "type": "string", "enum": [ "sponsor" ] } }, "required": [ "paidBy" ] } ], "discriminator": { "propertyName": "paidBy" } } }, "required": [ "input", "output", "fees" ], "description": "Route cost: inputs, outputs, and fee breakdown" }, "deploymentCosts": { "type": "array", "items": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is initialized on", "example": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Rent locked in the new accounts, in the chain's native base unit (lamports on Solana)", "example": "1869440" }, "usd": { "type": "number", "description": "The rent in USD" }, "sponsored": { "type": "boolean", "description": "True when the sponsor pays it rather than the user" } }, "required": [ "amount", "usd", "sponsored" ], "description": "The rent the initialization locks" } }, "required": [ "vm", "chainId", "rent" ], "description": "What one account initialization costs beyond `cost.fees`: rent is state, not a fee, and is never counted in `cost.fees.gas`." }, "description": "The rent each initialization locks, one entry each." }, "requirements": { "maxItems": 0, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "erc20Approval" ] }, "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the requirement applies on", "example": "eip155:8453" }, "account": { "description": "The account the requirement applies to", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "tokenAddress": { "description": "Token the requirement applies to", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "type": "string" }, "amount": { "type": "string", "format": "uint256", "description": "Minimum amount, in the token's smallest unit", "example": "1000000" }, "spender": { "description": "Always the canonical Permit2 contract on this chain. The account approves Permit2; the settlement contract pulls funds via Permit2 at claim time.", "example": "0x000000000022d473030f116ddee9f6b43ac78ba3", "type": "string" } }, "required": [ "kind", "vm", "chainId", "account", "tokenAddress", "amount", "spender" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "wrapNative" ] }, "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "Public native execution environment of the chain. A HyperCore delivery venue is `hypercore`, never the HyperEVM chain it settles on.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the requirement applies on", "example": "eip155:8453" }, "account": { "description": "The account the requirement applies to", "anyOf": [ { "type": "object", "properties": { "address": { "description": "Account address", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" }, "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Whether the account is an EOA or an ERC-7579 smart account", "example": "erc7579" }, "deployed": { "description": "Whether the account is deployed on this chain. Absent when planning read no account state for the chain — never defaulted, which would claim an undeployed account is deployed.", "example": true, "type": "boolean" }, "implementation": { "description": "ERC-7579 implementation planning read on this chain. Absent for an EOA, and for a smart account whose implementation was not resolved.", "type": "object", "properties": { "name": { "type": "string", "enum": [ "Safe", "Kernel", "Nexus" ], "description": "ERC-7579 account implementation", "example": "Nexus" }, "version": { "description": "Raw trailing version token returned by ERC-7579 `accountId()`, when valid; preserved without normalization", "example": "v1.0.0", "type": "string" } }, "required": [ "name" ] }, "delegation": { "description": "The EIP-7702 delegate this intent INSTALLS on this chain. Present only where the delegate is not yet in place — a delegation already in force is not reported here.", "type": "object", "properties": { "contract": { "description": "Delegate contract this intent installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "contract" ] } }, "required": [ "address", "type" ], "description": "An EVM account resolved on one chain" }, { "type": "object", "properties": { "wallet": { "type": "string", "description": "Asset-holding Swig wallet the intent spends from", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "description": "Swig state account holding the wallet authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, "authority": { "description": "Authority the submitted signature was verified against when the intent was accepted, as recorded. Absent on an intent record written before it was recorded; never inferred from the account or from current chain state.", "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Authority the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ] }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ] } ], "discriminator": { "propertyName": "kind" } } }, "required": [ "wallet", "swigAccount" ], "description": "A Solana Swig account resolved on one chain" }, { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Address funds are delivered to, in the destination chain's own format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "description": "A bare payee with no resolved account behind it" } ] }, "tokenAddress": { "description": "Token the requirement applies to", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "type": "string" }, "amount": { "type": "string", "format": "uint256", "description": "Minimum amount, in the token's smallest unit", "example": "1000000" } }, "required": [ "kind", "vm", "chainId", "account", "tokenAddress", "amount" ], "additionalProperties": false } ], "description": "A pre-flight operation the account must perform before this route can be claimed. `quoted` does not mean it is already fulfilled.", "discriminator": { "propertyName": "kind" } }, "description": "Always empty: an initialization needs no pre-flight." }, "signingRequests": { "maxItems": 0, "type": "array", "items": { "type": "object", "properties": { "account": { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "address": { "description": "Account the signature authorizes", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "vm", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "wallet": { "type": "string", "minLength": 1, "description": "Asset-holding Swig wallet the spend debits", "example": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" }, "swigAccount": { "type": "string", "minLength": 1, "description": "Swig state account holding the authority configuration. Distinct from `wallet`, which is where the assets live.", "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } }, "required": [ "vm", "wallet", "swigAccount" ], "additionalProperties": false } ], "description": "The account this signature acts for, named inline per VM. Carries no per-chain observation, since one request can span chains.", "discriminator": { "propertyName": "vm" } }, "authority": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Address the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ], "additionalProperties": false, "description": "A raw key: the signature is verified by recovering it to this address." }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "account" ] }, "vm": { "type": "string", "enum": [ "evm" ] }, "address": { "description": "Account that verifies the signature itself", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "vm", "address" ], "additionalProperties": false, "description": "The account verifies the signature natively (ERC-1271 / ERC-7579). Its owners are deliberately not enumerated: which key signs is the account itself to decide, and the proof bytes carry no length rule." }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "swigRole" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Swig role the spend was authorized under", "example": 1 }, "authority": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "Address the submitted signature must recover to", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "kind", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false, "description": "A passkey (WebAuthn) key, named by its public key: its signature recovers to no address." } ], "description": "The authority configured on that role", "discriminator": { "propertyName": "kind" } } }, "required": [ "kind", "roleId", "authority" ], "additionalProperties": false, "description": "A selected Swig role, plus the authority it carries. Reports the role this quote used; it does not claim to be the only role that could authorize the spend." } ], "description": "What verifies the signature", "discriminator": { "propertyName": "kind" } }, "scope": { "description": "What the signature authorizes. Always agrees with the payload; never a restatement of the route.", "anyOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "action": { "type": "string", "enum": [ "claim", "fill", "targetExecution", "delegation" ], "description": "What the signature authorizes", "example": "claim" }, "accounts": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is authorized on", "example": "eip155:8453" }, "address": { "type": "string", "minLength": 1, "description": "Account address, in its own chain's format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "chainId", "address" ], "additionalProperties": false }, "description": "The accounts and chains the action runs against" }, "hyperCore": { "description": "Present only on a request that authorizes at least one HyperCore agent registration. Lists every registration the payload commits to, in registration (slot) order: one item for a per-leg payload, all of them for an aggregate `MultiChainOps` payload. Names what each registration commits to, which the payload itself carries only as CoreWriter calldata. Changing any action, their order, a nonce or an agent requires a fresh quote.", "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "action": { "type": "object", "description": "The canonical Hyperliquid action, exactly as the agent commits to it. Key order is part of the commitment — the agent address is recovered from a signature over its msgpack encoding — so it is served in the order it was signed in, not re-sorted." }, "nonce": { "type": "number", "description": "The nonce the action commits to", "example": 1633493192000 }, "agent": { "description": "The agent this registration installs. It is derived from the action bytes above, so it authorises that action and nothing else.", "type": "string" }, "slot": { "type": "string", "description": "The named API-wallet slot the agent goes in. Registering evicts whatever the account had in that slot; the account's unnamed wallet is never used.", "example": "rh1" } }, "required": [ "action", "nonce", "agent", "slot" ], "additionalProperties": false, "description": "One HyperCore agent registration" } } }, "required": [ "vm", "action", "accounts" ], "additionalProperties": false, "description": "An EVM scope names accounts, chains and action only — the calls the route runs are disclosed once, in the route's `plan`, so the two cannot disagree. The one exception is `hyperCore`, which names a commitment that exists nowhere else in a readable form." }, { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "action": { "type": "string", "enum": [ "spend" ] }, "accounts": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is authorized on", "example": "eip155:8453" }, "address": { "type": "string", "minLength": 1, "description": "Account address, in its own chain's format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "chainId", "address" ], "additionalProperties": false }, "description": "The wallet the spend debits, on its chain" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The full instruction set this signature authorizes, in execution order, in the same shape a request carries instructions in." }, "addressLookupTables": { "type": "array", "items": { "type": "string" }, "description": "Address lookup tables the instructions resolve accounts through. The tables themselves are not inlined." }, "feePayer": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "role" ] }, "role": { "type": "string", "enum": [ "relayer" ] } }, "required": [ "kind", "role" ], "additionalProperties": false, "description": "Who pays the transaction fee, as a role rather than a key: the payload names no payer, and the relayer picks its own." }, "slotWindow": { "type": "object", "properties": { "from": { "type": "string", "description": "Slot the payload was pinned to", "example": "370123456" }, "to": { "type": "string", "description": "Last slot it can be landed in", "example": "370123516" } }, "required": [ "from", "to" ], "additionalProperties": false, "description": "Slot range the payload is signable in" } }, "required": [ "vm", "action", "accounts", "instructions", "addressLookupTables", "feePayer", "slotWindow" ], "additionalProperties": false, "description": "A Solana scope additionally discloses the instruction set, because the message itself is an opaque digest." }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "action": { "type": "string", "enum": [ "manageAuthority" ] }, "accounts": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id the account is authorized on", "example": "eip155:8453" }, "address": { "type": "string", "minLength": 1, "description": "Account address, in its own chain's format", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "chainId", "address" ], "additionalProperties": false }, "description": "The Swig state account whose authorities change, on its chain" }, "authority": { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add", "remove" ], "description": "Whether the authority is added or removed", "example": "add" }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed secp256k1 public key: 33 bytes as 0x-prefixed hex, leading byte 02 or 03. Not an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The passkey or secp256k1 key added or removed", "discriminator": { "propertyName": "kind" } }, "permission": { "description": "The added authority's permission, as requested and installed. Absent on a removal.", "example": "allButManageAuthority", "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ] }, "roleId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The Swig role id the added authority gets, or the id of the role removed", "example": 3 }, "rent": { "type": "object", "properties": { "amount": { "type": "string", "format": "uint256", "description": "Lamports of rent: locked in the Swig state account on an add, which the sponsor funds, or returned to the Swig wallet on a removal", "example": "325120" }, "usd": { "type": "number", "description": "The rent in USD" } }, "required": [ "amount", "usd" ], "additionalProperties": false } }, "required": [ "action", "key", "roleId", "rent" ], "additionalProperties": false, "description": "The change this signature authorizes, exactly as the plan discloses it" }, "instructions": { "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "The sealed instructions this signature authorizes, in execution order: a passkey signer's secp256r1 precompile, then the Swig `AddAuthorityV1` or `RemoveAuthorityV1`, whose payer is a one-off key the relayer funds." }, "feePayer": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "role" ] }, "role": { "type": "string", "enum": [ "relayer" ] } }, "required": [ "kind", "role" ], "additionalProperties": false, "description": "Who pays the transaction fee, as a role rather than a key: the payload names no payer, and the relayer picks its own." }, "slotWindow": { "type": "object", "properties": { "from": { "type": "string", "description": "Slot the payload was pinned to", "example": "370123456" }, "to": { "type": "string", "description": "Last slot it can be landed in", "example": "370123516" } }, "required": [ "from", "to" ], "additionalProperties": false, "description": "Slot range the payload is signable in" } }, "required": [ "vm", "action", "accounts", "authority", "instructions", "feePayer", "slotWindow" ], "additionalProperties": false, "description": "A Solana authority-change scope: the change itself, and the instructions the message commits to, since the message is an opaque digest." } ], "discriminator": { "propertyName": "action" } } ] }, "chainIds": { "type": "array", "items": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "description": "The chains the payload is cryptographically BOUND to, CAIP-2, each listed once — a `MultiChainOps` payload with several legs on one chain still names it once. This is what was signed rather than what the route is about: a Permit2 payload binds to the chain it claims funds on, so a destination request repeats the chain of the origin payload it duplicates." }, "purpose": { "type": "string", "enum": [ "originAuthorization", "destinationAuthorization", "targetExecutionAuthorization", "delegationAuthorization" ], "description": "What the signature is for", "example": "originAuthorization" }, "validity": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "timestamp" ] }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Unix seconds after which the payload is dead", "example": 1733493192 } }, "required": [ "kind", "expiresAt" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "svmSlot" ] }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id whose slots the deadline counts in", "example": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" }, "expiresAtSlot": { "type": "string", "description": "Slot after which the payload is dead", "example": "370123516" } }, "required": [ "kind", "chainId", "expiresAtSlot" ], "additionalProperties": false } ], "description": "A native deadline the payload is bound by. Every constraint returned applies; an empty list means the payload carries none of its own.", "discriminator": { "propertyName": "kind" } }, "description": "Native deadlines that apply to this payload. Empty when it carries none — quote retention is a separate thing and is not a promise that a stale payload is submittable." }, "payload": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "eip712" ] }, "typedData": { "type": "object", "properties": { "domain": { "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" }, "chainId": { "type": "number" }, "verifyingContract": { "type": "string" }, "salt": { "type": "string" } }, "description": "EIP-712 domain separator fields" }, "types": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": [ "name", "type" ] } }, "description": "EIP-712 type definitions keyed by type name" }, "primaryType": { "type": "string", "description": "Name of the top-level type to sign", "example": "PermitBatchWitnessTransferFrom" }, "message": { "type": "object", "additionalProperties": true, "description": "Message values keyed by field name. uint256 fields are encoded as decimal strings on the wire and re-coerced to bigint client-side before signing." } }, "required": [ "domain", "types", "primaryType", "message" ], "description": "EIP-712 typed data definition ready for `signTypedData`" }, "signatureFormat": { "type": "string", "enum": [ "secp256k1", "account" ], "description": "How the proof is encoded: raw 65-byte ECDSA for an EOA, or the account-native encoding for an ERC-7579 account, on which no length rule is imposed.", "example": "secp256k1" } }, "required": [ "kind", "typedData", "signatureFormat" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "personalSign" ] }, "message": { "type": "object", "properties": { "encoding": { "type": "string", "enum": [ "utf8" ] }, "value": { "type": "string", "description": "Sign these characters as UTF-8 TEXT — viem `signMessage({ message })`, never `{ raw }`. Signing the decoded bytes yields a well-formed signature the chain rejects.", "example": "a3f2c1d4e5b6a7980f1e2d3c4b5a69788796a5b4c3d2e1f0a1b2c3d4e5f60718" } }, "required": [ "encoding", "value" ], "additionalProperties": false } }, "required": [ "kind", "message" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "eip7702" ] }, "authorization": { "type": "object", "properties": { "chainId": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Native chain value of the authorization tuple, not CAIP-2", "example": 8453 }, "address": { "description": "Delegate contract the authorization installs", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a", "type": "string" } }, "required": [ "chainId", "address" ], "additionalProperties": false, "description": "The delegation to authorize. Carries no nonce: the orchestrator observes no EOA nonces, and one read at quote time is stale by signing time — the signer supplies it with the proof." } }, "required": [ "kind", "authorization" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "webauthn" ] }, "challenge": { "type": "string", "pattern": "^0x[0-9a-fA-F]{64}$", "description": "Challenge the authenticator signs: 32 bytes as 0x-prefixed hex. Pass the decoded bytes as the WebAuthn `challenge`, not the hex text.", "example": "0xa3f2c1d4e5b6a7980f1e2d3c4b5a69788796a5b4c3d2e1f0a1b2c3d4e5f60718" } }, "required": [ "kind", "challenge" ], "additionalProperties": false, "description": "Served for a Solana spend out of a passkey-owned Swig, whose role names a secp256r1 authority. Answered with a `webauthn` proof." } ], "description": "The native payload to sign", "discriminator": { "propertyName": "kind" } } }, "required": [ "account", "authority", "scope", "chainIds", "purpose", "validity", "payload" ], "additionalProperties": false, "description": "One payload the caller must sign. Answer request `i` with proof `i`." }, "description": "Always empty: the initialization is sponsored and signed by nobody. Submit with `proofs: []`." } }, "required": [ "intentId", "purpose", "expiresAt", "estimatedFillTime", "settlementLayer", "plan", "cost", "deploymentCosts", "requirements", "signingRequests" ], "description": "A single route candidate that initializes an account" } ], "description": "A single ranked route candidate, tagged with its purpose", "discriminator": { "propertyName": "purpose" } }, "description": "Route candidates ranked by the orchestrator's internal scoring (cheaper + faster wins). The first entry is the recommended route — most clients should submit it without inspecting the rest." } }, "required": [ "status", "routes" ] } ], "description": "Response body for `POST /quotes` on the caucasus API version", "discriminator": { "propertyName": "status" } } } } }, "400": { "description": "Invalid request parameters", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "The credential carries no platform token", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "404": { "description": "The sponsor of the requested sponsorship has no record", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "422": { "description": "No route can serve the request. `details[0].context.code` names the reason.", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "503": { "description": "Quoting is paused", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "504": { "description": "A routing provider timed out", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Create Quote", "description": "Computes a quote for an intent: token transfers, target executions, and cost breakdown. Returns a pre-ranked `routes[]` with per-route `intentId` to pass to `POST /intents` for execution.", "tags": [ "Quotes" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "account": { "type": "object", "properties": { "evm": { "description": "The EVM side of the account", "anyOf": [ { "type": "object", "properties": { "address": { "type": "string" } }, "required": [ "address" ], "additionalProperties": false, "description": "An EVM address that may receive funds, but not spend them" }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "eoa" ] }, "address": { "type": "string" }, "signatureMode": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6 ], "description": "How the user's intent signature is verified onchain. The orchestrator picks a default from the account type — set this only to override. `0` emissary, `1` ERC-1271, `2` emissary then ERC-1271, `3` ERC-1271 then emissary, `4` emissary execution, `5` emissary execution then ERC-1271, `6` ERC-1271 then emissary execution.", "example": 3 }, "delegations": { "type": "object", "properties": { "default": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false }, "chains": { "description": "Per-chain delegate contracts, keyed by CAIP-2 chain id", "example": { "eip155:8453": { "contract": "0x…" } }, "type": "object", "additionalProperties": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false } } }, "additionalProperties": false, "description": "EIP-7702 delegations for this account" } }, "required": [ "type", "address" ], "additionalProperties": false, "description": "An externally owned account. An ECDSA signature is fixed-length, so there is nothing for `simulation` to size." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "erc7579" ] }, "address": { "type": "string" }, "initData": { "description": "Deployment data, used only where the account is not yet deployed", "type": "object", "properties": { "setupOps": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Account deployment factory address", "type": "string" }, "data": { "description": "Account deployment data", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "data" ], "additionalProperties": false } } }, "required": [ "setupOps" ], "additionalProperties": false }, "signatureMode": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6 ], "description": "How the user's intent signature is verified onchain. The orchestrator picks a default from the account type — set this only to override. `0` emissary, `1` ERC-1271, `2` emissary then ERC-1271, `3` ERC-1271 then emissary, `4` emissary execution, `5` emissary execution then ERC-1271, `6` ERC-1271 then emissary execution.", "example": 3 }, "delegations": { "type": "object", "properties": { "default": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false }, "chains": { "description": "Per-chain delegate contracts, keyed by CAIP-2 chain id", "example": { "eip155:8453": { "contract": "0x…" } }, "type": "object", "additionalProperties": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false } } }, "additionalProperties": false, "description": "EIP-7702 delegations for this account" }, "simulation": { "type": "object", "properties": { "mockSignature": { "description": "Cross-chain fallback stub signature, used where no per-chain entry matches", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "mockSignaturesByChain": { "description": "Per-chain stub signatures, keyed by CAIP-2 chain id", "type": "object", "additionalProperties": { "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } } }, "additionalProperties": false, "description": "Gas-estimation inputs for this account" } }, "required": [ "type", "address" ], "additionalProperties": false, "description": "An ERC-7579 smart account" } ] }, "svm": { "description": "The Solana side of the account", "anyOf": [ { "type": "object", "properties": { "address": { "type": "string", "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$" } }, "required": [ "address" ], "additionalProperties": false, "description": "A Solana address that may receive funds, but not spend them" }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "swig" ] }, "address": { "type": "string", "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$", "description": "The asset-holding Swig wallet, not the Swig state account. Must be the wallet the orchestrator derives for the EVM account or, for a Solana-only account, the wallet of `swigAccount`." }, "swigAccount": { "description": "The Swig state account holding the roles. Required for a Solana-only account (no `evm` entry); optional for an account paired with an EVM entry, whose Swig the orchestrator derives.", "type": "string", "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$" }, "authorization": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "address": { "description": "EVM address the signing Swig role recovers to", "type": "string" } }, "required": [ "kind", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "Passkey public key on the signing Swig role: SEC1-compressed P-256, 33 bytes as 0x-prefixed hex", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The authority that signs this request. On a Solana-only account it selects the one Swig role carrying this key, which must hold `All` or `AllButManageAuthority` for a spend, or `All` or `ManageAuthority` for an authority change; no match, several matches or another permission is refused, so a `ManageAuthority`-only role never spends. On an account paired with an EVM entry, the root role signs.", "discriminator": { "propertyName": "kind" } }, "initData": { "type": "object", "properties": { "authority": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x(0[23][0-9a-fA-F]{64}|04[0-9a-fA-F]{128})$", "description": "SEC1 secp256k1 public key as 0x-prefixed hex: compressed (33 bytes, leading 02 or 03) or uncompressed (65 bytes, leading 04)" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "SEC1-compressed P-256 passkey point, 33 bytes as 0x-prefixed hex", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The public key installed as the Swig root, with every permission. Taken as supplied and permanent: a wrong key strands the wallet. Must agree with `authorization`.", "discriminator": { "propertyName": "kind" } }, "id": { "description": "The 32-byte Swig id, 0x-prefixed hex. Required for a Solana-only account, whose `swigAccount` it must derive; refused for an account paired with an EVM entry, whose id the orchestrator derives.", "type": "string", "pattern": "^0x[0-9a-fA-F]{64}$" } }, "required": [ "authority" ], "additionalProperties": false, "description": "Creation data, accepted only on a request with no delivery, execution or recipient: such a request creates the Swig." } }, "required": [ "type", "address", "authorization" ], "additionalProperties": false, "description": "A Swig account" } ] } }, "additionalProperties": false, "description": "The account this intent spends from and delivers to, per VM. A quote needs a configured `evm` entry, or for a Solana-only account a `swig` `svm` entry and no `evm` entry: a receiver cannot fund one.", "example": { "evm": { "type": "eoa", "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } } }, "options": { "type": "object", "properties": { "settlementLayers": { "description": "Which settlement layers the orchestrator may use. `{ include: [...] }` (allow-list) or `{ exclude: [...] }` (deny-list, inverted against the orchestrator's live layer set); a bare array means `include`. Internal modes (`SAME_CHAIN`, `INTENT_EXECUTOR`) are not selectable. Default unset = all layers eligible.", "example": { "exclude": [ "RELAY" ] }, "anyOf": [ { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } }, { "type": "object", "properties": { "include": { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } } }, "required": [ "include" ], "additionalProperties": false }, { "type": "object", "properties": { "exclude": { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } } }, "required": [ "exclude" ], "additionalProperties": false } ] }, "quoters": { "description": "Which swap quoters the orchestrator may source swap routes from. `{ include: [...] }` (allow-list) or `{ exclude: [...] }` (deny-list, inverted against the full quoter set); a bare array means `include`. Use this to keep a swap on the venue a smart-session policy is scoped to. Default unset = every quoter the chain supports.", "example": { "include": [ "0x" ] }, "anyOf": [ { "type": "array", "items": { "type": "string", "enum": [ "1inch", "0x", "velora", "kyberswap", "fynd", "fynd-hosted", "bebop", "relay" ] } }, { "type": "object", "properties": { "include": { "type": "array", "items": { "type": "string", "enum": [ "1inch", "0x", "velora", "kyberswap", "fynd", "fynd-hosted", "bebop", "relay" ] } } }, "required": [ "include" ], "additionalProperties": false }, { "type": "object", "properties": { "exclude": { "type": "array", "items": { "type": "string", "enum": [ "1inch", "0x", "velora", "kyberswap", "fynd", "fynd-hosted", "bebop", "relay" ] } } }, "required": [ "exclude" ], "additionalProperties": false } ] }, "appFees": { "type": "object", "properties": { "feeBps": { "type": "integer", "minimum": 0, "maximum": 10000, "description": "App fee rate in basis points (0–10000 = 0–100%). The base is the USD value of the intent, and which value depends on the intent shape: for a fixed-output intent it is the requested `destination.amount`; for a max-out intent it is the spendable source balance; for a destination-swap intent it is the swap input. Note the fixed-output base is the full requested amount, not the delta over any balance already held.", "example": 25 } }, "required": [ "feeBps" ] }, "protocolFees": { "type": "object", "properties": { "feeBps": { "type": "integer", "minimum": 0, "maximum": 10000, "description": "Rhinestone protocol fee rate in basis points (0–10000 = 0–100%), on the same base as `appFees.feeBps` — see that field. Collected alongside the app fee in one batched transfer and always accrues to Rhinestone; sponsor it via `options.sponsorship.protocolFees` to charge the integrator balance instead of the user.", "example": 35 } }, "required": [ "feeBps" ] }, "selectionStrategy": { "description": "How to rank candidate plans. `cheapest` minimizes direct USD cost. `fastest` minimizes estimated fill time (with cost tiebreaker). `best` minimizes total USD given up: delivered-output forgone versus the best candidate, plus cost, plus the cost of waiting. Waiting is charged both in proportion to notional (0.8 bps per minute, modelling price risk on funds in flight) and as a flat $0.10 per minute independent of size, so small intents are ranked mostly on speed and large ones mostly on price. The two are equal at $1,250 of notional.", "example": "best", "type": "string", "enum": [ "cheapest", "fastest", "best" ] }, "customDeadline": { "description": "Absolute unix timestamp (seconds) overriding the on-chain fill deadline. **TOKENLESS intents only.** If the intent resolves to any other route (cross-chain or same-chain), the request is **rejected** with `INVALID_CUSTOM_DEADLINE` (422) rather than silently ignoring the override. Must be between `now + 120s` and `now + 86400s`. The bundle claim/nonce expiry and the response `expiresAt` track this value automatically.", "example": 1893456000, "type": "integer", "minimum": 0, "exclusiveMinimum": true, "maximum": 9007199254740991 }, "sponsorship": { "description": "Sponsor settings for the intent", "example": { "gas": true, "bridgeFees": true, "swapFees": true }, "type": "object", "properties": { "gas": { "default": false, "description": "Whether to sponsor gas for the intent", "example": true, "type": "boolean" }, "bridgeFees": { "default": false, "description": "Whether to sponsor bridge fees for the intent", "type": "boolean" }, "swapFees": { "default": false, "description": "Whether to sponsor swap fees for the intent. For an integrator enabled for it, this also sponsors the VALUE of an eligible same-chain swap, so the user trades at par: the user contributes the 1:1 amount and the sponsor pays whatever the market is short. That applies only to pairs where par is a meaningful rate (both sides USD-pegged) and only up to a configured per-swap ceiling; outside those bounds the swap is priced at market.", "type": "boolean" }, "protocolFees": { "default": false, "description": "Whether to sponsor the Rhinestone protocol fee (`options.protocolFees`) for the intent. When `true`, the fee is charged to the integrator's sponsorship balance instead of carved from the user, without the sponsorship surcharge.", "type": "boolean" } } } }, "description": "Intent options", "example": { "settlementLayers": { "include": [ "ECO" ] }, "sponsorship": { "gas": true, "bridgeFees": true, "swapFees": true } } }, "source": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar" ], "description": "VM of the source chain; must match `chainId`.", "example": "evm" }, "chainId": { "description": "CAIP-2 chain id of the source chain.", "example": "eip155:42161", "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "token": { "description": "Source token: a registry symbol or a token address on the source chain.", "example": "USDC", "anyOf": [ { "type": "string" }, { "type": "string" }, { "type": "string", "enum": [ "ETH", "USDC", "WETH", "USDT", "USDT0", "BNB", "WBNB", "XDAI", "WXDAI", "POL", "WPOL", "MON", "WMON", "S", "WS", "OKB", "WOKB", "HYPE", "WHYPE", "RON", "WRON", "USDG", "XPL", "WXPL", "AVAX", "WAVAX", "MockUSD", "USDC_TEST", "XLM", "ensUSDC", "ensUSDC2", "ensUSDC3", "ensUSDC4", "TRX", "WTRX", "SOL", "WSOL" ] } ] }, "maxAmount": { "description": "Caps the unlocked balance of this pair the intent may observe, in the token's smallest unit.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "auxiliaryFunds": { "description": "Extra availability added after the `maxAmount` cap, in the token's smallest unit. Strictly positive; EVM source and a token address only.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "execution": { "description": "Calls run on the source chain before the claim. EVM source only.", "type": "object", "properties": { "calls": { "minItems": 1, "maxItems": 10, "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "pattern": "^[0-9]+$", "description": "Amount must be a non-negative decimal integer string in smallest units", "example": "1000000" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "1–10 calls run in order." } }, "required": [ "calls" ], "additionalProperties": false } }, "required": [ "vm", "chainId", "token" ], "additionalProperties": false, "description": "The single (chain, token) pair that funds the intent, including refunds and any destination credit. Optional only for a request that delivers no token and sets `options.sponsorship.gas` (destination execution or instructions, a Swig creation or authority change); a delivery requires it. A Solana-only account without a source must target a Solana destination." }, "destination": { "oneOf": [ { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm" ] }, "chainId": { "description": "CAIP-2 chain id of the destination chain.", "example": "eip155:8453", "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "token": { "description": "Token to deliver: a registry symbol or a token address on the destination chain. Omit it for an intent that delivers nothing.", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "anyOf": [ { "type": "string" }, { "type": "string" }, { "type": "string", "enum": [ "ETH", "USDC", "WETH", "USDT", "USDT0", "BNB", "WBNB", "XDAI", "WXDAI", "POL", "WPOL", "MON", "WMON", "S", "WS", "OKB", "WOKB", "HYPE", "WHYPE", "RON", "WRON", "USDG", "XPL", "WXPL", "AVAX", "WAVAX", "MockUSD", "USDC_TEST", "XLM", "ensUSDC", "ensUSDC2", "ensUSDC3", "ensUSDC4", "TRX", "WTRX", "SOL", "WSOL" ] } ] }, "amount": { "description": "Exact delivery, in the token's smallest unit. Requires `token`; omit it with a `token` for a max-out intent.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "recipient": { "description": "Where the delivery lands. Omit to deliver to the account.", "anyOf": [ { "type": "object", "properties": { "address": { "type": "string" } }, "required": [ "address" ], "additionalProperties": false, "description": "An EVM address that may receive funds, but not spend them" }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "eoa" ] }, "address": { "type": "string" }, "delegations": { "type": "object", "properties": { "default": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false }, "chains": { "description": "Per-chain delegate contracts, keyed by CAIP-2 chain id", "example": { "eip155:8453": { "contract": "0x…" } }, "type": "object", "additionalProperties": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false } } }, "additionalProperties": false, "description": "EIP-7702 delegations for this account" } }, "required": [ "type", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "erc7579" ] }, "address": { "type": "string" }, "initData": { "description": "Deployment data, used only where the account is not yet deployed", "type": "object", "properties": { "setupOps": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Account deployment factory address", "type": "string" }, "data": { "description": "Account deployment data", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "data" ], "additionalProperties": false } } }, "required": [ "setupOps" ], "additionalProperties": false }, "delegations": { "type": "object", "properties": { "default": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false }, "chains": { "description": "Per-chain delegate contracts, keyed by CAIP-2 chain id", "example": { "eip155:8453": { "contract": "0x…" } }, "type": "object", "additionalProperties": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false } } }, "additionalProperties": false, "description": "EIP-7702 delegations for this account" }, "simulation": { "type": "object", "properties": { "mockSignature": { "description": "Cross-chain fallback stub signature, used where no per-chain entry matches", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "mockSignaturesByChain": { "description": "Per-chain stub signatures, keyed by CAIP-2 chain id", "type": "object", "additionalProperties": { "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } } }, "additionalProperties": false, "description": "Gas-estimation inputs for this account" } }, "required": [ "type", "address" ], "additionalProperties": false } ] }, "execution": { "type": "object", "properties": { "calls": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "pattern": "^[0-9]+$", "description": "Amount must be a non-negative decimal integer string in smallest units", "example": "1000000" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "Execution calls to run on the destination chain, in order." }, "gasLimit": { "description": "Gas limit for the destination-chain executions", "example": "100000", "type": "string", "format": "uint256" }, "executionTokensReceived": { "description": "Tokens that will be received by EOA executions. These will be swept to the recipient account.", "example": [ "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" ], "type": "array", "items": { "type": "string" } } }, "required": [ "calls" ], "additionalProperties": false } }, "required": [ "vm", "chainId" ], "additionalProperties": false }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "svm" ] }, "chainId": { "description": "CAIP-2 chain id of the destination chain.", "example": "eip155:8453", "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "token": { "description": "Token to deliver: a registry symbol or a token address on the destination chain. Omit it for an intent that delivers nothing.", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "anyOf": [ { "type": "string" }, { "type": "string" }, { "type": "string", "enum": [ "ETH", "USDC", "WETH", "USDT", "USDT0", "BNB", "WBNB", "XDAI", "WXDAI", "POL", "WPOL", "MON", "WMON", "S", "WS", "OKB", "WOKB", "HYPE", "WHYPE", "RON", "WRON", "USDG", "XPL", "WXPL", "AVAX", "WAVAX", "MockUSD", "USDC_TEST", "XLM", "ensUSDC", "ensUSDC2", "ensUSDC3", "ensUSDC4", "TRX", "WTRX", "SOL", "WSOL" ] } ] }, "amount": { "description": "Exact delivery, in the token's smallest unit. Requires `token`; omit it with a `token` for a max-out intent.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "recipient": { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Recipient address. Format depends on destination chain — 0x-hex for EVM destinations, base58 for Solana, T-address for Tron.", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "additionalProperties": false, "description": "Where the delivery lands. Omit to deliver to the account." }, "execution": { "description": "What the destination runs out of the account's Swig: caller `instructions`, or an `authority` change. Never both.", "anyOf": [ { "type": "object", "properties": { "instructions": { "minItems": 1, "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "programId": { "type": "string", "description": "Program to invoke, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "accounts": { "maxItems": 64, "type": "array", "items": { "type": "object", "properties": { "pubkey": { "type": "string", "description": "Account address, base58.", "example": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, "isSigner": { "type": "boolean", "description": "Whether the instruction requires this account to sign." }, "isWritable": { "type": "boolean", "description": "Whether the instruction writes to this account." } }, "required": [ "pubkey", "isSigner", "isWritable" ] }, "description": "Accounts the instruction reads or writes, in the order the program expects." }, "data": { "type": "string", "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$", "description": "Instruction data, base64.", "example": "CQ==" } }, "required": [ "programId", "accounts", "data" ], "description": "A Solana instruction in the JSON shape `@solana/web3.js` and Jupiter `/swap-instructions` produce, so protocol output passes through unchanged." }, "description": "Solana instructions to run, in order, out of the account's own wallet. The wallet executes them, so `recipient` must be omitted: a payee is encoded inside the instructions. No route serves them yet, so a request carrying them is refused with `UNSUPPORTED_DESTINATION_INSTRUCTIONS`." }, "addressLookupTables": { "description": "Address lookup tables the instructions resolve accounts through, base58, as Jupiter `/swap-instructions` returns them.", "maxItems": 8, "type": "array", "items": { "type": "string" } } }, "required": [ "instructions" ], "additionalProperties": false }, { "type": "object", "properties": { "authority": { "oneOf": [ { "type": "object", "properties": { "action": { "type": "string", "enum": [ "add" ] }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "The SEC1-compressed P-256 passkey public key, as 33 bytes of 0x-prefixed hex", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "The SEC1-compressed secp256k1 public key, as 33 bytes of 0x-prefixed hex. Uncompressed keys are refused: compress them first. Never an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The authority key: a passkey (`secp256r1`) or a secp256k1 public key. Either must be SEC1-compressed and lie on its curve.", "discriminator": { "propertyName": "kind" } }, "permission": { "type": "string", "enum": [ "all", "allButManageAuthority", "manageAuthority" ], "description": "What the added authority may do, installed as exactly that one Swig action. `all`: every action, including adding and removing the Swig's non-root authorities. `allButManageAuthority`: spend and execute, but never add or remove an authority. `manageAuthority`: add and remove non-root authorities — including granting `all`, so effectively takeover power — but never spend or execute: the Swig program refuses every wallet-signed instruction it signs. Required; there is no default.", "example": "allButManageAuthority" } }, "required": [ "action", "key", "permission" ], "additionalProperties": false }, { "type": "object", "properties": { "action": { "type": "string", "enum": [ "remove" ] }, "key": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256r1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "The SEC1-compressed P-256 passkey public key, as 33 bytes of 0x-prefixed hex", "example": "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "secp256k1" ] }, "publicKey": { "type": "string", "pattern": "^0x0[23][0-9a-fA-F]{64}$", "description": "The SEC1-compressed secp256k1 public key, as 33 bytes of 0x-prefixed hex. Uncompressed keys are refused: compress them first. Never an EVM address.", "example": "0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" } }, "required": [ "kind", "publicKey" ], "additionalProperties": false } ], "description": "The authority key: a passkey (`secp256r1`) or a secp256k1 public key. Either must be SEC1-compressed and lie on its curve.", "discriminator": { "propertyName": "kind" } } }, "required": [ "action", "key" ], "additionalProperties": false } ], "description": "Add a passkey or secp256k1 authority to the account's existing Swig, or remove a non-root one by its key. The added role holds exactly the requested permission, with no program permission added. Signed by the role `account.svm.authorization` names, which must hold `All` or `ManageAuthority`. The root role (id 0) is never removed. A removal that would leave no signable role holding `All` or `ManageAuthority` is refused, and so is adding a key already on the Swig. Solana-only accounts, sponsored (`options.sponsorship.gas`) only, and one change per intent.", "discriminator": { "propertyName": "action" } } }, "required": [ "authority" ], "additionalProperties": false } ] } }, "required": [ "vm", "chainId" ], "additionalProperties": false }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "tvm" ] }, "chainId": { "description": "CAIP-2 chain id of the destination chain.", "example": "eip155:8453", "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "token": { "description": "Token to deliver: a registry symbol or a token address on the destination chain. Omit it for an intent that delivers nothing.", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "anyOf": [ { "type": "string" }, { "type": "string" }, { "type": "string", "enum": [ "ETH", "USDC", "WETH", "USDT", "USDT0", "BNB", "WBNB", "XDAI", "WXDAI", "POL", "WPOL", "MON", "WMON", "S", "WS", "OKB", "WOKB", "HYPE", "WHYPE", "RON", "WRON", "USDG", "XPL", "WXPL", "AVAX", "WAVAX", "MockUSD", "USDC_TEST", "XLM", "ensUSDC", "ensUSDC2", "ensUSDC3", "ensUSDC4", "TRX", "WTRX", "SOL", "WSOL" ] } ] }, "amount": { "description": "Exact delivery, in the token's smallest unit. Requires `token`; omit it with a `token` for a max-out intent.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "recipient": { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Recipient address. Format depends on destination chain — 0x-hex for EVM destinations, base58 for Solana, T-address for Tron.", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "additionalProperties": false, "description": "Where the delivery lands. Omit to deliver to the account." } }, "required": [ "vm", "chainId", "recipient" ], "additionalProperties": false }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "stellar" ] }, "chainId": { "description": "CAIP-2 chain id of the destination chain.", "example": "eip155:8453", "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "token": { "description": "Token to deliver: a registry symbol or a token address on the destination chain. Omit it for an intent that delivers nothing.", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "anyOf": [ { "type": "string" }, { "type": "string" }, { "type": "string", "enum": [ "ETH", "USDC", "WETH", "USDT", "USDT0", "BNB", "WBNB", "XDAI", "WXDAI", "POL", "WPOL", "MON", "WMON", "S", "WS", "OKB", "WOKB", "HYPE", "WHYPE", "RON", "WRON", "USDG", "XPL", "WXPL", "AVAX", "WAVAX", "MockUSD", "USDC_TEST", "XLM", "ensUSDC", "ensUSDC2", "ensUSDC3", "ensUSDC4", "TRX", "WTRX", "SOL", "WSOL" ] } ] }, "amount": { "description": "Exact delivery, in the token's smallest unit. Requires `token`; omit it with a `token` for a max-out intent.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "recipient": { "type": "object", "properties": { "address": { "type": "string", "minLength": 1, "description": "Recipient address. Format depends on destination chain — 0x-hex for EVM destinations, base58 for Solana, T-address for Tron.", "example": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "required": [ "address" ], "additionalProperties": false, "description": "Where the delivery lands. Omit to deliver to the account." } }, "required": [ "vm", "chainId", "recipient" ], "additionalProperties": false }, { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "hypercore" ] }, "chainId": { "description": "CAIP-2 chain id of the destination chain.", "example": "eip155:8453", "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$" }, "token": { "description": "Token to deliver: a registry symbol or a token address on the destination chain. Omit it for an intent that delivers nothing.", "example": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "anyOf": [ { "type": "string" }, { "type": "string" }, { "type": "string", "enum": [ "ETH", "USDC", "WETH", "USDT", "USDT0", "BNB", "WBNB", "XDAI", "WXDAI", "POL", "WPOL", "MON", "WMON", "S", "WS", "OKB", "WOKB", "HYPE", "WHYPE", "RON", "WRON", "USDG", "XPL", "WXPL", "AVAX", "WAVAX", "MockUSD", "USDC_TEST", "XLM", "ensUSDC", "ensUSDC2", "ensUSDC3", "ensUSDC4", "TRX", "WTRX", "SOL", "WSOL" ] } ] }, "amount": { "description": "Exact delivery, in the token's smallest unit. Requires `token`; omit it with a `token` for a max-out intent.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "recipient": { "description": "Where the delivery lands. Omit to deliver to the account.", "anyOf": [ { "type": "object", "properties": { "address": { "type": "string" } }, "required": [ "address" ], "additionalProperties": false, "description": "An EVM address that may receive funds, but not spend them" }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "eoa" ] }, "address": { "type": "string" }, "delegations": { "type": "object", "properties": { "default": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false }, "chains": { "description": "Per-chain delegate contracts, keyed by CAIP-2 chain id", "example": { "eip155:8453": { "contract": "0x…" } }, "type": "object", "additionalProperties": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false } } }, "additionalProperties": false, "description": "EIP-7702 delegations for this account" } }, "required": [ "type", "address" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "erc7579" ] }, "address": { "type": "string" }, "initData": { "description": "Deployment data, used only where the account is not yet deployed", "type": "object", "properties": { "setupOps": { "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Account deployment factory address", "type": "string" }, "data": { "description": "Account deployment data", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "data" ], "additionalProperties": false } } }, "required": [ "setupOps" ], "additionalProperties": false }, "delegations": { "type": "object", "properties": { "default": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false }, "chains": { "description": "Per-chain delegate contracts, keyed by CAIP-2 chain id", "example": { "eip155:8453": { "contract": "0x…" } }, "type": "object", "additionalProperties": { "type": "object", "properties": { "contract": { "description": "Contract the account delegates to under EIP-7702", "type": "string" } }, "required": [ "contract" ], "additionalProperties": false } } }, "additionalProperties": false, "description": "EIP-7702 delegations for this account" }, "simulation": { "type": "object", "properties": { "mockSignature": { "description": "Cross-chain fallback stub signature, used where no per-chain entry matches", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" }, "mockSignaturesByChain": { "description": "Per-chain stub signatures, keyed by CAIP-2 chain id", "type": "object", "additionalProperties": { "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } } }, "additionalProperties": false, "description": "Gas-estimation inputs for this account" } }, "required": [ "type", "address" ], "additionalProperties": false } ] }, "execution": { "type": "object", "properties": { "actions": { "description": "The Hyperliquid actions to authorise, IN ORDER. Each gets its own agent in its own API-wallet slot, registered one at a time, and they are sent to the exchange in the order given once every agent is live — the first refusal stops the rest. Order is the contract: `updateLeverage` has to land before the order it applies to. Capped at three, which is how many named API-wallet slots an account has.", "minItems": 1, "maxItems": 3, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "order" ] }, "orders": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "a": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Asset index. Perps use the index in the `meta` universe; spot uses `10000 + index` from `spotMeta`. This is an INDEX, not a ticker — resolve it from the info endpoint, and note that an index built against the wrong universe places a valid order in the wrong market.", "example": 0 }, "b": { "type": "boolean", "description": "Buy (`true`) or sell (`false`).", "example": true }, "p": { "description": "Limit price. Must satisfy Hyperliquid's tick rules — at most 5 significant figures and at most `6 - szDecimals` decimals for a perp — and is refused there, not here.\n\nThis price is fixed when you sign, and an intent that bridges to HyperCore takes ~30s to deliver. Price it to still cross after that move, or the order is refused with your funds already delivered.", "example": "64250.5", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "s": { "description": "Size in units of the asset, to at most the asset's `szDecimals`. Hyperliquid refuses an order worth under ~$10.", "example": "0.0002", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "r": { "type": "boolean", "description": "Reduce-only. `true` is how a position is CLOSED — pair it with a tokenless intent, since closing needs no delivered collateral.", "example": false }, "t": { "description": "Either `{ limit: { tif } }` or `{ trigger: { isMarket, triggerPx, tpsl } }`.", "anyOf": [ { "type": "object", "properties": { "limit": { "type": "object", "properties": { "tif": { "type": "string", "enum": [ "Alo", "Ioc", "Gtc" ], "description": "Time in force. `Ioc` fills what it can and cancels the rest, which is how a market order is expressed here — there is no market order type. `Alo` is post-only. `Gtc` rests on the book.\n\nPrefer `Ioc` for anything an intent delivers funds for: a resting order leaves the account holding USDC and no position, and the agent that could have cancelled it is already spent.", "example": "Ioc" } }, "required": [ "tif" ], "additionalProperties": false } }, "required": [ "limit" ], "additionalProperties": false }, { "type": "object", "properties": { "trigger": { "type": "object", "properties": { "isMarket": { "type": "boolean" }, "triggerPx": { "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "tpsl": { "type": "string", "enum": [ "tp", "sl" ], "description": "Take-profit or stop-loss.", "example": "sl" } }, "required": [ "isMarket", "triggerPx", "tpsl" ], "additionalProperties": false } }, "required": [ "trigger" ], "additionalProperties": false } ] }, "c": { "description": "Optional client order id — 128-bit hex. Your handle on the order afterwards: the exchange echoes it back, so it is the only way to correlate a fill with the intent that placed it without polling by asset.", "example": "0x1234567890abcdef1234567890abcdef", "type": "string", "pattern": "^0x[0-9a-fA-F]{32}$" } }, "required": [ "a", "b", "p", "s", "r", "t" ], "additionalProperties": false } }, "grouping": { "type": "string", "enum": [ "na", "normalTpsl", "positionTpsl" ], "description": "`na` for a plain order. The TP/SL groupings attach the orders as a bracket around a position.", "example": "na" }, "builder": { "type": "object", "properties": { "b": { "description": "Address receiving the builder fee.", "type": "string", "pattern": "^0x[0-9a-fA-F]{40}$" }, "f": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Builder fee in TENTHS of a basis point — `10` is 1bp of order notional.", "example": 10 } }, "required": [ "b", "f" ], "additionalProperties": false } }, "required": [ "type", "orders", "grouping" ], "additionalProperties": false, "description": "Place one or more orders. Opening a position needs an intent that delivers USDC; a reduce-only close does not." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "cancel" ] }, "cancels": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "a": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Asset index." }, "o": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Order id." } }, "required": [ "a", "o" ], "additionalProperties": false } }, "f": { "description": "Fast cancel.", "type": "boolean" } }, "required": [ "type", "cancels" ], "additionalProperties": false, "description": "Cancel resting orders by order id. Needs no delivered funds, so it rides a tokenless intent." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "cancelByCloid" ] }, "cancels": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "asset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "cloid": { "description": "Optional client order id — 128-bit hex. Your handle on the order afterwards: the exchange echoes it back, so it is the only way to correlate a fill with the intent that placed it without polling by asset.", "example": "0x1234567890abcdef1234567890abcdef", "type": "string", "pattern": "^0x[0-9a-fA-F]{32}$" } }, "required": [ "asset", "cloid" ], "additionalProperties": false } }, "f": { "type": "boolean" } }, "required": [ "type", "cancels" ], "additionalProperties": false, "description": "Cancel resting orders by client order id." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "modify" ] }, "oid": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "description": "Optional client order id — 128-bit hex. Your handle on the order afterwards: the exchange echoes it back, so it is the only way to correlate a fill with the intent that placed it without polling by asset.", "example": "0x1234567890abcdef1234567890abcdef", "type": "string", "pattern": "^0x[0-9a-fA-F]{32}$" } ] }, "order": { "type": "object", "properties": { "a": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Asset index. Perps use the index in the `meta` universe; spot uses `10000 + index` from `spotMeta`. This is an INDEX, not a ticker — resolve it from the info endpoint, and note that an index built against the wrong universe places a valid order in the wrong market.", "example": 0 }, "b": { "type": "boolean", "description": "Buy (`true`) or sell (`false`).", "example": true }, "p": { "description": "Limit price. Must satisfy Hyperliquid's tick rules — at most 5 significant figures and at most `6 - szDecimals` decimals for a perp — and is refused there, not here.\n\nThis price is fixed when you sign, and an intent that bridges to HyperCore takes ~30s to deliver. Price it to still cross after that move, or the order is refused with your funds already delivered.", "example": "64250.5", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "s": { "description": "Size in units of the asset, to at most the asset's `szDecimals`. Hyperliquid refuses an order worth under ~$10.", "example": "0.0002", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "r": { "type": "boolean", "description": "Reduce-only. `true` is how a position is CLOSED — pair it with a tokenless intent, since closing needs no delivered collateral.", "example": false }, "t": { "description": "Either `{ limit: { tif } }` or `{ trigger: { isMarket, triggerPx, tpsl } }`.", "anyOf": [ { "type": "object", "properties": { "limit": { "type": "object", "properties": { "tif": { "type": "string", "enum": [ "Alo", "Ioc", "Gtc" ], "description": "Time in force. `Ioc` fills what it can and cancels the rest, which is how a market order is expressed here — there is no market order type. `Alo` is post-only. `Gtc` rests on the book.\n\nPrefer `Ioc` for anything an intent delivers funds for: a resting order leaves the account holding USDC and no position, and the agent that could have cancelled it is already spent.", "example": "Ioc" } }, "required": [ "tif" ], "additionalProperties": false } }, "required": [ "limit" ], "additionalProperties": false }, { "type": "object", "properties": { "trigger": { "type": "object", "properties": { "isMarket": { "type": "boolean" }, "triggerPx": { "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "tpsl": { "type": "string", "enum": [ "tp", "sl" ], "description": "Take-profit or stop-loss.", "example": "sl" } }, "required": [ "isMarket", "triggerPx", "tpsl" ], "additionalProperties": false } }, "required": [ "trigger" ], "additionalProperties": false } ] }, "c": { "description": "Optional client order id — 128-bit hex. Your handle on the order afterwards: the exchange echoes it back, so it is the only way to correlate a fill with the intent that placed it without polling by asset.", "example": "0x1234567890abcdef1234567890abcdef", "type": "string", "pattern": "^0x[0-9a-fA-F]{32}$" } }, "required": [ "a", "b", "p", "s", "r", "t" ], "additionalProperties": false }, "a": { "description": "Place the replacement even if the cancel failed. Omit it entirely for the default — Hyperliquid rejects an action hashed with `a: false`, so `false` is not a legal value.", "type": "boolean", "enum": [ true ] } }, "required": [ "type", "oid", "order" ], "additionalProperties": false, "description": "Replace one resting order." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "batchModify" ] }, "modifies": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "oid": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "description": "Optional client order id — 128-bit hex. Your handle on the order afterwards: the exchange echoes it back, so it is the only way to correlate a fill with the intent that placed it without polling by asset.", "example": "0x1234567890abcdef1234567890abcdef", "type": "string", "pattern": "^0x[0-9a-fA-F]{32}$" } ] }, "order": { "type": "object", "properties": { "a": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Asset index. Perps use the index in the `meta` universe; spot uses `10000 + index` from `spotMeta`. This is an INDEX, not a ticker — resolve it from the info endpoint, and note that an index built against the wrong universe places a valid order in the wrong market.", "example": 0 }, "b": { "type": "boolean", "description": "Buy (`true`) or sell (`false`).", "example": true }, "p": { "description": "Limit price. Must satisfy Hyperliquid's tick rules — at most 5 significant figures and at most `6 - szDecimals` decimals for a perp — and is refused there, not here.\n\nThis price is fixed when you sign, and an intent that bridges to HyperCore takes ~30s to deliver. Price it to still cross after that move, or the order is refused with your funds already delivered.", "example": "64250.5", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "s": { "description": "Size in units of the asset, to at most the asset's `szDecimals`. Hyperliquid refuses an order worth under ~$10.", "example": "0.0002", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "r": { "type": "boolean", "description": "Reduce-only. `true` is how a position is CLOSED — pair it with a tokenless intent, since closing needs no delivered collateral.", "example": false }, "t": { "description": "Either `{ limit: { tif } }` or `{ trigger: { isMarket, triggerPx, tpsl } }`.", "anyOf": [ { "type": "object", "properties": { "limit": { "type": "object", "properties": { "tif": { "type": "string", "enum": [ "Alo", "Ioc", "Gtc" ], "description": "Time in force. `Ioc` fills what it can and cancels the rest, which is how a market order is expressed here — there is no market order type. `Alo` is post-only. `Gtc` rests on the book.\n\nPrefer `Ioc` for anything an intent delivers funds for: a resting order leaves the account holding USDC and no position, and the agent that could have cancelled it is already spent.", "example": "Ioc" } }, "required": [ "tif" ], "additionalProperties": false } }, "required": [ "limit" ], "additionalProperties": false }, { "type": "object", "properties": { "trigger": { "type": "object", "properties": { "isMarket": { "type": "boolean" }, "triggerPx": { "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "tpsl": { "type": "string", "enum": [ "tp", "sl" ], "description": "Take-profit or stop-loss.", "example": "sl" } }, "required": [ "isMarket", "triggerPx", "tpsl" ], "additionalProperties": false } }, "required": [ "trigger" ], "additionalProperties": false } ] }, "c": { "description": "Optional client order id — 128-bit hex. Your handle on the order afterwards: the exchange echoes it back, so it is the only way to correlate a fill with the intent that placed it without polling by asset.", "example": "0x1234567890abcdef1234567890abcdef", "type": "string", "pattern": "^0x[0-9a-fA-F]{32}$" } }, "required": [ "a", "b", "p", "s", "r", "t" ], "additionalProperties": false } }, "required": [ "oid", "order" ], "additionalProperties": false } }, "a": { "description": "Place the replacement even if the cancel failed. Omit it entirely for the default — Hyperliquid rejects an action hashed with `a: false`, so `false` is not a legal value.", "type": "boolean", "enum": [ true ] } }, "required": [ "type", "modifies" ], "additionalProperties": false, "description": "Replace several resting orders." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "updateLeverage" ] }, "asset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "isCross": { "type": "boolean", "description": "Cross margin (`true`) or isolated (`false`).", "example": true }, "leverage": { "type": "integer", "minimum": 0, "exclusiveMinimum": true, "maximum": 9007199254740991, "description": "New leverage, capped by the asset's own maximum. Set it BEFORE the intent that opens the position: leverage applied afterwards does not resize an existing one.", "example": 5 } }, "required": [ "type", "asset", "isCross", "leverage" ], "additionalProperties": false, "description": "Change the leverage used for an asset. Needs no delivered funds." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "updateIsolatedMargin" ] }, "asset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "isBuy": { "type": "boolean" }, "ntli": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991, "description": "Margin to add (positive) or remove (negative), in USDC with 6 decimals — `1000000` is 1 USD.", "example": 1000000 } }, "required": [ "type", "asset", "isBuy", "ntli" ], "additionalProperties": false, "description": "Add or remove margin on an isolated position." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "twapOrder" ] }, "twap": { "type": "object", "properties": { "a": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Asset index, as for an order.", "example": 0 }, "b": { "type": "boolean", "description": "Buy (`true`) or sell (`false`).", "example": true }, "s": { "description": "Total size to work, in units of the asset.", "example": "0.01", "type": "string", "pattern": "^\\d+(\\.\\d+)?$" }, "r": { "type": "boolean", "description": "Reduce-only.", "example": false }, "m": { "type": "integer", "minimum": 0, "exclusiveMinimum": true, "maximum": 9007199254740991, "description": "Duration in MINUTES. Hyperliquid enforces its own bounds and refuses a duration outside them (\"Invalid TWAP duration\"), so none are imposed here.", "example": 30 }, "t": { "type": "boolean", "description": "Randomize the timing of the sub-orders rather than spacing them evenly.", "example": true } }, "required": [ "a", "b", "s", "r", "m", "t" ], "additionalProperties": false } }, "required": [ "type", "twap" ], "additionalProperties": false, "description": "Work a position in over `m` minutes rather than in one fill.\n\nCarries NO limit price, which is what makes it the shape to reach for when the bridge delay is the risk: an `Ioc` order is priced at quote time and refused if the book has moved past it by the time the funds land, whereas a TWAP cannot be refused for not crossing.\n\nThe intent completes when Hyperliquid ACCEPTS the TWAP, not when it finishes — the sub-orders run for `m` minutes afterwards, with no further intent and nothing on our side watching them." }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "twapCancel" ] }, "a": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Asset index of the running TWAP.", "example": 0 }, "t": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "The TWAP id, which Hyperliquid returns when it accepts the `twapOrder` and is not echoed on the intent. Read it back from the exchange — the agent that placed the TWAP authorised only that one action, so cancelling is a second intent.", "example": 12345 } }, "required": [ "type", "a", "t" ], "additionalProperties": false, "description": "Stop a running TWAP. Needs no delivered funds." } ], "description": "A Hyperliquid L1 action, passed through as they define it. Keys are re-emitted in their canonical order before the action is hashed, so the order you send them in does not matter.", "discriminator": { "propertyName": "type" } } }, "settlement": { "description": "Calls to run on HyperEVM, where the delivery settles before it reaches Core. Its `gasLimit` sizes those calls — Core actions are not EVM transactions and have no gas.", "type": "object", "properties": { "calls": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "to": { "description": "Target contract address for execution", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "type": "string" }, "value": { "type": "string", "format": "uint256", "pattern": "^[0-9]+$", "description": "Amount must be a non-negative decimal integer string in smallest units", "example": "1000000" }, "data": { "description": "Encoded function call data", "example": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240", "type": "string", "pattern": "^0x[a-fA-F0-9]*$" } }, "required": [ "to", "value", "data" ] }, "description": "Execution calls to run on the destination chain, in order." }, "gasLimit": { "description": "Gas limit for the destination-chain executions", "example": "100000", "type": "string", "format": "uint256" }, "executionTokensReceived": { "description": "Tokens that will be received by EOA executions. These will be swept to the recipient account.", "example": [ "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" ], "type": "array", "items": { "type": "string" } } }, "required": [ "calls" ], "additionalProperties": false } }, "additionalProperties": false } }, "required": [ "vm", "chainId" ], "additionalProperties": false } ], "description": "Where the intent lands, tagged by VM: the token and exact amount to deliver, and any execution there.", "discriminator": { "propertyName": "vm" } } }, "required": [ "account", "destination" ], "additionalProperties": false, "description": "Quote request. Chain ids are CAIP-2 strings (e.g. `eip155:8453`, `solana:…`, `tron:…`); amounts are decimal strings in the token's smallest unit. Funds come from one `source` pair and land on one `destination`.", "example": { "account": { "evm": { "type": "eoa", "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a" } }, "source": { "vm": "evm", "chainId": "eip155:42161", "token": "USDC" }, "destination": { "vm": "evm", "chainId": "eip155:8453", "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "amount": "1000000" } } } } } } } }, "/quotes/estimate": { "post": { "operationId": "createQuoteEstimate", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "routes": { "type": "array", "items": { "type": "object", "properties": { "settlementLayer": { "type": "string", "enum": [ "INTENT_EXECUTOR", "SAME_CHAIN", "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ], "description": "Settlement layer this estimate is for", "example": "ACROSS" }, "estimatedFillTime": { "type": "object", "properties": { "seconds": { "type": "number", "description": "Typical end-to-end fill time for this route in seconds. Directional, not guaranteed.", "example": 3 } }, "required": [ "seconds" ], "description": "Estimated fill time for the route" }, "cost": { "type": "object", "properties": { "input": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the debited token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" }, "description": "Tokens debited from the hypothetical deposit" }, "output": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "Chain where this token leg settles (CAIP-2, any namespace)", "example": "eip155:8453" }, "tokenAddress": { "type": "string", "minLength": 1, "description": "Contract address of the delivered token (EVM 0x or non-EVM base58)", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "symbol": { "nullable": true, "description": "Token symbol, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": "USDC", "type": "string" }, "decimals": { "nullable": true, "description": "Token decimals, from the internal token registry or, for a token it has no entry for, read on-chain while planning. `null` when neither resolved one.", "example": 6, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "price": { "nullable": true, "description": "Unit price in USD. `null` when neither the price oracle nor this quote priced the token.", "type": "object", "properties": { "usd": { "type": "number", "description": "Unit price in USD", "example": 1 } }, "required": [ "usd" ] }, "amount": { "type": "string", "format": "uint256", "description": "Token amount in the token's smallest unit", "example": "1050000" } }, "required": [ "chainId", "tokenAddress", "symbol", "decimals", "price", "amount" ], "description": "A single (chain, token) leg with amount, price, and metadata" }, "description": "Tokens delivered at the destination" }, "fees": { "type": "object", "properties": { "total": { "type": "object", "properties": { "usd": { "type": "number", "description": "USD-denominated value", "example": 0.029 } }, "required": [ "usd" ], "description": "Full route cost in USD, regardless of who pays. Equal to `sum(breakdown.*.usd)` modulo rounding." }, "breakdown": { "type": "object", "properties": { "gas": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate gas cost (destination fill, swap execution, origin gas)" }, "bridge": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate settlement-layer bridge cost" }, "swap": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate solver swap commission" }, "app": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Aggregate integrator app fee" }, "protocol": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Rhinestone protocol fee (`options.protocolFees`). `sponsored: true` when the integrator sponsorship balance pays it instead of the user." }, "sponsorSurcharge": { "type": "object", "properties": { "usd": { "type": "number", "description": "Total cost of this category in USD, regardless of who pays.", "example": 0.029 }, "sponsored": { "type": "boolean", "description": "True when a sponsor absorbs some or all of this category. The user-vs-sponsor split is not surfaced.", "example": false } }, "required": [ "usd", "sponsored" ], "description": "Rhinestone's surcharge on the sponsored relayer coverage, charged to the sponsor. 0 when the intent is not sponsored. Pure surcharge — a sponsored protocol fee is shown on `protocol`, never here." } }, "required": [ "gas", "bridge", "swap", "app", "protocol", "sponsorSurcharge" ], "description": "Per-category fee breakdown" } }, "required": [ "total", "breakdown" ], "description": "Aggregate route fees with per-category breakdown" } }, "required": [ "input", "output", "fees" ], "description": "Route cost in the shared quote primitives: singleton arrays at this scope, since an estimate names one source and one destination token." }, "accuracy": { "type": "string", "enum": [ "exact", "approximated" ], "description": "`exact` for formula-priced layers; `approximated` for solver-market layers estimated from a typical-fee table.", "example": "exact" }, "status": { "type": "string", "enum": [ "ok", "over_capacity" ], "description": "`over_capacity` when the delivered notional exceeds the known liquidity ceiling for this route; such routes rank below fillable ones.", "example": "ok" }, "assumptions": { "type": "object", "properties": { "account": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "eoa", "erc7579", "swig" ], "description": "Account type the route was calculated for. `swig` where the deposit is sourced from Solana, which spends through a Swig rather than an ERC-7579 account, whatever the request declared.", "example": "erc7579" }, "deployed": { "description": "Whether the smart account was assumed deployed on the source chain. Absent for an EOA or a Swig, which pay no setup gas.", "example": false, "type": "boolean" } }, "required": [ "type" ], "description": "Hypothetical account facts used" } }, "required": [ "account" ], "description": "The hypothetical facts this route was calculated under, after defaults were applied — so a caller who declared none learns what was assumed, and why setup gas was or was not charged." } }, "required": [ "settlementLayer", "estimatedFillTime", "cost", "accuracy", "status", "assumptions" ], "description": "A single indicative route estimate" }, "description": "Indicative route estimates, best-first. Empty when no route is available." }, "unavailableReason": { "description": "Set when `routes` is empty and there is a single explanatory reason.", "type": "string", "enum": [ "unsupported_token", "no_route_support", "no_price", "below_minimum" ] } }, "required": [ "routes" ], "description": "Response body for `POST /quotes/estimate`. Indicative (non-binding): carries no `intentId`, `signingRequests`, or `expiresAt`." } } } }, "400": { "description": "Invalid request parameters", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "The credential carries no platform token", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "404": { "description": "The sponsor of the requested sponsorship has no record", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "422": { "description": "Sponsorship or a request option refuses the route", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "503": { "description": "Quoting is paused (`SERVICE_PAUSED`), or a dependency the estimate requires is temporarily unavailable (`DEPENDENCY_UNAVAILABLE`, retryable; `details[0].context` names the `dependency` and planner `code`)", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "504": { "description": "A routing provider timed out", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Create Indicative Quote", "description": "Computes an indicative (non-binding) quote: ranked route estimates with per-route cost breakdown and fill time. Unlike `POST /quotes`, it returns no `intentId`, `signingRequests`, or `expiresAt` — it cannot be submitted to `POST /intents`. Use it for pre-quote UX (price previews, route discovery) without persisting an intent.", "tags": [ "Quotes" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "account": { "type": "object", "properties": { "evm": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "eoa", "erc7579" ], "description": "Account the route would execute against. Settlement layers filter on account type, so declaring it yields an estimate that matches what `POST /quotes` would plan. Defaults to `eoa` — the more restrictive of the two — so an undeclared caller is never shown smart-account-only routes.", "example": "erc7579" } }, "required": [ "type" ], "additionalProperties": false, "description": "The EVM side of the hypothetical account" }, "svm": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "swig" ], "description": "A Solana source spends through a Swig, which is a smart account. There is no Swig address to state here: nothing is derived or verified against an indicative calculation." } }, "required": [ "type" ], "additionalProperties": false, "description": "The Solana side of the hypothetical account" } }, "additionalProperties": false, "description": "The account the estimate is calculated for. Optional: conservative defaults apply when it is omitted.", "example": { "evm": { "type": "erc7579" } } }, "source": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "VM of the source chain; must match `chainId`.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the source chain.", "example": "eip155:8453" }, "token": { "type": "string", "minLength": 1, "description": "Source token: a registry symbol or a token address on the source chain.", "example": "USDC" }, "amount": { "description": "The fixed hypothetical deposit, in the source token's smallest unit. Present for an exact-in estimate; omit it and set `destination.amount` for exact-out.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" }, "assumptions": { "type": "object", "properties": { "deployed": { "description": "Whether the smart account is already deployed on the selected source chain. An undeployed account pays one-time setup gas, so declaring it avoids over-charging repeat users. Defaults to undeployed (charges setup). Ignored for an EOA and for a Solana (Swig) source, which charges no setup.", "example": true, "type": "boolean" } }, "additionalProperties": false, "description": "Hypothetical account facts on the source chain" } }, "required": [ "vm", "chainId", "token" ], "additionalProperties": false, "description": "The hypothetical deposit being priced: one (chain, token) pair. Required; there is no balance to select over." }, "destination": { "type": "object", "properties": { "vm": { "type": "string", "enum": [ "evm", "svm", "tvm", "stellar", "hypercore" ], "description": "VM the delivery lands on; must match `chainId`. `hypercore` names the venues `hypercore:spot` / `hypercore:perp`.", "example": "evm" }, "chainId": { "type": "string", "pattern": "^(eip155|solana|tron|hypercore|stellar):[-_a-zA-Z0-9]{1,32}$", "description": "CAIP-2 chain id of the destination chain or venue.", "example": "eip155:42161" }, "token": { "type": "string", "minLength": 1, "description": "Token to deliver: a registry symbol or a token address on the destination chain.", "example": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" }, "amount": { "description": "The fixed delivery, in the destination token's smallest unit. Present for an exact-out estimate; omit it and set `source.amount` for exact-in.", "example": "1000000", "type": "string", "format": "uint256", "pattern": "^[0-9]+$" } }, "required": [ "vm", "chainId", "token" ], "additionalProperties": false, "description": "Where the estimate delivers" }, "options": { "type": "object", "properties": { "settlementLayers": { "description": "Which settlement layers the estimate may rank. `{ include: [...] }` (allow-list) or `{ exclude: [...] }` (deny-list). Default unset = all layers eligible.", "example": { "exclude": [ "RELAY" ] }, "anyOf": [ { "type": "object", "properties": { "include": { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } } }, "required": [ "include" ], "additionalProperties": false }, { "type": "object", "properties": { "exclude": { "type": "array", "items": { "type": "string", "enum": [ "ACROSS", "ECO", "RELAY", "OFT", "NEAR", "RHINO", "CCTP", "LZ" ] } } }, "required": [ "exclude" ], "additionalProperties": false } ] }, "selectionStrategy": { "description": "How to rank candidate routes. `cheapest` minimizes USD cost, `fastest` minimizes fill time, `best` minimizes total USD given up — delivered-output forgone, plus cost, plus the cost of waiting (0.8 bps/min of notional for price risk plus a flat $0.10/min). Mirrors the binding `/quotes` selector, so the recommended route agrees with the one you will be quoted.", "example": "best", "type": "string", "enum": [ "cheapest", "fastest", "best" ] }, "appFees": { "type": "object", "properties": { "feeBps": { "type": "integer", "minimum": 0, "maximum": 10000, "description": "App fee rate in basis points of the input value (0–10000 = 0–100%).", "example": 25 } }, "required": [ "feeBps" ], "description": "Integrator app fee applied to the estimate" }, "protocolFees": { "type": "object", "properties": { "feeBps": { "type": "integer", "minimum": 0, "maximum": 10000, "description": "Rhinestone protocol fee rate in basis points of the input value (0–10000 = 0–100%). Carved from the user unless `options.sponsorship.protocolFees` is set.", "example": 5 } }, "required": [ "feeBps" ], "description": "Rhinestone protocol fee applied to the estimate" }, "sponsorship": { "description": "Which fee categories to treat as sponsored. Sponsored categories are absorbed by the sponsor and do not reduce the delivered amount. The estimator prices every swap at market, so a same-chain swap `POST /quotes` sponsors to par under `swapFees` is estimated below what it delivers.", "example": { "gas": true, "bridgeFees": true, "swapFees": false }, "type": "object", "properties": { "gas": { "default": false, "description": "Whether to sponsor gas for the intent", "example": true, "type": "boolean" }, "bridgeFees": { "default": false, "description": "Whether to sponsor bridge fees for the intent", "type": "boolean" }, "swapFees": { "default": false, "description": "Whether to sponsor swap fees for the intent. For an integrator enabled for it, this also sponsors the VALUE of an eligible same-chain swap, so the user trades at par: the user contributes the 1:1 amount and the sponsor pays whatever the market is short. That applies only to pairs where par is a meaningful rate (both sides USD-pegged) and only up to a configured per-swap ceiling; outside those bounds the swap is priced at market.", "type": "boolean" }, "protocolFees": { "default": false, "description": "Whether to sponsor the Rhinestone protocol fee (`options.protocolFees`) for the intent. When `true`, the fee is charged to the integrator's sponsorship balance instead of carved from the user, without the sponsorship surcharge.", "type": "boolean" } } } }, "description": "Optional estimate tuning knobs", "example": { "sponsorship": { "gas": true } } } }, "required": [ "source", "destination" ], "additionalProperties": false, "description": "Indicative-quote request. Chain ids are CAIP-2 strings. The calculation follows the amount: `source.amount` is exact-in, `destination.amount` is exact-out; exactly one side carries an amount.", "example": { "account": { "evm": { "type": "erc7579" } }, "source": { "vm": "evm", "chainId": "eip155:8453", "token": "USDC", "amount": "1000000", "assumptions": { "deployed": true } }, "destination": { "vm": "evm", "chainId": "eip155:42161", "token": "0xaf88d065e77c8cc2239327c5edb3a432268e5831" } } } } } } } }, "/app-fees/balances": { "get": { "operationId": "getAppFeeBalances", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "withdrawableUsd": { "type": "number" }, "pendingUsd": { "type": "number" }, "unavailableUsd": { "type": "number" } }, "required": [ "withdrawableUsd", "pendingUsd", "unavailableUsd" ] } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "Missing or invalid API key", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Get App-Fee Balances", "description": "The authenticated project's app-fee balance as USD totals valued at collection time. `pendingUsd` is the payout value permanently reserved by signed withdrawals whose target-chain FILL has not completed, including failed or expired payouts. `unavailableUsd` is earned fees that cannot be withdrawn yet because payouts are not enabled for the chain they were collected on, net of the current cut like `withdrawableUsd`.", "tags": [ "App Fees" ] } }, "/app-fees/withdrawal-targets": { "get": { "operationId": "getAppFeeWithdrawalTargets", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "targets": { "type": "array", "items": { "type": "object", "properties": { "chainId": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$" }, "tokens": { "type": "array", "items": { "type": "object", "properties": { "address": { "type": "string" }, "symbol": { "type": "string", "enum": [ "USDC", "USDT0", "USDT" ] }, "decimals": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "address", "symbol", "decimals" ], "additionalProperties": false } } }, "required": [ "chainId", "tokens" ], "additionalProperties": false } } }, "required": [ "targets" ], "additionalProperties": false } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "Missing or invalid API key", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Get App-Fee Withdrawal Targets", "description": "Get the enabled EVM chains and whitelisted stablecoins currently accepted for app-fee withdrawals.", "tags": [ "App Fees" ] } }, "/app-fees/withdrawals": { "post": { "operationId": "createAppFeeWithdrawal", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "202": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "requestNonce": { "type": "string", "pattern": "^\\d+$" } }, "required": [ "requestNonce" ] } } } }, "400": { "description": "No payout address, nothing to withdraw, or invalid target", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "Missing or invalid API key", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "409": { "description": "A withdrawal is already being signed", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Create App-Fee Withdrawal", "description": "Withdraw the authenticated project's full app-fee balance to a whitelisted stablecoin on the chosen chain, paid to the project's registered payout address.", "tags": [ "App Fees" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "targetChainId": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$" }, "targetToken": { "type": "string" } }, "required": [ "targetChainId", "targetToken" ] } } } } }, "get": { "operationId": "listAppFeeWithdrawals", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "withdrawals": { "type": "array", "items": { "type": "object", "properties": { "requestNonce": { "type": "string", "pattern": "^\\d+$" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ] }, "grossUsd": { "nullable": true, "type": "number" }, "cutBps": { "nullable": true, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "payoutUsd": { "type": "number" }, "targetChainId": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$" }, "targetToken": { "type": "string" }, "targetAmount": { "type": "string" }, "payoutAddress": { "type": "string" }, "txHash": { "nullable": true, "type": "string" }, "createdAt": { "type": "string" } }, "required": [ "requestNonce", "status", "grossUsd", "cutBps", "payoutUsd", "targetChainId", "targetToken", "targetAmount", "payoutAddress", "txHash", "createdAt" ] } } }, "required": [ "withdrawals" ] } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "Missing or invalid API key", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "List App-Fee Withdrawals", "description": "The authenticated project's app-fee withdrawals (newest first) with each withdrawal's status and USD value paid out.", "tags": [ "App Fees" ] } }, "/app-fees/withdrawals/{nonce}": { "get": { "operationId": "getAppFeeWithdrawal", "parameters": [ { "name": "x-api-version", "in": "header", "required": true, "schema": { "type": "string", "enum": [ "2026-09.caucasus" ] }, "description": "API version. Required; pinned to this document." }, { "name": "nonce", "in": "path", "required": true, "schema": { "type": "string", "pattern": "^\\d+$" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "requestNonce": { "type": "string", "pattern": "^\\d+$" }, "status": { "type": "string", "enum": [ "PENDING", "COMPLETED", "FAILED" ] }, "grossUsd": { "nullable": true, "type": "number" }, "cutBps": { "nullable": true, "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "payoutUsd": { "type": "number" }, "targetChainId": { "type": "string", "pattern": "^eip155:[0-9]{1,32}$" }, "targetToken": { "type": "string" }, "targetAmount": { "type": "string" }, "payoutAddress": { "type": "string" }, "txHash": { "nullable": true, "type": "string" }, "createdAt": { "type": "string" } }, "required": [ "requestNonce", "status", "grossUsd", "cutBps", "payoutUsd", "targetChainId", "targetToken", "targetAmount", "payoutAddress", "txHash", "createdAt" ] } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "401": { "description": "Missing or invalid API key", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "403": { "description": "API key scope denied", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "404": { "description": "Withdrawal not found", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } }, "500": { "description": "Server error", "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "code": { "type": "string", "enum": [ "VALIDATION_ERROR" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Human-readable issue description" }, "context": { "description": "Structured issue context (e.g. `{ path: \"destination.chainId\" }`)", "type": "object", "additionalProperties": true } }, "required": [ "message" ] }, "description": "Per-field validation issues" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "SIMULATION_FAILED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "nonce": { "type": "string" }, "category": { "type": "string" }, "errorSelector": { "type": "string" }, "errorName": { "type": "string" }, "errorArgs": { "type": "object", "additionalProperties": { "type": "string" } }, "retryable": { "type": "boolean" }, "retryHint": { "type": "string", "enum": [ "RE_PREPARE", "RETRY_LATER" ] }, "revertedBy": { "description": "Contract that produced the revert, when the simulator recovered it from a call trace. Names the called address (a proxy rather than its implementation).", "type": "string" }, "simulations": {} }, "required": [ "category", "errorSelector", "errorName", "retryable" ], "additionalProperties": true, "description": "Classified on-chain simulation failure details" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "INSUFFICIENT_LIQUIDITY" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "object", "properties": { "availableIntents": { "type": "array", "items": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Intents fillable with current liquidity" }, "unfillable": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Token amounts that cannot be filled" } }, "required": [ "availableIntents", "unfillable" ], "description": "Fillable subset and unfillable remainder" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "KEY_SCOPE_DENIED" ] }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" }, "context": { "type": "object", "properties": { "scope": { "type": "string", "enum": [ "allowMainnet", "intents", "deposits" ], "description": "Which scope rejected the request" }, "required": { "description": "Minimum level the endpoint demands", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "read", "write" ] } ] }, "actual": { "description": "Level resolved on the key", "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": [ "none", "read", "write" ] } ] } }, "required": [ "scope", "required", "actual" ] } }, "required": [ "message", "context" ] }, "description": "Single-element list describing the failing scope" } }, "required": [ "code", "message" ] }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "NOT_FOUND", "UNAUTHORIZED", "FORBIDDEN", "SPONSORSHIP_BINDING_MISMATCH", "SPONSORSHIP_BINDING_UNSUPPORTED", "QUOTE_AUTHORIZATION_MISSING", "QUOTE_OWNER_MISMATCH", "QUOTE_AUTHORIZATION_EXPIRED", "SPONSORSHIP_AUTHORIZATION_USED", "CONFLICT", "WITHDRAWAL_IN_PROGRESS", "UNPROCESSABLE_CONTENT", "TOO_MANY_REQUESTS", "SETTLEMENT_QUOTE_ERROR", "SETTLEMENT_EXECUTION_ERROR", "EXTERNAL_SERVICE_TIMEOUT", "RELAYER_MARKET_UNAVAILABLE", "SERVICE_PAUSED", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "description": "Machine-readable error code" }, "message": { "type": "string", "description": "Human-readable error message", "example": "Invalid input" }, "details": { "description": "The error and its structured context", "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string", "description": "Error message" }, "context": { "description": "Structured context. A planning refusal names its reason in `context.code` (e.g. `NO_PLAN_AVAILABLE`).", "type": "object", "additionalProperties": true } }, "required": [ "message" ] } } }, "required": [ "code", "message" ] } ], "discriminator": { "propertyName": "code" } } } } } }, "security": [ { "apiKeyAuth": [] }, { "bearerAuth": [] } ], "summary": "Get App-Fee Withdrawal", "description": "A single app-fee withdrawal owned by the authenticated project, with its status and USD value paid out.", "tags": [ "App Fees" ] } } } }