(_blockNumber)
| 433 | } |
| 434 | |
| 435 | async function getBlockfromEtherscan(_blockNumber) { |
| 436 | let urlDomain = network == 'kovan' ? 'api-kovan' : 'api'; |
| 437 | const options = { |
| 438 | url: `https://${urlDomain}.etherscan.io/api`, |
| 439 | qs: { |
| 440 | module: 'block', |
| 441 | action: 'getblockreward', |
| 442 | blockno: _blockNumber, |
| 443 | apikey: 'THM9IUVC2DJJ6J5MTICDE6H1HGQK14X559' |
| 444 | }, |
| 445 | method: 'GET', |
| 446 | json: true |
| 447 | }; |
| 448 | let data = await request(options); |
| 449 | return data.result; |
| 450 | } |
| 451 | |
| 452 | module.exports = { |
| 453 | executeApp: async function (toStrAddress, fromTrAddress, fromStrAddress, singleTicker, tokenAddress, onlyTickers, remoteNetwork) { |
no outgoing calls
no test coverage detected