sendRawTransaction method
Creates new message call transaction or a contract creation for signed transactions
hex
- Serialized Message
Example
var res = eth.sendRawTransaction(
hex: '0xf904808000831cfde080'
);
Implementation
Future<String?> sendRawTransaction({
required String? hex,
}) async {
const module = 'proxy';
const action = 'eth_sendRawTransaction';
Map<String, dynamic>? query = {
'apiKey': apiKey,
'module': module,
'action': action,
'hex': hex,
};
return (await get(query)).fold(
(l) => null,
(r) => r,
);
}