// Request accounts
const accounts = await provider.request({
method: 'eth_requestAccounts'
});
// Send transaction
const txHash = await provider.request({
method: 'eth_sendTransaction',
params: [{
from: accounts[0],
to: '0x...',
value: '0x38d7ea4c68000', // 0.001 ETH in wei
}]
});
// Send batch transactions
const result = await provider.request({
method: 'wallet_sendCalls',
params: [{
version: '2.0.0',
from: accounts[0],
chainId: '0x2105', // Base mainnet
atomicRequired: true,
calls: [
{
to: '0x...',
value: '0x0',
data: '0x...'
}
]
}]
});