diff --git a/crates/rpc/rpc-eth-api/src/helpers/transaction.rs b/crates/rpc/rpc-eth-api/src/helpers/transaction.rs index 73355b47a781..fa4c9be30787 100644 --- a/crates/rpc/rpc-eth-api/src/helpers/transaction.rs +++ b/crates/rpc/rpc-eth-api/src/helpers/transaction.rs @@ -272,6 +272,10 @@ pub trait EthTransactions: LoadTransaction { None => return Err(SignError::NoAccount.into()), }; + if self.find_signer(&from).is_err() { + return Err(SignError::NoAccount.into()); + } + // set nonce if not already set before if request.nonce.is_none() { let nonce = self.transaction_count(from, Some(BlockId::pending())).await?;