Hi there, I’m having a really hard time trying to figure out how we get the transactionId/transactionHash for a given transaction when querying the block explorer like so
curl https://testnet-api.algonode.cloud/v2/blocks/37782706 | jq
it returns something like this.
"block": {
"gen": "testnet-v1.0",
"gh": "SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=",
"txns": [
{
"dt": {
"lg": [
"j��>9�w�+\u0011n3/(����u/y���ċFd�w�\u0002\u0000\u0000\u0000\u0011\u000bR\u0002�",
"j��>9�w�+\u0011n3/(����u/y���ċFd�w�\u0002\u0000\u0000\u0000\u0011\u000bR\u0002�",
"j��>9�w�+\u0011n3/(����u/y���ċFd�w�\u0002\u0000\u0000\u0000\u0011\u000bQ�?",
"j��>9�w�+\u0011n3/(����u/y���ċFd�w�\u0002\u0000\u0000\u0000\u0011\u000bQ�?"
]
},
"hgi": true,
"lsig": {
"l": "CCAHAAECSkhNbyYBADEgMgMSRDEJMgMSRDEVMgMSRDEQgQYSRDEBIhJEMQUoEkQiOBAjEkSAIH/pQ5o69ZxO5FyuKGPs0PJsFHKe6X2m7JBO5QgN0zcgNQA0ADUDIjgANAMSRDYaAoAHZGVwb3NpdBJAABs2GgE1ATYaAjUCMRkiEkQ0ATYaAzQCiAD+I0MxGSISMRkjEhFEI0OKAgAoRwQiKEmL/1cASIwHiweMAYsBFRZXBgCLAVCMAYv/i/8hBFmL/yVZUowCi/+L/yVZi/8hBVlSjAaL/4v/IQZZSwEVUowDi/+L/yEFWYv/IQZZUowEi/+BTFWMBYsDVwIAiwZXAgBQjACLABUWVwYAiwBQjACACChDMy5JTykwiwFXAgBQiwJXAgBQiwZXAgBeARJEiwUiEkAAQ4sFIxJAAAEAiwBXAgACiwRXAgBXQAEXgRsJiwRXAgBXACCLBFcCAFcgIAcANQY1BYv+VwwUNAU0BlACVwwUEkRCAA6LAFcCAIsEVwIAi/6ERImKAwAoSSIoRwciRwIoSSKL/owFi/2MAIsAFYEgEkQiNQQ0BIsFIlmMDIsMDEEAiosFiwUkNAQLJA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AAAAC1XbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE=",
"AAAAAAAAAAA="
],
"apbx": [
{
"n": "auzBPjmud7orEW4zLyi38b2gdS95t7yExItGZMR3iwI="
},
{
"n": "b3JkZXIdBJydYXnfTVrzMIp0+okWROr6xZokK90hnNm0dd+e7w=="
},
{
"n": "aQ=="
},
{
"n": "KeKhZgeOoQwKn8vKTYoiXQ81swn/oHpmQwHePZBctrs="
}
],
"apfa": [
486565861
],
"apid": 486568678,
"fv": 37782704,
"grp": "hrVKpid2/v/PbfC7hudxej47D79TY62c17oMsNR30AA=",
"lv": 37783704,
"snd": "ZHP6PUKRCAEK5DEPO5OBFW4EWFRF5BPDMY5HBJ4GGA7PND6NIWN6U4HERE",
"type": "appl"
}
}
]
}
}
How do I derive the transactionId from this for the given txn? is the only way to construct a Transaction
class and use the .txID() method? Surely theres an easier way. (Not using an indexer)
Thanks