geth account new --datadir "C:\Users\McLovin\Desktop\geth"
geth.exe --datadir "C:\Users\McLovin\Desktop\geth" init "genesis.json"
geth.exe --http --http.addr "127.0.0.1" --http.api "personal, eth, miner, net, web3, admin" --networkid 15 --datadir "C:\Users\McLovin\Desktop\geth" --allow-insecure-unlock --http.corsdomain "*" console
web3.personal.unlockAccount( "0xA44363888c43cd0b7fb37452b24f3Bd74a911d32" , "111")
или
web3.personal.unlockAccount(eth.accounts[0], "111", 300)
miner.setEtherbase("0xA44363888c43cd0b7fb37452b24f3Bd74a911d32")
miner.start(1)
web3.personal.unlockAccount("0xa44363888c43cd0b7fb37452b24f3bd74a911d32")
>pyuic5 path\to\untitled.ui -o output\path\to\design.py
cmd cd
import web3
import json
class Run():
def __init__(self):
with open("abi.txt", "r") as f:
abi = json.load(f)
self.w3 = web3.Web3(web3.HTTPProvider('http://127.0.0.1:8545'))
contractAddress = web3.Web3.toChecksumAddress("0x0131e25c099b61da2B157FAa05A6Dd7543D