Skip to main content

Quotes

The Mina SDK provides quote generation to find optimal bridge routes with accurate fee estimates and execution times.

Overview

Before executing a bridge transaction, you need to get a quote that provides:
  • Expected output amount after fees
  • Step-by-step route breakdown
  • Total fees (gas + bridge + protocol)
  • Estimated execution time
  • Price impact analysis

Quote Methods

getQuote(params)

Fetches the optimal quote for a bridge transaction.

getQuotes(paramsArray)

Fetches multiple quotes for comparison.

Quote Parameters

QuoteParams

Quote Response

Quote

The quote object contains all information needed for execution:

Route Preferences

Control how routes are selected:

Price Impact Levels

Price impact indicates how much the trade affects the market price:
When impactSeverity is high or very_high, consider warning users and potentially blocking the transaction.

Fee Breakdown

Quotes include detailed fee information:

Route Steps

Each quote contains steps that will be executed:

Example: Complete Quote Flow

Quote Expiration

Quotes expire after 60 seconds. Always check expiration before executing:

Error Handling

Next Steps

Execution

Execute your bridge transaction

Slippage

Configure slippage settings