Search Results
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 |
Web3.py helps you access your Ethereum node from Python. It is web3.js for Python.
1
vote
1
answer
366
views
web3: How to be notified when address performs transaction with contract?
Using python web3, is it possible to listen for when a given target address uses a specific contract?
For context: I want to be able to know every time a wallet purchases/sells tokens via Pancakeswap' …
0
votes
2
answers
325
views
contract abi not working if json format
Using python 3.11.4, web3 6.9.0
I am using a reduced ERC20 token abi to be able to get decimal & symbol information. Abi is:
ERC20_ABI = [
{
"inputs": [],
"name": "decimals",
…
0
votes
Accepted
contract abi not working if json format
Turns out it was capitalizing the Booleans! If using json strings need to change "constant": True to "constant": true
1
vote
1
answer
176
views
Decode json.loads(log_event) using python web3
Using python 3.11.4, web3 6.9.0
I receive log information via websocket subscription. Below is sample output this omits:
swap_log = {
'removed': False,
'logIndex': '0x8e',
'transactionIndex': …
1
vote
1
answer
875
views
python web3, given only token address, fetch liquidity pool details from pancake swap
Using python 3.10, web3 v5.31.1
Given only the contract address for a single token (tokenA), is there a method from PancakeSwap to return liquidity pool (LP) details?
Mainly given only the address of …
0
votes
1
answer
276
views
Python web3, how to create route bnb -> intermediary -> token dynamically
Using Python 3.10
web3 V 5.31.1
I currently have functional code in python that can buy/sell tokens via PancakeSwapV2 only if they have liquidity pools BNB/token
def buy_token(tkn_addr: str, amount: f …