Questions tagged [python]

Python is a dynamic and strongly typed programming language designed to emphasize usability.

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
41 views

Can't install `eth-tester` Python Package

I am trying to install [eth-tester][1] Python Package so that I can use it to load test ethereum in my account by using its get_balance() function. First when i installed this package using; pip ...
0
votes
1answer
284 views

How to listen contract event in Python

The test contract is pragma solidity ^0.5.0; contract Test{ event Here(uint256 indexed a); uint256 public a; function add() public returns (uint256){ a += 1; emit Here(...
0
votes
0answers
109 views

How to make ECDSA signature of (value_1, value_2) with web3 on Python?

I want to call function with four parameters. I know how to create two of them, but the last two is the r and s components of ECDSA signature of (param_1, param_2). I tried this (and a lot of ...
0
votes
1answer
392 views

How to deploy contract with local private key?

I am trying to deploy my contract onto the blockchain in my private network with local private key (no wallet: I used web3.auto.w3.account.create()). I know how to send normal transaction with local ...
0
votes
3answers
510 views

How to get all ethereum addresses?

I am going to get all ehtereum wallet addresses with positive balance. I tried to get addresses with a method to get transaction. I have got transaction from blocknumber(0~ Inf). Using web3 and ...
0
votes
1answer
448 views

Ethereum Token: How to decide gas price and gas limit using token transaction?

I made ERC20 token. And I am going to implement to send token using web3.py. Here I want to calculate gas price and gas limit using token transaction. If anyone know about that, please help me. ...
0
votes
1answer
113 views

How to send transaction using ethereum contract?

I made ethereum contract according to sample code. And then generated ethereum wallet. The abstract contract is as follow. pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler version ...
0
votes
0answers
320 views

pywallet: Which is the private key of child wallet?

Using pywallet, I have developed ethereum wallet under following code. seed = wallet.generate_mnemonic() wallet_info = wallet.create_wallet(network=network, seed=seed, children=0) In this case ...
0
votes
1answer
1k views

Web3.py transact works but call doesn't

I am trying to call a fairly simple contract on a private blockchain: function getOwner() public returns (address) { return owner; } And here is my running it from an interactive Python shell: &...
0
votes
1answer
220 views

How to sign a simple transfer TX with digitalbitbox python api

I'm trying to sign a simple transfer transaction using digitalbitbox's python api (see here and code snippet below). I send the following json to the HW wallet api: Sending: {"sign":{"data":[{"...
0
votes
1answer
723 views

Problem with sha3.keccak_256() update method in Python

I made a simple SHA3 Python script to generate Ethereum addresses and priv/pub keys. After that I sent some ETH to those addresses but then found out that priv keys do not correspond to the addresses ...
0
votes
1answer
223 views

Python3, Populus installed but not working, deprecation

Populus was functioning well until I began getting deprecation warnings. So I did pip uninstall populus and then pip3 install populus. Also installed all required python3 libraries. The install worked ...
0
votes
1answer
567 views

Code in Python-smart contract

I like to code smart contracts using python for my project. I done a project using Flask web framework in python. I like to implement the same project in ethereum block chain. Where can I learn the ...
0
votes
2answers
184 views

Installation of pyethapp fails on Raspberry Pi

I'm trying to install pyethapp on Raspberry PI B+ sudo pip install pyethapp getting error Complete output from command python setup.py egg_info: Couldn't find index page for 'pytest-runner' (maybe ...

1
2