<p>Plutus only validates a pending transaction given a datum, redeemer and script context, which includes tx inputs. The only way you could potentially provide that kind of information is through the datum or maybe reference inputs.</p>

CC BY-SA 4.0
2022-07-11T11:57:03.693Z
2022-07-11T11:57:03.693Z
Will
<p>Turns out plutus does not support this yet (if your reading this in the future it might be out of date -&gt; please check the timestamp).</p>

CC BY-SA 4.0
2022-06-18T22:46:34.727Z
2022-06-18T22:46:34.727Z
KryptoKing
<p>Given a PubKeyHash (pkh) how can I get the history of that pkh's transactions from within a plutus smart contract?</p>

<plutus><smart-contract><pkh><transaction-history>
How to get transaction info of a public key hash in a plutus smart contract?
# How to get transaction info of a public key hash in a plutus smart contract?

(Asked by: username_0 on 2022-06-18)

Given a PubKeyHash (pkh) how can I get the history of that pkh's transactions from within a plutus smart contract?

**Tags:** plutus, smart-contract, pkh, transaction-history

---

## 2 answers

### Answer by username_1 on 2022-07-11. Score: 1

Plutus only validates a pending transaction given a datum, redeemer and script context, which includes tx inputs. The only way you could potentially provide that kind of information is through the datum or maybe reference inputs.


---

### Answer by username_0 on 2022-06-18. Score: 0

Turns out plutus does not support this yet (if your reading this in the future it might be out of date -> please check the timestamp).


---

