send-evm-transaction
Installation
SKILL.md
Send EVM Transactions with MetaMask Connect
When to use
Use this skill when:
- Sending ETH transfers via
eth_sendTransaction - Calling smart contract functions by encoding
datain the transaction - Estimating gas with
eth_estimateGasbefore sending - Polling for transaction confirmation with
eth_getTransactionReceipt - Using the
connectWithshortcut to connect and send in a single approval
Workflow
Step 1: Get the provider and connected account
import { createEVMClient, getInfuraRpcUrls } from '@metamask/connect-evm';
import type { Hex, Address } from '@metamask/connect-evm';