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
}
});

Will throw an error if:

  • The account is not deployed on required chains
  • The fee token is not supported
  • The chain(s) are not supported by the node