@@ -172,6 +172,7 @@ impl EthApi {
172
172
pub async fn execute ( & self , request : EthRequest ) -> ResponseResult {
173
173
trace ! ( target: "rpc::api" , "executing eth request" ) ;
174
174
let response = match request. clone ( ) {
175
+ EthRequest :: EthProtocolVersion ( ( ) ) => self . protocol_version ( ) . to_rpc_result ( ) ,
175
176
EthRequest :: Web3ClientVersion ( ( ) ) => self . client_version ( ) . to_rpc_result ( ) ,
176
177
EthRequest :: Web3Sha3 ( content) => self . sha3 ( content) . to_rpc_result ( ) ,
177
178
EthRequest :: EthGetAccount ( addr, block) => {
@@ -195,13 +196,15 @@ impl EthApi {
195
196
EthRequest :: EthChainId ( _) => self . eth_chain_id ( ) . to_rpc_result ( ) ,
196
197
EthRequest :: EthNetworkId ( _) => self . network_id ( ) . to_rpc_result ( ) ,
197
198
EthRequest :: NetListening ( _) => self . net_listening ( ) . to_rpc_result ( ) ,
199
+ EthRequest :: EthHashrate ( ( ) ) => self . hashrate ( ) . to_rpc_result ( ) ,
198
200
EthRequest :: EthGasPrice ( _) => self . eth_gas_price ( ) . to_rpc_result ( ) ,
199
201
EthRequest :: EthMaxPriorityFeePerGas ( _) => {
200
202
self . gas_max_priority_fee_per_gas ( ) . to_rpc_result ( )
201
203
}
202
204
EthRequest :: EthBlobBaseFee ( _) => self . blob_base_fee ( ) . to_rpc_result ( ) ,
203
205
EthRequest :: EthAccounts ( _) => self . accounts ( ) . to_rpc_result ( ) ,
204
206
EthRequest :: EthBlockNumber ( _) => self . block_number ( ) . to_rpc_result ( ) ,
207
+ EthRequest :: EthCoinbase ( ( ) ) => self . author ( ) . to_rpc_result ( ) ,
205
208
EthRequest :: EthGetStorageAt ( addr, slot, block) => {
206
209
self . storage_at ( addr, slot, block) . await . to_rpc_result ( )
207
210
}
0 commit comments