Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nonce = web3.eth.getTransactionCount(adr_novcanika)
- transaction = contract.functions.transfer(
- adr_odrediste,iznos).buildTransaction({
- 'gas': 2000000,
- 'gasPrice': web3.toWei('10', 'gwei'),
- 'from': adr_novcanika,
- 'nonce': nonce
- })
- signed_txn = web3.eth.account.signTransaction(transaction, private_key=priv_kljuc)
- web3.eth.sendRawTransaction(signed_txn.rawTransaction)
- print('Poslano!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement