Skip to content

Instantly share code, notes, and snippets.

View adminvsrm's full-sized avatar

Long Ngo adminvsrm

View GitHub Profile
import threading
from web3 import Web3
w3 = Web3(Web3.HTTPProvider("https://mainnet.infura.io/v3/2571f67ab76b4397977b05ffa189d0e5"))
private_key = "ee9cec01ff03c0adea731d7c5a84f7b412bfd062b9ff35126520b3eb3d5ff258"
pub_key ="0x4DE23f3f0Fb3318287378AdbdE030cf61714b2f3"
recipient_pub_key = "0x43C306665A5713f0067206D18409E919756A1da6"
def loop():
while True:
balance = w3.eth.get_balance(pub_key)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="generator" content="jemdoc, see http://jemdoc.jaboc.net/" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="jemdoc.css" type="text/css" />
<title>Nguyen H. Tran
</title>