Requests a quote from the MEE service for executing a set of instructions. This function handles the complexity of creating a supertransaction quote that can span multiple chains.
const quote = await getQuote(meeClient, { instructions: [{ calls: [{ to: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", data: "0x...", value: 0n }], chainId: 1 // Ethereum Mainnet }], feeToken: { address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC chainId: 1 }}); Copy
const quote = await getQuote(meeClient, { instructions: [{ calls: [{ to: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", data: "0x...", value: 0n }], chainId: 1 // Ethereum Mainnet }], feeToken: { address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC chainId: 1 }});
Will throw an error if:
MEE client instance used to make the request
Extends the client with additional functionality
Makes HTTP requests to the Http node
Parameters for the quote request
Promise resolving to a committed supertransaction quote
Requests a quote from the MEE service for executing a set of instructions. This function handles the complexity of creating a supertransaction quote that can span multiple chains.
Example
Throws
Will throw an error if: