Skip to content

Instantly share code, notes, and snippets.

@lewisdaly
Created June 12, 2018 01:36
Show Gist options
  • Save lewisdaly/02eac508fef7ef23ae94e5386575bc9f to your computer and use it in GitHub Desktop.
Save lewisdaly/02eac508fef7ef23ae94e5386575bc9f to your computer and use it in GitHub Desktop.
...
module.exports.checkAddress = (event, context, callback) => {
console.log("CHECKING ADDRESS:", process.env.IOTA_ADDRESS);
const searchValues = { addresses: [process.env.IOTA_ADDRESS]};
iota.api.findTransactionObjects(searchValues, (err, res) => {
if (err) {
console.log("error finding transactions!", err);
throw err;
}
console.log("found the transactionObjects:", res);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment