ethereum

How to call token functions without source code

How to call token functions without source code Question: I created a basic MintableToken with OpenZeppelin framework but I have lost my source code. I want to mint more of my tokens and I am trying to do so through web3.py Here is my current code web3 = Web3(Web3.HTTPProvider("https://mainnet.infura.io/v3/MYAPI")) web3.eth.defaultAccount = ‘MYACC_ADDR’ abi = [ …

Total answers: 1

How to access a smart contract function protected by access rights using Web3py?

How to access a smart contract function protected by access rights using Web3py? Question: I have a smart contract address for security tokens, and certain functions of it are protected by access rights, for which I have an address to access those functions, however I am not able to figure out, how to call that …

Total answers: 1

How to convert ethereum addres to public key

How to convert ethereum addres to public key Question: I need to convert ethereum address like this 0xB34080739D5B656D76089f9f21b374BA5dafA373 to public key like this e2d3a3a43e71eb541e12504cee22ed74024969b46b9e68ea7f9e5384fe96fc04 I got the address this way from web3 import Web3 w3 = Web3(Web3.HTTPProvider(‘https://sokol.poa.network’)) addr = w3.toHex(w3.sha3(text=public_key)[12:]) Maybe there is a library for that? help pls Asked By: Niko || Source Answers: …

Total answers: 1

Deploy contract made with OpenZeppelin from Web3.py

Deploy contract made with OpenZeppelin from Web3.py Question: I’ve followed a tutorial centered in the creation of an ICO and a Crowdsale (based on the ICO that I’ve created). It’s a very classic tutorial, I know, but now I’m integrating the 2 contracts made with the help of OpenZeppelin and Truffle framework in a Django …

Total answers: 1

Access private key after personal.newAccount in web3.py

Access private key after personal.newAccount in web3.py Question: I have created an Ethereum account using web3.py in python 3.6: web3.personal.newAccount(‘password’) How do I access the private key for that account? Asked By: MUHASIN BABU || Source Answers: When you create an account on your node (which w3.personal.newAccount() does), the node hosts the private key; direct …

Total answers: 2

Difference between sendTransaction and sendRawTransaction in web3.py

Difference between sendTransaction and sendRawTransaction in web3.py Question: What are the practical differences between these web3.py methods for sending a transaction? w3.eth.sendTransaction({}) w3.eth.sendRawTransaction(signed_txn.rawTransaction) Asked By: TimRicta || Source Answers: w3.eth.sendTransaction() only supports sending unsigned transactions. In order to use it, your node must be managing your private key. Since the node must manage your key, …

Total answers: 1

Web3.py transactions are not broadcast on Ethereum Rinkby testnet

Web3.py transactions are not broadcast on Ethereum Rinkby testnet Question: I am using the web.py code below to try and send a transaction with 1 ETH on the Rinkeby testnet via a local geth node. I can see the transactions as submitted in live local ethereum node log stream, but they don’t ever seem to …

Total answers: 1

How to connect web3 to main ethereum network using python?

How to connect web3 to main ethereum network using python? Question: I am using web3.py on my private/test network though: from web3 import Web3, HTTPProvider w3 = Web3(HTTPProvider(“https://private-ip:8545”)) For making connection to my private network i use this method and after performing all the oprations and testing i want to connect my API to main …

Total answers: 1

The transactions created by web3 (python) aren't reflected on the Ethereum blockchain

The transactions created by web3 (python) aren't reflected on the Ethereum blockchain Question: I’m trying to use web3.py with infura.io to send ethereum tokens from one address to another. This returns to me a transaction ID. But it just never goes on to the blockchain when I check it. I have used high gas amount …

Total answers: 1