Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

After sending a transaction to a payable smart contract (deployed to a geth instance) I receive transaction status 0. I don't understand where I'm going wrong as I followed the documentation. Looking ...
ultra_silence's user avatar
0 votes
0 answers
67 views

I am trying to swap some cake2 token to tbnb using swapExactTokensForTokens function in web3py as following: pancakeswap2_txn = pancake_router_contract.functions.swapExactTokensForTokens( web3....
user9805040's user avatar
0 votes
0 answers
58 views

I am trying to use swapExactETHForTokens function using pancake router v2 and here is my code: #!/usr/bin/env python3 import time from web3 import Web3 bsc = "https://data-seed-prebsc-1-s1....
user9805040's user avatar
0 votes
1 answer
191 views

Problem Description: I'm trying to authenticate with Four.meme using their wallet-based authentication system, but I keep receiving a "Signature for this request is not valid" error. I've ...
Baran Bingöl's user avatar
1 vote
0 answers
87 views

I've create a python script to output the raffles from the Solana NFT raffle site https://rafffle.famousfoxes.com/ import asyncio import json from anchorpy import Provider, Program, Idl from solana....
Valdz's user avatar
  • 11
0 votes
1 answer
266 views

Recently I've been having some trouble with the X-Flashbots-Signature header when sending a request to the flashbots endpoint. My python code looks like this: import requests import json import ...
Gianna's user avatar
  • 1
0 votes
1 answer
128 views

Python: How to check a Solana transaction and sanitize the transaction ID I have written a script to fetch transaction details from the Solana blockchain using the solana-py library. It includes ...
Abhinav Sharma's user avatar
1 vote
1 answer
73 views

I'm trying to write a service using python and web3.py to execute a "buy" transaction on a Base smart contract. I can't figure out why my buy transactions aren't working from my code but ...
degenTy's user avatar
  • 360
0 votes
1 answer
222 views

I’m working on an Ethereum project that connects to the Sepolia network using Infura's WebSocket endpoint (wss://sepolia.infura.io/ws/v3/<PROJECT_ID>). While the connection works fine in Postman,...
seddouguim's user avatar
0 votes
2 answers
267 views

I am trying to sign a raw message, like "Hello World", using the Python library bitcoinlib. The goal is to generate a base64-encoded signature for the message that can be verified. However, ...
Sorry_my_code_is_dumb's user avatar
1 vote
2 answers
1k views

` from web3 import Web3 import os import time from dotenv import load_dotenv # Load environment variables load_dotenv() # Define RPC URLs for different networks RPC_URLS = { "ethereum":...
george wale's user avatar
1 vote
0 answers
40 views

ImportError: Cannot Import 'solcx' - Library Not Found I'm facing persistent issues importing the solcx library in my Python script, and I'm receiving an error indicating that the library is not found ...
Muhammad Fahad's user avatar
1 vote
1 answer
238 views

I need to call a function of an implementation contract. The problem is I'm not the creator of the contract and it's source code hasn't been verified on ethersan, hence I don't have the ABI. I ...
Samuel Alibien's user avatar
0 votes
1 answer
123 views

I encountered an issue and need help. I want a simple Python script that accepts a transaction hash and prints detailed information for transactions on the BSC blockchain. This includes the ...
Muluken M's user avatar
0 votes
2 answers
852 views

The following code is related to Ethereum network logs, which I am trying to extract with qouick node api. My code was working until a few days ago, but today when I visited it, I encountered this ...
Ta-enta's user avatar
0 votes
1 answer
129 views

I'm testing web3.py trying to send eth from one account to another using "send_raw_transaction" method. I'm using Ganache for testing purposes. Acutally, I'm just following the steps ...
zlbr's user avatar
  • 11
-1 votes
1 answer
82 views

I'm trying to execute "transfer" function of an ERC-20 token with my ESP8266 Microcontroller using Micropython. The problem is Micropython doesn't have libraries like web3.py so i have to ...
Harsh Sharma's user avatar
0 votes
1 answer
149 views

Introduction I have a list of wallets and I want to ensure that a contract function is called only once. To achieve this, I iterate through the wallets, check if each wallet has already called that ...
Juan Antonio Tubío's user avatar
0 votes
1 answer
91 views

async_w3 = AsyncWeb3(AsyncWeb3.AsyncHTTPProvider(rpc)) async_contract = async_w3.eth.contract(address=ADDRESS, abi=ENV.TOKEN_ABI) async_contract.events.Transfer().create_filter(fromBlock=crawl_block-...
Ar Arefin's user avatar
0 votes
1 answer
962 views

I have been trying to create a program in python to analyze my Pnl of trades subcategorized by wallets that I am copy trading on Raydium. I have tried out two code bases so far and the first returns 0 ...
Andrew McCann's user avatar
1 vote
0 answers
132 views

I am correctly grabbing the ABI as I have confirmed it is the same on etherscan. I am also getting the transaction[input].hex() correctly which displays the hex of the input I am trying to decode. Can ...
xampL's user avatar
  • 29
0 votes
1 answer
867 views

I have a transaction in which I know the hash of. It was a swap to sell a token using Uniswap. I am trying to find the amount the wallet received in ETH within the transaction object. To my knowledge, ...
xampL's user avatar
  • 29
0 votes
0 answers
143 views

I need to execute and call http JSON-RPC ethereum node to get results without web3py or web3js. How to do that? I have read there is eth_call method, but I didn't find any examples with ABI how to use....
sirjay's user avatar
  • 1,770
0 votes
1 answer
110 views

import requests from web3 import Web3 from eth_abi import decode def get_transaction_input_data(tx_hash): apikey = "xxx" url = f"https://api.bscscan.com/api?module=proxy&...
jdoe's user avatar
  • 79
0 votes
1 answer
225 views

Here is transaction https://etherscan.io/tx/0x6465187a7bb43a6db42ee63e5f5cc30fb094393957a7f1ce6c08b5afddf3e0bc I don't know why my script can not find ABI Transfer() function after decoded on ...
sirjay's user avatar
  • 1,770
1 vote
0 answers
116 views

Web3 Contract Deployment Error - Execution Reverted I am encountering an issue while deploying a smart contract using Web3. The deployment process triggers an error leading to contract execution being ...
abhishek kale's user avatar
-1 votes
1 answer
247 views

Is it possible to download the full version of the Ethereum blockchain for the last 30 days? I'm interested in accessing logs of all transactions during this period. If direct download isn't viable, ...
Владислав Сизов's user avatar
1 vote
0 answers
91 views

I am looking at a transaction's data: Swap (index_topic_1 address sender, index_topic_2 address recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) and the ...
baba's user avatar
  • 46
1 vote
0 answers
643 views

I'm using web3.py to parse through all liquidity pools created since block 0 on Uniswap V3 Arbitrum. Atm, about 486 different pools a returned, but none of them are pool I'm expecting. Is there some ...
juju's user avatar
  • 994
1 vote
1 answer
499 views

Please help me, this method works well in Binance Smart Chain, but not in Arbitrum. func (bn *BlockManager) getTrxByBlockNumber() *types.Transactions { op := "decoder.tx....
Maksim Smolovsky's user avatar
0 votes
0 answers
347 views

I'm trying to receive pending transactions from the eth mempool, for which I use a wss connection to the node. The problem is that when normally receiving messages from the node, no errors occur and ...
404's user avatar
  • 1
1 vote
0 answers
73 views

I'm trying to calculate the memory positions of a smart contract which uses the Diamond pattern so I can use w3.getStorageAt, but I'm having some issues with finding the correct positions. This is my ...
Kyranstar's user avatar
  • 1,720
0 votes
1 answer
53 views

I have a smart contract deployed (Setup.sol), and it imports another smart contract "Model.sol" which has some functions that I need to call. Now, I only have contract address of the ...
Divyansh's user avatar
2 votes
1 answer
1k views

How should I pass the following arguments to sendOFT function in This smart smart contract using python web3.py and block explorer? Here are the data types: I get an error when I pass elements like ...
Mazyar Daryaee's user avatar
1 vote
1 answer
3k views

I have been receiving this error how do I solve it AttributeError: 'Web3' object has no attribute 'fromWei' I have tried toWei and plenty of other stuffs but nothing seem to work what do I do I really ...
David Joseph's user avatar
1 vote
1 answer
749 views

def register(update: Update, context: CallbackContext): """Register the user and generate a ETH address.""" user_id = update.message.from_user.id if update....
learning's user avatar
0 votes
1 answer
73 views

# scripts/creation.py import discord from discord.ext import commands from role_selection import RoleSelectionView from data import load_embed, save_data class Creation(commands.Cog): def ...
RuffBuff's user avatar
0 votes
1 answer
81 views

I've already installed and created metamask accounts and signed in on my browser chrome. I'm trying to list those accounts following ChatGPT tutorial to connect a HTTPProvider, then call function eth....
vaiwcern's user avatar
1 vote
0 answers
123 views

I am in the process of familiarizing myself with Uniswap v3, albeit with limited success thus far. I am attempting to obtain a quote by invoking the function: quoteExactInput(pathBytes, ...
MaTok's user avatar
  • 401
1 vote
0 answers
79 views

hope someone can help me. i want to read the nonce (transaction count) and balance for a polygon wallet with web3 package 6.10 and phyton 3.11. get_transaction_count isnt working but the other simple ...
Marcel's user avatar
  • 37
1 vote
1 answer
287 views

My application manages sales with local payment methods and Ethereum/Bitcoin. When using crypto payments a QR Code will be displayed for the customer, with the wallet's address and amount. The issue I'...
andrepz's user avatar
  • 481
-1 votes
2 answers
798 views

I am trying to construct the raw transaction data based on a signed EIP-1559 transaction according to the EIP-1559 spec. However, it is not matching the value returned by web3py when signing a ...
user22244332's user avatar
0 votes
1 answer
678 views

I am currently trying to fetch new users that register on Friend.tech. I do that by looking at every buyShares transaction with the buy value = 0 as new accounts are "free" for the first one ...
David Zechner's user avatar
1 vote
2 answers
631 views

Wondering if anyone knows how I can send the max amount of ether or my entire eth balance through web3.py? here the chunk of code that ive been kind of working with. In 'value' I can only send an ...
RFM's user avatar
  • 11
1 vote
2 answers
4k views

I'm trying to use Python to make multiple swaps in one transaction on Uniswap (swaping ETH against the token). I successfully wrote a Python function that does just that, using swapExactETHForTokens ...
Symbiose's user avatar
-1 votes
2 answers
369 views

I have this code in Python from web3 import Web3 from lxml import html import requests import random from colorama import Fore, Style from hdwallet import HDWallet from hdwallet.symbols import ETH as ...
Alaa Shishani's user avatar
-2 votes
1 answer
141 views

I am using web3.py and ganache to tranfer Ether between two account. In the tutorial that I'm learning from a part of code is like below: nonce=wb3.eth.get_transaction_count(account_1) tx={ 'nonce'...
pedram irany's user avatar
0 votes
0 answers
77 views

def listenForTokens(lastRunTime): try: event_filter = contract.events.PairCreated.createFilter(fromBlock='latest') except: print("Error skipped") pass ...
James McKillan's user avatar
0 votes
2 answers
676 views

I am trying to use Web3 library in colab.research.google.com/ using the following code from web3 import Web3 after I installed it using the following code !pip install web3 but I am getting the error ...
Mohamed Rahouma's user avatar
2 votes
0 answers
56 views

I can't execute the transaction, I get the error 'Fail with error 'hasFee'' Code: client.py import logging import traceback from eth_account.signers.local import LocalAccount from web3 import Web3 ...
san1rope's user avatar

1
2 3 4 5
12