# Models

## The Error object

```json
{"openapi":"3.0.3","info":{"title":"Orda API","version":"1.1.0"},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"Error type identifier"},"message":{"type":"string","description":"Human-readable error message"},"correlationId":{"type":"string","description":"Request correlation ID for debugging"}}}}}}
```

## The QuoteRequest object

```json
{"openapi":"3.0.3","info":{"title":"Orda API","version":"1.1.0"},"components":{"schemas":{"QuoteRequest":{"type":"object","required":["fromChain","fromToken","fromAddress","intent"],"properties":{"fromChain":{"type":"string","description":"Source blockchain chain ID"},"fromToken":{"type":"string","description":"Source token contract address"},"fromAddress":{"type":"string","description":"Source wallet address"},"intent":{"type":"object","required":["method","value"],"properties":{"method":{"type":"string","enum":["usd","fromAmount","toAmount"],"description":"Quote calculation method"},"value":{"type":"string","description":"Amount value for the specified method"}}},"recipientId":{"type":"string","description":"The ID of an existing recipient to send funds to (provide either this OR settlementDetails)"},"settlementDetails":{"type":"object","description":"Inline settlement details (provide either this OR recipientId)","properties":{"toChain":{"type":"string","description":"Destination blockchain chain ID"},"toToken":{"type":"string","description":"Destination token contract address"},"toAddress":{"type":"string","description":"Destination wallet address"}}}}}}}}
```

## The QuoteResponse object

```json
{"openapi":"3.0.3","info":{"title":"Orda API","version":"1.1.0"},"components":{"schemas":{"QuoteResponse":{"type":"object","properties":{"message":{"type":"string","description":"Status message"},"transactionId":{"type":"string","description":"Transaction ID"},"quote":{"type":"object","properties":{"provider":{"type":"string","description":"Provider used for the transaction"},"subProvider":{"type":"string","description":"Sub-provider used (e.g., specific DEX or bridge within an aggregator)","nullable":true},"provideRequestId":{"type":"string","description":"Provider-specific request ID"},"fromToken":{"type":"object","properties":{"address":{"type":"string","description":"Token contract address"},"decimals":{"type":"integer","description":"Token decimals"},"symbol":{"type":"string","description":"Token symbol"},"price":{"type":"number","description":"Token price in USD"},"chainId":{"type":"integer","description":"Chain ID where this token is located"}}},"toToken":{"type":"object","properties":{"address":{"type":"string","description":"Token contract address"},"decimals":{"type":"integer","description":"Token decimals"},"symbol":{"type":"string","description":"Token symbol"},"price":{"type":"number","description":"Token price in USD"},"chainId":{"type":"integer","description":"Chain ID where this token is located"}}},"fromAmount":{"type":"string","description":"Amount in source token"},"toAmount":{"type":"string","description":"Amount in destination token"},"fromAddress":{"type":"string","description":"Source wallet address"},"toAddress":{"type":"string","description":"Destination wallet address"},"estimatedDuration":{"type":"integer","description":"Estimated duration in minutes"},"fees":{"type":"object","properties":{"bridge":{"type":"object","description":"Bridge/relayer fee details","properties":{"amount":{"type":"string","description":"Fee amount in smallest token units"},"token":{"type":"string","description":"Token symbol for the fee"}}},"gas":{"type":"object","description":"Gas fee details","properties":{"amount":{"type":"string","description":"Gas fee amount in smallest token units"},"token":{"type":"string","description":"Token symbol for the gas fee"}}},"integrator":{"type":"string","description":"Integrator fee"},"maxSlippage":{"type":"number","nullable":true,"description":"Maximum slippage tolerance as a decimal (e.g., 0.01 for 1%). Null if not applicable."}}}}},"approvalTxParams":{"type":"object","properties":{"from":{"type":"string","description":"Source address"},"to":{"type":"string","description":"Token contract address"},"gas":{"type":"string","description":"Gas limit"},"data":{"type":"string","description":"Transaction data"},"value":{"type":"string","description":"Transaction value"},"nonce":{"type":"integer","description":"Transaction nonce"}}},"transactionRequest":{"type":"object","properties":{"from":{"type":"string","description":"Source address"},"to":{"type":"string","description":"Destination address"},"data":{"type":"string","description":"Transaction data"},"value":{"type":"string","description":"Transaction value"},"chainId":{"type":"integer","description":"Chain ID"},"requestId":{"type":"string","description":"Request ID"},"gas":{"type":"string","description":"Gas limit"},"maxFeePerGas":{"type":"string","description":"Maximum fee per gas"},"maxPriorityFeePerGas":{"type":"string","description":"Maximum priority fee per gas"}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.orda.network/api-reference/api-reference/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
