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);
        });
    }
})

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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