getQuote

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

Retrieves a swap quote for the specified blockchain network.

Return

A Result<Quote> containing the swap quote details or an error if the request fails.

Parameters

chainId

The ID of the blockchain network (e.g., "eip155:1" for Ethereum Mainnet).

args

The parameters required for fetching the swap quote.