3

I'm doing this, which returns an empty array:

    const iota = new IOTA({
    provider: 'http://node05.iotatoken.nl:16265'
});

iota.api.getNodeInfo(function(error, success) {
    if (error) {
        console.error(error);
    } else {
        var hash = 'ACFYAZFUOS9HHAUAIDBXMVKKBUXVCPGQZNTVHXUHPEKDLHDDTEEHRGPXEBXSMHMEKFNNZOBBIAAMA9999';
        iota.api.findTransactionObjects({bundles:[hash] }, (err, res) =>{
!err && console.log(res);
err && console.log(err);
        });
    }
})
iotaman
  • 33
  • 2

1 Answers1

2

It seems that the hash you pass is actually transaction hash: ACFYAZFUOS9HHAUAIDBXMVKKBUXVCPGQZNTVHXUHPEKDLHDDTEEHRGPXEBXSMHMEKFNNZOBBIAAMA9999

If you want to find transaction by bundle hash, you should enter this instead: OCAKGAAGVPGLALQJRWVIAKR9PDNDGQOXUGAISTUHFDZLHEIQQKHNKLVDX9CIFJVBXQFDZHIQVFWEGNIHW

Wayne Wu
  • 304
  • 1
  • 11