Convenience method that combines getQuote, signQuote, and executeSignedQuote into a single operation
Promise resolving to transaction hash
const result = await meeClient.execute({
instructions: [{
to: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
data: "0x...",
value: "0"
}],
feeToken: {
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
chainId: 1
}
});
Parameters for generating and executing the quote
Execute a fusion quote
Promise resolving to transaction hash
Parameters for executing the fusion quote
Execute a quote by signing and executing it
Promise resolving to transaction hash
const result = await meeClient.executeQuote({
quote: quote
});
Parameters for signing and executing the quote
Execute a previously signed quote
Promise resolving to transaction hash
const result = await meeClient.executeSignedQuote({
signedQuote: signedQuote
});
Parameters for executing the signed quote
Get a fusion quote that automatically selects between permit and on-chain
Promise resolving to fusion quote data
Parameters for generating the fusion quote
Get gas token information for a specific chain
Promise resolving to gas token data
Parameters for retrieving gas token info
Get an on-chain quote for standard transactions
Promise resolving to on-chain quote data
Parameters for generating the on-chain quote
Get payment token information for a specific chain
Promise resolving to payment token data
Get a permit quote for ERC20Permit-enabled tokens
Promise resolving to permit quote data
Parameters for generating the permit quote
Get a quote for executing a set of instructions
Promise resolving to quote information
Error if the account is not deployed on any required chain
const quote = await meeClient.getQuote({
instructions: [{
to: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
data: "0x...",
value: "0"
}],
feeToken: {
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
chainId: 1
}
});
Parameters for generating the quote
Get a supertransaction receipt
Promise resolving to the supertransaction receipt
Parameters for retrieving the receipt
Sign a fusion quote
Promise resolving to signed fusion quote data
Parameters for signing the fusion quote
Sign an on-chain quote for standard transactions
Promise resolving to signed quote data
Parameters for signing the on-chain quote
Sign a permit quote for ERC20Permit-enabled tokens
Promise resolving to signed permit data
Parameters for signing the permit quote
Sign a quote for executing a set of instructions
Promise resolving to signed quote data
const signedQuote = await meeClient.signQuote({
quote: quote
});
Parameters for signing the quote
Wait for a supertransaction receipt to be available
Promise resolving to transaction receipt
const receipt = await meeClient.waitForSupertransactionReceipt({
hash: "0x123..."
});
Parameters for retrieving the receipt
Collection of MEE (Multi-chain Execution Environment) actions for transaction handling