Skip to content

Instantly share code, notes, and snippets.

@linagee
Created August 21, 2015 21:53
Show Gist options
  • Save linagee/6708a3a47179b486f07d to your computer and use it in GitHub Desktop.
Save linagee/6708a3a47179b486f07d to your computer and use it in GitHub Desktop.
Just realized I made the first executable code in Ethereum!
for (var x = 46400; x < 48650; x++) {
var transactions = eth.getBlock(x).transactions;
if (transactions.length > 0) {
for (var y = 0; y < transactions.length; y++) {
var transactionReceipt = eth.getTransactionReceipt(transactions[y]);
if (transactionReceipt.contractAddress !== null) {
console.log(transactionReceipt.contractAddress + " in TX: " + transactions[y] + " (block: " + x + ", timestamp: " + eth.getBlock(x).timestamp + ") contract: " + eth.getCode(transactionReceipt.contractAddress));
}
}
}
}
0x9a049f5d18c239efaa258af9f3e7002949a977a0 in TX: 0x6c929e1c3d860ee225d7f3a7addf9e3f740603d243260536dfa2f3cf02b51de4 (block: 46402, timestamp: 1438922535) contract: 0x
0xc669eaad75042be84daaf9b461b0e868b9ac1871 in TX: 0x31ded263506ea36e6ea777efc2c39a999e6fba4f4d338c7313af6aac6d9bf3e3 (block: 47205, timestamp: 1438935994) contract: 0x
0x589ea787b46da08ec8fc081678335c5d0081010e in TX: 0x28dde8260ea71c354b9d3e0cf0c2fcd86369b34f6527b7806b519ff4d6bb6d95 (block: 48162, timestamp: 1438952547) contract: 0x
0x9a6bfff95d8ae43425d3960585c230c89e9060e4 in TX: 0x7a54025726704a0498ba47946296c199d11917ba47dbf7804d7a1c7e6029bfbf (block: 48172, timestamp: 1438952860) contract: 0x
0xf0b0420788efa4e6241ed3ff5e88c092d7ee4fa3 in TX: 0x4f2e6103c5b6224fe4cb478b957215a71b0e8c0523c0ce41a80b7697dbea3cb1 (block: 48173, timestamp: 1438952908) contract: 0x
0x4dae54c8645c47dd55782091eca145c7bff974bc in TX: 0x28a6edb8d77c1f1f5531aa0d1c9014c063dd512c9d6a6eff193b73ba676064a6 (block: 48512, timestamp: 1438958350) contract: 0x
0x9973aad0d294ac02632d8d26a1a2818213f31f0b in TX: 0x4e726f789d6c2411b49e8ee475cb4f09aa8397c16dbca5629e80e9a6bd88b168 (block: 48537, timestamp: 1438958635) contract: 0x
0x7043be25da95cb39cdaadc80f68cf4066a5146d4 in TX: 0x1aff7a5d0a2e0808a1d693991f0ee708f8280420b91fa787d4c643626b49fecd (block: 48591, timestamp: 1438959546) contract: 0x
0x1a332271eac30c5e967ce9e606bb0e9b4ddf436e in TX: 0x290044d69e0c91da06f02e55acc7d9d16a8e62fda29071bb0b9550da7bf69e20 (block: 48613, timestamp: 1438959842) contract: 0x
0x87c44b9a951161d6d261723130208b176475f2ad in TX: 0x06d751236ef10eed7e59cb305fa56bc7007dfebea0a792cb2528cfd601e40114 (block: 48615, timestamp: 1438959876) contract: 0x
0x6516298e1c94769432ef6d5f450579094e8c21fa in TX: 0x575cc1e5d4259547110dc1312b85c7c5ad0a816b3c8eb194e3b874d65a1a0211 (block: 48643, timestamp: 1438960342) contract: 0x60606040526000357c0100000000000000000000000000000000000000000000000000000000900480630f59f83a1461003957610037565b005b6100446004506100b2565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156100a45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6020604051908101604052806000815260200150604060405190810160405280600381526020017f65746800000000000000000000000000000000000000000000000000000000008152602001509050610107565b9056
@fulldecent
Copy link

@fulldecent
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment