Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pyethereum]

Ethereum's core Python library implementation

0
votes
0answers
19 views

are current ethereum opcodes prices in pyethereum updated?

I am not an expert in opcodes for Ethereum, but i am wondering if their prices here [https://github.com/ethereum/pyethereum/blob/develop/ethereum/opcodes.py] are updated as the latest version used by ...
1
vote
0answers
76 views

How to parse internal transactions in order to find the transactions values

I would like to parse the transactions with the following transaction hash: 0xcad1183ecf7f278713858d92c06f00934f79a75eb5c852352a3ac35de07e151c More specifically, I'm interested to find out that 5 + ...
0
votes
2answers
65 views

Different Values for v, r, s? What am I doing wrong?

lets assume I have this private key (test account on ropsten, no need to worry): 785cdcd731a1b2438ec4511a25d04efbdc499ed350df612364af1aa6f4fd6abd When I use Pyethereum to run v, r, s = ecsign(tx['...
2
votes
1answer
192 views

What is pyethereum?

I have seen a definition here saying: "This is the Python core library of the Ethereum project" So what is it's use? To develop dapps using python on the ethereum network?
4
votes
1answer
161 views

What Sequence Occurs 'Under the Hood' When an Ethereum Contract Function is Called?

It seems when a single function is called, the Ethereum Virtual Machine: Does 'pre-call checks' for exceptions/errors. Computes the amount of gas needed, checks that the accounts involved exist. ...
0
votes
0answers
26 views

Manually add peers in pyethapp

Is there a way to manually add peers on a pyethapp client? I am looking for an equivalent of geth console's admin.addPeers().
5
votes
4answers
346 views

Why do you want to use different implementations of EVM?

Currently there are many implementations of EVM (Java, C++, Python, Go, etc). For example: I will be using Solidity to write DApp on the top of EVM-Java and EVM-Python, why would I want to use EVM-...
0
votes
0answers
58 views

Can you create your own private testnet server using Casper

I would like to know if its possible and if so how, I believe I would have to use the pyethereum client but I'm not sure where to go from there
0
votes
1answer
156 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":[{"...
3
votes
1answer
2k views

serializing byte array for transaction data

I've upgraded from python 2 to python 3 and some code that used to work is now broken. I can't seem to fix it. Any suggestions? Worked in python 2 # Convert hex string to byte array hex_string = ...
0
votes
2answers
160 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 ...
2
votes
0answers
325 views

How to initiate ethereum transaction in HD wallets using python?

I've managed to generate HD wallet for ethereum where I have Master Key, xpriv, xpub (156 in lengh) keys but for signing a transaction I need private key of address(64 Characters). How could we ...
2
votes
0answers
129 views

Pyethapp stuck on waiting for bootstrap

I am trying to build a distributed application using pyethapp.But I am facing difficulty in setting up pyethapp.
3
votes
1answer
3k views

How to send a transaction to myetherapi.com with Web3.py

I am having trouble interacting with myetherapi.com using web3.py. I am able to create a few functions that were working, like get_eth_balance() below. But to send transactions like send_eth(), I just ...
1
vote
1answer
3k views

How can I generate a wallet in python?

Im trying to write a python script that can generate a new wallet for that user, but I need to be able to keep the private key. I followed this : Stack overflow answer And got these results: import ...
4
votes
2answers
384 views

How open local ethereum chain (leveldb) using PyEthereum package?

I got local private blockchain in: /Users/User/EthereumTestNet/geth/chaindata How i can connect to it, to get chain data by ethereum.pow.chain.get_block(hash)? I know that to look at chain data i ...
6
votes
3answers
2k views

Fastest way to send transactions

I'm currently performing my Ethereum logic using pyethereum and then sending transactions via a remote node using https://infura.io/. It's not fast enough for my needs. What can I do to ensure my ...
4
votes
1answer
2k views

Verifying personal.sign signature with pyethereum

I'm trying to verify a signed message from Metamask with pyethereum. I can not seem to recover the correct address from the signature. Lack of documentation isn't helping matters. On the client ...
2
votes
0answers
39 views

Sharing live chaindata across processes

I'm running a node with geth, and would like to operate on the live chaindata using pyethereum. Is there a clever way to get around the lock imposed by LevelDB? Thanks!
1
vote
1answer
211 views

Connect pyethapp to testrpc - Is there an equivalent to `geth attach` in pyethapp?

I have an instance of testrpc running: testrpc -a 1000 when using geth, I'd do this: geth attach rpc:http://localhost:8545 to link to it. I have pyethapp installed and would like to do something ...
1
vote
2answers
398 views

Extract v, r and s from signature for use with pyethereum.transaction library

Given an unsigned transaction, constructed using pythereum.transaction, and a signature, created by signing the transaction's hash with a private key, how do I extract the v, r, s values from the ...
3
votes
2answers
798 views

How to generate a raw transaction with data using Pyethereum

How do you use Pyethereum to generate a raw tx to send to the blockchain? I can do it successfully with a transaction with no data, but when I am attempting to use data, it does not function properly. ...
0
votes
1answer
321 views

Encode data fields, programmatically execute trade transaction

I'm trying to encode the data fields according to the contract ABI using Pyethereum in python. I'm making a raw transaction. I'm successfully able send ether from one address to another by signing a ...
1
vote
1answer
124 views

The official library for work with ethereum payments

I looking for way to generate ether wallet (priv-pub pair), handle incoming transaction to that wallet and make/push to network transaction from it. How to do that via go-ethereum or pyethereum (full ...
5
votes
3answers
770 views

pyethapp ImportError: cannot import name blocks

I installed pyethapp using pip install -c constraints.txt pyethapp. The constraints.txt file has one line, pyelliptic==1.5.7, to prevent the install error mentioned in this thread. The install ...
1
vote
0answers
57 views

Creating a dapps [duplicate]

I'd like to create an ethereum based dapp and coin, looking trough the code for some popular projects I could see they mostly use python but I couldn't find any solidity code. Is this normal? How is ...
1
vote
1answer
205 views

Which testnet? Which Linux client?

I have been watching Ethereum for a couple years, have had that Mist thing installed, I lost $40 in The DAO. The time has come around again for me to pay attention and I want to do a testnet. I have ...
1
vote
0answers
129 views

Contract method not returning the value while using ethjsonrpc and pyethapp

for some reason, i had to use python version of Ethereum implementation i.e PyEthApp. I am able to setup the local network and able mine the transactions. I was exeperimenting with contracts for my ...
3
votes
1answer
804 views

How can a raw transaction be generated with pyethereum library?

Is it possible to generate a raw transaction using pyethereum library taking inputs wallet json, password, along with transaction parameters? My attempt below, I get the hex, when inputting hex into ...
0
votes
1answer
573 views

Crypto package not resolving

I have the same problem as in 'How to apply pyethrecover.py on v3 .json/transfor v3 .json to .v1' referenced here, but in trying the answer's code, I am finding that the Crypto package is not being ...
4
votes
1answer
696 views

Scraping ethereum blockchain in human readable format (csv)

I wanted to scrape the whole ethereum blockchain in csv format. For this I reverse engineered and extended this code by vitalik: https://github.com/ethereum/research/blob/master/uncle_regressions/...
2
votes
0answers
196 views

pyethrecover v3 need help

I have lost my mist wallet password (1 year ago) i tried pyethrecover but... no error , no luck... i guess because i have mist .089 keysotre file... so i tried this one: How to apply pyethrecover.py ...
10
votes
1answer
1k views

How to connect an Android App user to ethereum network?

I'm working on developing a decentralized application which requires every user of the Android app to have separate account containing his ether balance information and other user-specific information....
4
votes
1answer
223 views

TestRPC - Pythereum - No handlers could be found for logger “jsonrpc.manager”

I am trying to get the standard init tests to work but I am getting the subject error. could you please help me to resolve this. Thanks, TestRPC/0.8.7/linux2/python2.7.12 Available Accounts ...
5
votes
2answers
8k views

Are there any implementations of smart contracts in Python?

I want to implement some smart contracts and I am strongest in python.
1
vote
0answers
208 views

Sending ether from transaction to contract in Pyethereum using Solidity

I want to transfer some ethers from a user account to a contract account in Solidity. I tried using the following syntax: contract_code = """ contract bug { function load_money() returns (uint32)...
3
votes
0answers
201 views

Send JSON RPC request in BATCH

Is there any way i can send rpc request in batch way using pyethapp? If exists, whether it can help to increase the request efficiency? Thanks a lot.
0
votes
1answer
115 views

Can I use Ethereum to prove work? [closed]

I need to store pdf hash in blockchain to prove my pdf existence. I thought to use blockchain, but public blockchain required some fee ... I don't really understand if ethereum could be my solution......
3
votes
3answers
3k views

populus OSError: [Errno 2] No such file or directory

When trying: $populus compile Get: OSError: [Errno 2] No such file or directory Tried: Tried to install missing dependencies as described here and installed solidity compiler as well - same ...
3
votes
2answers
301 views

RLP encoding of 0

According to the docs here, For a single byte whose value is in the [0x00, 0x7f] range, that byte is its own RLP encoding I ran the following using pyrlp (similar to the code in pyethereum here):...
1
vote
0answers
118 views

Serpent function to compare strings

I would like to write a simple Serpent function that involves string comparison, but even the simplest example I can think of does not work as I would like. This post gets me part of the way . . . ...
1
vote
0answers
82 views

Multithreading in web3.js [duplicate]

Is it possible to run concurrent tasks using web3.js and an Ethereum client? For example, say we have the following code to iterate through a number of blocks: var startBlockNumber = 0; var ...
1
vote
0answers
51 views

Is there a way to get proper block object of pyethereum with RPC?

I am running a geth node and I would like to connect to the node with python and get instance of the Block class: https://github.com/ethereum/pyethereum/blob/develop/ethereum/blocks.py#L164 is there ...
1
vote
1answer
432 views

web3.js how to perform POST requests?

After reading the documentation here and here I tried running the balance checker script from here. I've modified the path to the source files and my code looks like (I've downloaded all javascript ...
2
votes
0answers
140 views

pretty_compile in pyethereum

I am learning Serpent with pyethereum in Spyder (so I have a running log of what I have tried and learned), but I am stuck in translating standard features of Serpent (such as pretty_compile) from ...
6
votes
2answers
5k views

How to apply pyethrecover.py on v3 .json/transfor v3 .json to .v1

I'm trying to get pyethrecover.py running via Python on one of my .json files that were created by Ethereum-wallet for Mac. It seems that my .json file is v3 and the pyethrecover.py only works for v1 ...
1
vote
1answer
893 views

pytest test_contracts.py error: ImportError: cannot import name state_transition

I am struggling to set up pyethereum on an old ThinkPad T500 running Ubuntu 16.04 and Python 2.7.11+, following installation instructions here and here. When I test the installation with: pyethereum/...
4
votes
1answer
1k views

Storing data in the blockchain inside a transaction

This question is related to this one and this one. I'm trying to store data in the blockchain inside the transaction data field: The second question offers a solution using a contract but is it ...
3
votes
0answers
59 views

Effectively debugging pyethapp

I have also asked the technical details of pyethapp's use of gevents here. I'm trying to run a transaction step by step in a debugger and see how it is being signed and added to the blockchain. I am ...
5
votes
2answers
800 views

(Python) eth_getFilterChanges --> data --> how to decode?

Edit: solved, scroll down. How to decode filter results? A contract is emitting this Event event Send(address from, address to, uint value) With ethjsonrpc and its eth_getFilterChanges I am ...