Skip to content

Instantly share code, notes, and snippets.

View VanijaDev's full-sized avatar

Ivan Solo VanijaDev

View GitHub Profile
0x365CcC11F1d29c4012F9Ee1074227c490c42671F
@VanijaDev
VanijaDev / Main acc eth
Created October 1, 2017 09:24
Main acc eth
0x365CcC11F1d29c4012F9Ee1074227c490c42671F
@VanijaDev
VanijaDev / getTransactionReceiptMined.js
Created April 19, 2018 12:16 — forked from xavierlepretre/getTransactionReceiptMined.js
Get the Promise of an Ethereum transaction receipt when it is finally mined
module.exports = function getTransactionReceiptMined(txHash, interval, blockLimit) {
const self = this;
var count = 0;
var blocks = blockLimit;
const transactionReceiptAsync = function (resolve, reject) {
if (count > blocks) {
reject('Contract transaction couldn\'t be found after ', blocks, ' blocks');
return;
}
Verify myself: 88a250079400433b95df5a016906a927 http://fullstack-devs.xpo.network #