Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 64760

Web3.py helps you access your Ethereum node from Python. It is web3.js for Python.

1 vote
1 answer
3k views

web3 python convert addresses from transaction log topics

I'm trying to get the to and from address from the logs in a transaction. In my example, the log entry is for a Transfer(address,address,uint256). The resulting topics[1] and [2] return the addresses, …
Twiddles's user avatar
2 votes
3 answers
8k views

How to find out if a token takes a fee on transfer?

I'm trying to find out if there is a way programmatically (using web3) to check if a token takes a fee on transfer, such as the ones that require the swapExactETHForTokensSupportingFeeOnTransferTokens …
Twiddles's user avatar
0 votes

Web3py - how to get pending transaction data?

Use get_block with full transactions. pendingBlock = w3.eth.get_block('pending', full_transactions=True) This will show all transactions in the pending block, with full TX data. (from, to, gas info, i …
Twiddles's user avatar