diff --git a/api/src/context.rs b/api/src/context.rs
index 939276891d81c..4f8cf33054421 100644
--- a/api/src/context.rs
+++ b/api/src/context.rs
@@ -863,10 +863,9 @@ impl Context {
pub fn get_transaction_by_hash(
&self,
hash: HashValue,
- ledger_version: u64,
) -> Result