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);
        });
    }
})
New contributor
iotaman is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
up vote 1 down vote accepted

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

Your Answer

iotaman is a new contributor. Be nice, and check out our Code of Conduct.
 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.