Created
June 12, 2018 01:36
-
-
Save lewisdaly/02eac508fef7ef23ae94e5386575bc9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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