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