Questions tagged [python]

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

716 questions
3
votes
1 answer

pip install ethereum failed

I run pip install ethereum to install the package named ethereum for python. Yet I got following error: Requirement already satisfied: ethereum in c:\users\wenbo\anaconda3\lib\site-packages\ethereum-2.3.1-py3.6.egg Requirement already satisfied:…
bo wen
  • 45
  • 4
2
votes
1 answer

Verify ethereum signed message using python

Is there any way to verify signed message using python? Google do not provide any useful info. I don't believe that there are no any lib which can do it. Any suggestions? Many thanks!!!
user58331
  • 21
  • 2
2
votes
0 answers

Merkle-Patricia-Trie-Root is wrong. How to get transaction proof? in Python3

I am trying to calculate proof that a specific Transaction is mined with a specific difficulty. So far I got the Block via JSON_RPC and all its Transactions. I am Using the trie Library for Python 3.6 For the sake of testing everything I'm using a…
SimonSchuler
  • 318
  • 1
  • 11
1
vote
1 answer

Convert keccak256(abi.encodePacked(idToSeed[id])) in python

I am looking for python syntax to draw the autoglyphs using python. Here is the few lines which I want to convert in python. I am new to it. Please help me out with this. uint a = uint(uint160(keccak256(abi.encodePacked(idToSeed[id])))); output[c] =…
1
vote
0 answers

How can i get confirmed transactions from an address?

I'm looking for some way to listen to transactions happening on this address. Basically, whenever a new transaction is confirmed, i would like to receive it. How can i do that? I just got started to web3 and Infura so i don't really know where to go…
Jack022
  • 135
  • 4
1
vote
1 answer

dictionaries inside lists - python

i'm trying to access a dictionary within a list and cannot seem to get my for loop to get the key, then the value... i've place an image herein so that its easy for me to explain. so you can see, i would like to navigate to currency = AUD and…
Timujin
  • 11
  • 1
  • 4
1
vote
2 answers

What is the typical convention when referring to items on the top of the stack?

Question: I've been working a lot with op codes recently, writing explainer content primarily. I've been finding it awkward to refer to the top and second from the top item in the stack. Is it incorrect to refer to items on the stack as 'first and…
Equious
  • 11
  • 1
0
votes
3 answers

Let's say I forgot first 2 words of the seed, how could I find an account with ether in it?

Let's say I forgot first 2 words of the seed. I want to write a program that brute-forces all possible bip-39 word combinations for the first 2 words, generate private/public keys, addresses, and go through first 10 addresses to check if there's…
good_evening
  • 157
  • 1
  • 10
0
votes
1 answer

Python: How make Ethereum tx without web3.py?

make a simple eth raw tx and self sign without web3 I only need generate a eth raw transaction and self sign , web3.py is bloated. I generate lots of eth address using python like this: def create_wallet(): keccak = sha3.keccak_256() …
cevin
  • 1
0
votes
3 answers

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 following code: block_number = 0 while True: tx =…
Coder HHC
  • 172
  • 3
  • 17
0
votes
1 answer

Ethereum programming language

I want to learn ethereum from the ground up. Is ethereum written in python or golang or another langauge? With written I mean the reference implementation.
Ini
  • 464
  • 3
  • 15
0
votes
1 answer

How to create new ETH account with API

I'm new to the study of Blockchain and most recently began to study Ethereum. I create a web application, and I need to create an ETH address for each new user. But the important condition is that I do not want to deploy my own node. I want to use…
Narnik Gamarnik
  • 167
  • 1
  • 13
0
votes
0 answers

Does a REVERT operation in the EVM clear the stack?

I was experimenting with the playground on evm.codes and I came across something strange. The op codes of my test contract are: PUSH1 PUSH32 PUSH1 MSTORE PUSH1 PUSH1 REVERT Whats strange to me is that after the REVERT operation is executed, the UI…
Equious
  • 11
  • 1
0
votes
0 answers

using boto3 to access objects in Linode, getting Invalid endpoint error

I'm following the documentation to connect to object storage with boto3 here: https://www.linode.com/docs/products/storage/object-storage/guides/aws-sdk-for-python/ Here is my code linode_obj_config = { "aws_access_key_id": "1S**J", …
0
votes
0 answers

Connecting to Frontend DAapp with python using walletconnect (python, pyWalletConnect)

i am trying to create a bot in python to connect to a dapp. I'm trying to use pyWalletConnect lib, but it's new and challenging. I have successfully retrieved the URI i need to connect to, but i have no clue on how to automate the connection, and…
JakuAme
  • 86
  • 2
1
2