Metric Docs | Get Quote
Learn how onchain quote reads fit into a Metric integration and what must be validated before using a quoted result in a transaction.
Learn how onchain quote reads fit into a Metric integration and what must be validated before using a quoted result in a transaction.
Metric is built around Active Pools: liquidity pools that use a Price Provider to supply bid, ask and reference prices instead of relying only on reserve ratios. This page focuses on Get Quote and the practical checks that matter when using or integrating the protocol.
Read before write
An onchain quote read can inform transaction parameters without moving funds. Treat it as a snapshot of the current state, not a guarantee of future execution.
Normalize amounts
Use token-native integer units and verified decimals. Display formatting belongs at the UI boundary, not inside contract math.
Bound execution
When the later swap is submitted, include the appropriate minimum-output or equivalent safety condition supported by the integration flow.
Related Metric Docs
Last updated