Advertisement
Guest User

Sinisa, Krpa, Roberto

a guest
Jan 22nd, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. nonce = web3.eth.getTransactionCount(adr_novcanika)
  2. transaction = contract.functions.transfer(
  3. adr_odrediste,iznos).buildTransaction({
  4. 'gas': 2000000,
  5. 'gasPrice': web3.toWei('10', 'gwei'),
  6. 'from': adr_novcanika,
  7. 'nonce': nonce
  8. })
  9. signed_txn = web3.eth.account.signTransaction(transaction, private_key=priv_kljuc)
  10. web3.eth.sendRawTransaction(signed_txn.rawTransaction)
  11. print('Poslano!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement