You are on page 1of 8

SEND MULTIPLE TXNS

def multisend(eth, limit, gwei, target, data):


wei = w3.toWei(eth,'ether');
nonce = w3.eth.getTransactionCount(wallet1)
txn = {
'to': target,
'value': wei,
'gas': limit,
'gasPrice': w3.toWei(gwei, 'gwei'),
'nonce': nonce,
'chainId': 1,
'data': data
}
signed_txn = w3.eth.account.signTransaction(txn, key1)
w3.eth.sendRawTransaction(signed_txn.rawTransaction)
nonce = w3.eth.getTransactionCount(wallet2)
txn = {
'to': target,
'value': wei,
'gas': limit,
'gasPrice': w3.toWei(gwei, 'gwei'),
'nonce': nonce,
'chainId': 1,
'data': data
}
signed_txn = w3.eth.account.signTransaction(txn, key2)
w3.eth.sendRawTransaction(signed_txn.rawTransaction)
nonce = w3.eth.getTransactionCount(wallet3)
txn = {
'to': target,
'value': wei,
'gas': limit,
'gasPrice': w3.toWei(gwei, 'gwei'),
'nonce': nonce,
'chainId': 1,
'data': data
}
signed_txn = w3.eth.account.signTransaction(txn, key3)
w3.eth.sendRawTransaction(signed_txn.rawTransaction)
nonce = w3.eth.getTransactionCount(wallet4)
txn = {
'to': target,
'value': wei,
'gas': limit,
'gasPrice': w3.toWei(gwei, 'gwei'),
'nonce': nonce,
'chainId': 1,
'data': data
}

------------------------

ALARM

def monitor():
while True:
if fomo3d.functions.rID_().call() == 1 and
lastwinner.functions.rID_().call() == 2:
print("The round is still the same");
time.sleep(1)
print("sorry")
else :
if fomo3d.functions.rID_().call() == 2 :
print("New f3d round has started!!!");
print("Current time: ");
print(strftime("%H:%M:%S", localtime()));
webbrowser.open('https://etherscan.io/txs?
a=0xA62142888ABa8370742bE823c1782D17A0389Da1');
webbrowser.open('https://exitscam.me/play');
winsound.PlaySound('alar.wav', winsound.SND_FILENAME |
winsound.SND_ASYNC);
break
if lastwinner.functions.rID_().call() == 3 :
print("New lastwinner round has started!!!");
print("Current time: ");
print(strftime("%H:%M:%S", localtime()));
webbrowser.open('https://etherscan.io/txs?
a=0xDd9fd6b6F8f7ea932997992bbE67EabB3e316f3C');
webbrowser.open('http://lastwinner.co/play');
winsound.PlaySound('alar.wav', winsound.SND_FILENAME |
winsound.SND_ASYNC);
break

----------------------

1) download latest version of python. make sure to click "add python to PATH" when
installing
2) goto windows command prompt ( you can right click on windows icon in bottom left
then click Run, then type in cmd.exe )
3) type pip install web3
4) set up an account at infura.io . when you are done goto
https://infura.io/dashboard and create new project. it will give you an api key and
link

4) open python and use this code


Infura - Scalable Blockchain Infrastructure
Secure, reliable, and scalable access to Ethereum APIs and IPFS gateways.

import webbrowser
import time
from time import localtime, strftime
import winsound
import contract_abi
from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('https://mainnet.infura.io/v3/whateveryourapilinkis'))
w3.eth.enable_unaudited_features()

lastwinner = w3.eth.contract(address =
"0xDd9fd6b6F8f7ea932997992bbE67EabB3e316f3C", abi = contract_abi.abi)
fomo3d = w3.eth.contract(address = "0xA62142888ABa8370742bE823c1782D17A0389Da1",
abi = contract_abi.abi)
fomoshort = w3.eth.contract(address = "0x4e8ecF79AdE5e2C49B9e30D795517A81e0Bf00B8",
abi = contract_abi.abi)

def monitor():
while True:
if fomo3d.functions.rID_().call() == 2 and
lastwinner.functions.rID_().call() == 2:
print("The round is still the same");
time.sleep(1)
print("sorry")
else :
if fomo3d.functions.rID_().call() == 3 :
print("New f3d round has started!!!");
print("Current time: ");
print(strftime("%H:%M:%S", localtime()));
webbrowser.open('https://etherscan.io/txs?
a=0xA62142888ABa8370742bE823c1782D17A0389Da1');
webbrowser.open('https://exitscam.me/play');
winsound.PlaySound('alar.wav', winsound.SND_FILENAME |
winsound.SND_ASYNC);
break
if lastwinner.functions.rID_().call() == 3 :
print("New lastwinner round has started!!!");
print("Current time: ");
print(strftime("%H:%M:%S", localtime()));
webbrowser.open('https://etherscan.io/txs?
a=0xDd9fd6b6F8f7ea932997992bbE67EabB3e316f3C');
webbrowser.open('http://lastwinner.co/play');
winsound.PlaySound('alar.wav', winsound.SND_FILENAME |
winsound.SND_ASYNC);
break

you can change the round ID parts


oh yeah, you need contract_abi.abi in your current working directory too
that will be a .py file named contract_abi.py
you can create the .py files using the IDLE part of python
just copy paste the code above and then you can save as fomonitor.py
and in future you can just do import fomonitor.py i believe
you goto IDLE and then at the menu click new file
then copy paste in there
when you save they are automatically .py and in your working directory
basically my workflow has been using IDLE files to edit and write the code, then
execute in the actual (black) python program
you cant copy and paste a lot of lines in the IDLE command line area, it only
accepts one at a time
but
before you do any of that
you can make sure web3 was set up right with your infura key by putting into python
from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('https://mainnet.infura.io/v3/whateveryourapilinkis'))
w3.eth.blockNumber
that should show you current block height if done correctly
the pip install web3 is the only thing you do in windows terminal

---

JS

var Web3 = new


Web3.providers.HttpProvider("https://mainnet.infura.io/1bea1afc8ff94617ba76e386ad86
ef98");

var contractAbi = [ [{"constant":true,"inputs":[],"name":"getBuyPrice","outputs":


[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":[],"name":"name","outputs":
[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"func
tion"},{"constant":false,"inputs":[{"name":"_affCode","type":"bytes32"},
{"name":"_team","type":"uint256"},
{"name":"_eth","type":"uint256"}],"name":"reLoadXname","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":false,"inputs":[],"name":"activate","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":true,"inputs":
[{"name":"","type":"address"}],"name":"pIDxAddr_","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":[],"name":"airDropTracker_","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":
[{"name":"","type":"uint256"}],"name":"round_","outputs":
[{"name":"plyr","type":"uint256"},{"name":"team","type":"uint256"},
{"name":"end","type":"uint256"},{"name":"ended","type":"bool"},
{"name":"strt","type":"uint256"},{"name":"keys","type":"uint256"},
{"name":"eth","type":"uint256"},{"name":"pot","type":"uint256"},
{"name":"mask","type":"uint256"},{"name":"ico","type":"uint256"},
{"name":"icoGen","type":"uint256"},
{"name":"icoAvg","type":"uint256"}],"payable":false,"stateMutability":"view","type"
:"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},
{"name":"","type":"bytes32"}],"name":"plyrNames_","outputs":
[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"functi
on"},{"constant":true,"inputs":
[{"name":"","type":"uint256"}],"name":"fees_","outputs":
[{"name":"gen","type":"uint256"},
{"name":"p3d","type":"uint256"}],"payable":false,"stateMutability":"view","type":"f
unction"},{"constant":true,"inputs":
[{"name":"","type":"bytes32"}],"name":"pIDxName_","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":false,"inputs":[{"name":"_affCode","type":"uint256"},
{"name":"_team","type":"uint256"},
{"name":"_eth","type":"uint256"}],"name":"reLoadXid","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":false,"inputs":[],"name":"withdraw","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":false,"inputs":[{"name":"_nameString","type":"string"},
{"name":"_affCode","type":"address"},
{"name":"_all","type":"bool"}],"name":"registerNameXaddr","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":false,"inputs":[{"name":"_pID","type":"uint256"},
{"name":"_addr","type":"address"},{"name":"_name","type":"bytes32"},
{"name":"_laff","type":"uint256"}],"name":"receivePlayerInfo","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":true,"inputs":[{"name":"","type":"uint256"},
{"name":"","type":"uint256"}],"name":"rndTmEth_","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":[],"name":"rID_","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":
[{"name":"_pID","type":"uint256"}],"name":"getPlayerVaults","outputs":
[{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"func
tion"},{"constant":false,"inputs":[{"name":"_nameString","type":"string"},
{"name":"_affCode","type":"bytes32"},
{"name":"_all","type":"bool"}],"name":"registerNameXname","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":true,"inputs":[],"name":"getCurrentRoundInfo","outputs":
[{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"},{"name":"","type":"address"},
{"name":"","type":"bytes32"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"},
{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"func
tion"},{"constant":false,"inputs":[{"name":"_affCode","type":"address"},
{"name":"_team","type":"uint256"},
{"name":"_eth","type":"uint256"}],"name":"reLoadXaddr","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":false,"inputs":[{"name":"_affCode","type":"uint256"},
{"name":"_team","type":"uint256"}],"name":"buyXid","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":false,"inputs":[{"name":"_pID","type":"uint256"},
{"name":"_name","type":"bytes32"}],"name":"receivePlayerNameList","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":false,"inputs":[{"name":"_nameString","type":"string"},
{"name":"_affCode","type":"uint256"},
{"name":"_all","type":"bool"}],"name":"registerNameXID","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":true,"inputs":[],"name":"symbol","outputs":
[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"func
tion"},{"constant":false,"inputs":[{"name":"_affCode","type":"address"},
{"name":"_team","type":"uint256"}],"name":"buyXaddr","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":true,"inputs":[{"name":"","type":"uint256"},
{"name":"","type":"uint256"}],"name":"plyrRnds_","outputs":
[{"name":"eth","type":"uint256"},{"name":"keys","type":"uint256"},
{"name":"mask","type":"uint256"},
{"name":"ico","type":"uint256"}],"payable":false,"stateMutability":"view","type":"f
unction"},{"constant":false,"inputs":[{"name":"_affCode","type":"bytes32"},
{"name":"_team","type":"uint256"}],"name":"buyXname","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":false,"inputs":
[{"name":"_otherF3D","type":"address"}],"name":"setOtherFomo","outputs":
[],"payable":false,"stateMutability":"nonpayable","type":"function"},
{"constant":true,"inputs":
[{"name":"","type":"uint256"}],"name":"potSplit_","outputs":
[{"name":"gen","type":"uint256"},
{"name":"p3d","type":"uint256"}],"payable":false,"stateMutability":"view","type":"f
unction"},{"constant":true,"inputs":[],"name":"getTimeLeft","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":[{"name":"_rID","type":"uint256"},
{"name":"_eth","type":"uint256"}],"name":"calcKeysReceived","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":
[{"name":"_keys","type":"uint256"}],"name":"iWantXKeys","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":[],"name":"activated_","outputs":
[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"functi
on"},{"constant":true,"inputs":[],"name":"airDropPot_","outputs":
[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"fun
ction"},{"constant":true,"inputs":
[{"name":"","type":"uint256"}],"name":"plyr_","outputs":
[{"name":"addr","type":"address"},{"name":"name","type":"bytes32"},
{"name":"win","type":"uint256"},{"name":"gen","type":"uint256"},
{"name":"aff","type":"uint256"},{"name":"lrnd","type":"uint256"},
{"name":"laff","type":"uint256"}],"payable":false,"stateMutability":"view","type":"
function"},{"constant":false,"inputs":[],"name":"potSwap","outputs":
[],"payable":true,"stateMutability":"payable","type":"function"},
{"constant":true,"inputs":
[{"name":"_addr","type":"address"}],"name":"getPlayerInfoByAddress","outputs":
[{"name":"","type":"uint256"},{"name":"","type":"bytes32"},
{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"},{"name":"","type":"uint256"},
{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"func
tion"},{"inputs":
[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},
{"payable":true,"stateMutability":"payable","type":"fallback"},
{"anonymous":false,"inputs":[{"indexed":true,"name":"playerID","type":"uint256"},
{"indexed":true,"name":"playerAddress","type":"address"},
{"indexed":true,"name":"playerName","type":"bytes32"},
{"indexed":false,"name":"isNewPlayer","type":"bool"},
{"indexed":false,"name":"affiliateID","type":"uint256"},
{"indexed":false,"name":"affiliateAddress","type":"address"},
{"indexed":false,"name":"affiliateName","type":"bytes32"},
{"indexed":false,"name":"amountPaid","type":"uint256"},
{"indexed":false,"name":"timeStamp","type":"uint256"}],"name":"onNewName","type":"e
vent"},{"anonymous":false,"inputs":
[{"indexed":false,"name":"compressedData","type":"uint256"},
{"indexed":false,"name":"compressedIDs","type":"uint256"},
{"indexed":false,"name":"playerName","type":"bytes32"},
{"indexed":false,"name":"playerAddress","type":"address"},
{"indexed":false,"name":"ethIn","type":"uint256"},
{"indexed":false,"name":"keysBought","type":"uint256"},
{"indexed":false,"name":"winnerAddr","type":"address"},
{"indexed":false,"name":"winnerName","type":"bytes32"},
{"indexed":false,"name":"amountWon","type":"uint256"},
{"indexed":false,"name":"newPot","type":"uint256"},
{"indexed":false,"name":"P3DAmount","type":"uint256"},
{"indexed":false,"name":"genAmount","type":"uint256"},
{"indexed":false,"name":"potAmount","type":"uint256"},
{"indexed":false,"name":"airDropPot","type":"uint256"}],"name":"onEndTx","type":"ev
ent"},{"anonymous":false,"inputs":
[{"indexed":true,"name":"playerID","type":"uint256"},
{"indexed":false,"name":"playerAddress","type":"address"},
{"indexed":false,"name":"playerName","type":"bytes32"},
{"indexed":false,"name":"ethOut","type":"uint256"},
{"indexed":false,"name":"timeStamp","type":"uin
t256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":
[{"indexed":false,"name":"playerAddress","type":"address"},
{"indexed":false,"name":"playerName","type":"bytes32"},
{"indexed":false,"name":"ethOut","type":"uint256"},
{"indexed":false,"name":"compressedData","type":"uint256"},
{"indexed":false,"name":"compressedIDs","type":"uint256"},
{"indexed":false,"name":"winnerAddr","type":"address"},
{"indexed":false,"name":"winnerName","type":"bytes32"},
{"indexed":false,"name":"amountWon","type":"uint256"},
{"indexed":false,"name":"newPot","type":"uint256"},
{"indexed":false,"name":"P3DAmount","type":"uint256"},
{"indexed":false,"name":"genAmount","type":"uint256"}],"name":"onWithdrawAndDistrib
ute","type":"event"},{"anonymous":false,"inputs":
[{"indexed":false,"name":"playerAddress","type":"address"},
{"indexed":false,"name":"playerName","type":"bytes32"},
{"indexed":false,"name":"ethIn","type":"uint256"},
{"indexed":false,"name":"compressedData","type":"uint256"},
{"indexed":false,"name":"compressedIDs","type":"uint256"},
{"indexed":false,"name":"winnerAddr","type":"address"},
{"indexed":false,"name":"winnerName","type":"bytes32"},
{"indexed":false,"name":"amountWon","type":"uint256"},
{"indexed":false,"name":"newPot","type":"uint256"},
{"indexed":false,"name":"P3DAmount","type":"uint256"},
{"indexed":false,"name":"genAmount","type":"uint256"}],"name":"onBuyAndDistribute",
"type":"event"},{"anonymous":false,"inputs":
[{"indexed":false,"name":"playerAddress","type":"address"},
{"indexed":false,"name":"playerName","type":"bytes32"},
{"indexed":false,"name":"compressedData","type":"uint256"},
{"indexed":false,"name":"compressedIDs","type":"uint256"},
{"indexed":false,"name":"winnerAddr","type":"address"},
{"indexed":false,"name":"winnerName","type":"bytes32"},
{"indexed":false,"name":"amountWon","type":"uint256"},
{"indexed":false,"name":"newPot","type":"uint256"},
{"indexed":false,"name":"P3DAmount","type":"uint256"},
{"indexed":false,"name":"genAmount","type":"uint256"}],"name":"onReLoadAndDistribut
e","type":"event"},{"anonymous":false,"inputs":
[{"indexed":true,"name":"affiliateID","type":"uint256"},
{"indexed":false,"name":"affiliateAddress","type":"address"},
{"indexed":false,"name":"affiliateName","type":"bytes32"},
{"indexed":true,"name":"roundID","type":"uint256"},
{"indexed":true,"name":"buyerID","type":"uint256"},
{"indexed":false,"name":"amount","type":"uint256"},
{"indexed":false,"name":"timeStamp","type":"uint256"}],"name":"onAffiliatePayout","
type":"event"},{"anonymous":false,"inputs":
[{"indexed":false,"name":"roundID","type":"uint256"},
{"indexed":false,"name":"amountAddedToPot","type":"uint256"}],"name":"onPotSwapDepo
sit","type":"event"}] ];

//last winner
var contractAddress = "0xdd9fd6b6f8f7ea932997992bbe67eabb3e316f3c";
var contractInstance = web3.eth.contract(contractAbi).at(contractAddress);

//check once a second


var accountInterval = setInterval(startScan, 1000);

function startScan() {

contractInstance.getCurrentRoundInfo(function(error, getCurrentRoundInfo) {
if (error) {
var errorMsg = 'error';
console.log(errorMsg);
return;
}
var currentRound = parseInt(getCurrentRoundInfo[1]);
if (currentRound === 2) {
console.log('nothing to see here');
} else {
console.log('NEW ROUND!!!');
alert("Last Winner New Round Started!!!");
stopScan();
}
});
}
function stopScan() {
clearInterval(accountInterval);
}

---------

TEST

You might also like