UNPKG

etherscan-api-e

Version:
19 lines (18 loc) 509 B
const querystring = require('querystring'); module.exports = function(getRequest, apiKey) { return { /** * returns the status of a specific transaction hash * @param {string} txhash - Transaction hash * @returns {Promise.<object>} */ getstatus(txhash) { const module = 'transaction'; const action = 'getstatus'; var query = querystring.stringify({ module, action, txhash, apiKey }); return getRequest(query); } }; };