getQuote

open suspend fun getQuote(chainId: String, swapsApiKey: String, args: QuoteArgs): Result<Quote>

Retrieves a quote for a swap transaction on the specified blockchain.

Return

A Result containing a Quote object if successful, or an error if the operation fails.

Parameters

chainId

The blockchain identifier.

swapsApiKey

The API key required for swaps.

args

The parameters required for fetching the swap quote.

Throws

If no address is found in the keychain.