// Get block number
final blockResponse = await portal.request(
chainId: 'eip155:1',
method: 'eth_blockNumber',
params: [],
);
// Estimate gas
final gasResponse = await portal.request(
chainId: 'eip155:1',
method: 'eth_estimateGas',
params: [{
'from': '0xFromAddress',
'to': '0xToAddress',
'value': '0x10',
}],
);
// Call contract (read-only)
final callResponse = await portal.request(
chainId: 'eip155:1',
method: 'eth_call',
params: [{
'to': '0xContractAddress',
'data': '0x70a08231...', // balanceOf encoded
}, 'latest'],
);