This opnly results in valid returns for timestamps after mif February 2021. These are storing the root hash in OP_RETURN and these can therefore be searched.

txid_from_root_hash(root_hash)

Arguments

root_hash

root hash which has been submitted as OP_RETURN

Value

a vector containing the transaction ids found. Usially only one

Examples

txid_from_root_hash("bf6eec9f213846a53ed187d41d2b9ed2e954649a45d2883e5df6b107b2eb0b75")
#> [1] "d1d90a5730f0a596dfa4b83e167b02801a74273ffd0cf21e419c3f04ffb3e6df"
txid_from_root_hash("bf6eec9f213846a53ed187d41d2b9ed2e954649a45d2883e5dXXXXXXXXXXXXXX")
#> NULL
txid_from_root_hash("love")
#> [1] "2702c8d1546b1d48bf639f285a016349ca524e3621d41d33e39c91ac436b5e9b" #> [2] "39895bfa230844cc39f238fa647a373ebcb8f5ca63f0a20ae69a9e53e78f305d" #> [3] "418ed73c80a4ae36a8254dfcd3713ed47c58a33c23bf3f470373ae82b587a79c" #> [4] "4f3d4de89cb749fc7e3c713fc5552237fd65fb80d474d92ad86671ff93e1d000" #> [5] "9fb15ee8fac41b7aa207bdd091ebfc4a11b7a8126ed03f74994d6b5809d21cc3" #> [6] "63034637ca47e5b6565952b67ed350996c4fe8780c803ff7ee3489d39915305e" #> [7] "37ba4fe6f9917d6a4f2b911107c7d753b3360eb1ff02dca16727f41c07148fb6" #> [8] "af30a6f3acad9f8c6d85a3dcfa373f7fddd2a3e0cb7477a94d6442e190a67681" #> [9] "f25a7cbce50c75a5ca2ddb48096bdbfe9793d0854e81dfa13d40437130db49db" #> [10] "9676c2eb5d0973eafe9754911abb322f6ec253df4c7fa85be2dfa843fcdc72d0"