Questions tagged [transactions]
The term "transaction" is used in Ethereum to refer to the signed data package that stores a message to be sent from an externally owned account.
2,900
questions
0
votes
0
answers
11
views
How to get and decode logs of all transactions of a block in web3?
How to get and decode logs of all transactions of a block in web3?
My question is very similar to:
Is there a way to get the logs for all transactions in a block?
But the suggestions were given using ...
0
votes
0
answers
14
views
Explain Validate Transaction Proof Method Parameters
This is url of a transaction on bscscan.
I want to simulate this transaction with web3.py. In "Input Data", I don't understand value "...
0
votes
2
answers
17
views
on etherscan Why input Data amount value and ERC-20 tokens Transferred value are different
In this case
https://etherscan.io/tx/0x9412e437f29fa5719de54c5374f0a89fbe78786060db05b2cb9a5ffb189e04d8
Why input Data amount value and ERC-20 tokens Transferred value are different?
1
vote
0
answers
11
views
abi-decoder's decodeMethod returns undefined
I am trying to decode the input field of this transaction as below,
const decodedInput = abiDecoder.decodeMethod(transaction.input);
but decodedInput returns undefined despite the my ABI having the ...
0
votes
0
answers
11
views
Swap and Pop method solidty
Should I use swap and pop method in solidity, is there a chance of intercepting between these two events.(somebody adds an element after the swap is made, but before deletion)
uint lastIndex = array[...
0
votes
1
answer
36
views
How to find owner of contract deployer on etherscan website
https://etherscan.io/address/0x6cfa7561bbf940ab4b5c0507d4c9e45c68552b1b
On the Etherscan website, where or how do i navigate to the deployer wallet of this contract? Apparently if i look closely at ...
0
votes
0
answers
9
views
Do Balancer swaps only update the state of the Vault?
I'm trying to understand the Balancer v2 architecture.
When a swap occurs in a given pool_id, does this only result in updating the state of the Vault, and pool contracts themselves are just constant ...
0
votes
2
answers
31
views
Help. I accident sent ETH to the Contract
Total noob here.
Yesterday I attempted to transfer some ETH from Binance to my Trust Wallet. It says the transaction has been completed but I’ve not received the coins.
I believe I may have sent the ...
1
vote
1
answer
43
views
How to get internal transactions using JSON-RPC methods
In etherscan I noticed that there are transactions that have "internal transactions" inside of them, see this link: etherscan transaction.
Screenshot of the transaction:
My question is: how ...
0
votes
1
answer
21
views
How to detect if a transaction failed before Byzantium fork [duplicate]
In short:
I'd love to understand how to detect if a transaction failed before the Byzantium fork.
Explanation:
After the Byzantium fork it's easy to understand if a transaction failed or not, I just ...
0
votes
0
answers
34
views
error the second time I try to Mint: "execution reverted: ERC20: transfer amount exceeds allowance"
I've a problem trying to mint a token in a custom smart-contract.
I'm using Nextjs and Wagmi to read/write to the contract
const { data, writeAsync: approve } = useErc20Write("approve", [
...
0
votes
1
answer
29
views
Wrapping ETH into WETH via ethers -- WETH coins on my balance won't appear
I'm attempting to wrap ETH on Goerli into WETH by calling deposit function using ethers. Even though several TX already have been confirmed and successfully mined, nothing will appear on my WETH ...
0
votes
0
answers
8
views
How can I determine the rule TXs are sorted in a block?
Let's say I have a list of TXs in a block
https://etherscan.io/txs?block=17251778
What is the logic TXs are sorted?
I have read some posts but not sure if those are relevant to PoS and some latest ...
1
vote
0
answers
11
views
IP host management in truffle_config.js (Private Ethereum Network)
I have 3 Amazon Ec2 instances (each with a Geth node running on them) and I'm running over them my Private Geth Ethereum (PoA) blokchain and I wanted to ask if it was necessary to specify the IPs of ...
1
vote
1
answer
34
views
How to deal with 'transaction replaced" error? Is there a way to force a non-replaceable tx sending?
I'm having a bit of a headache trying to understand how to fix the 'transaction replaced' error when using ethers-js. I use await tx.wait(). I even use sleep for at least 10 seconds between ...
0
votes
0
answers
12
views
A moment when an incoming TX has been complitely settled and the coins may be sent out?
I have 2 wallets.
I want to send coins from one to the other (1), and from the 2nd one to an external wallet (2).
const wallet = get_wallet();
const balance = await provider.getBalance(wallet.address);...
0
votes
0
answers
8
views
Do i need to send eth to a cold wallet that has a balance of 75k in order to transfer to bank account
A recovery company claims that they recovered stolen funds from GMT and in process of recovery to clients, I did lose to GMT , but did not engage the company, they called me and advised that I have ...
1
vote
1
answer
50
views
I sent pepe from MetaMask to crypto.com
I sent pepe coin from my MetaMask address to my crypto.com eth address it’s showing as completed but the it’s not showing this on my balance or can’t see it. Yet on ethascan it’s showing as a token? ...
0
votes
1
answer
20
views
Sent ETH to wrong address
I sent my ETH to this account: 0x11348A2b2bfCbc698d81b7eCA4914f05B21A6Fd3
From my account at: 0x5aD5b7B9AE09EeCd247ae5Bc4ca4A5950D33f716
It's still in this account as I can see it when I go to ...
0
votes
1
answer
14
views
Are inner transactions faster to execute than normal or (outer) transactions?
I googled this online, however, I can seem to find an answer for it. I would appreciate it if anybody can answer this. Thanks
0
votes
0
answers
9
views
Called contract function via txn builder; no transaction shows up on Etherscan at that contract address, but Events do. Did I call it successfully?
I used a Safe on Arbitrum ("Safe") to call the release function on a contract ("contract") via the transaction builder.
I think I did this successfully, but it doesn't show up on-...
0
votes
1
answer
427
views
I swapped Pepe coin for eth on my trust wallet and can't find the eth in my wallet. Please help 🙏
Hey guys can you please help me?
I swapped my Pepe coins for Eth on my trust wallet and can't find the eth yet.
Transaction hx:
0x613716e77ff08fc9e17084a7aa1a55e156ea65ff08c907e097e2680bfcbaeeb2
0
votes
1
answer
118
views
Wagmi useContractWrite, add Arguments to pass to function
Hey im trying to use wagmi to write this function to a smart contract inside my application, it’s for purchasing tickets and is a payable Function: buyEntry(uint256 _raffleId,uint256 _id,address ...
1
vote
2
answers
44
views
Can I determine balance change of a swap via receipt data?
tl;dr: If I execute a swap transaction between two tokens (native or ERC-20 on either side) that is subject to fees/slippage, is there a deterministic way to tell how much the user received from that ...
0
votes
1
answer
18
views
How can I see the history of an ERC1155 token on-chain?
Let's say I have 10 tokens of a specific token id within an ERC1155 smart contract.
If I send 1 of those tokens to another address and then this address send it elsewhere, is there a way I can see the ...
0
votes
0
answers
24
views
replacement transaction underpriced while deploying
I am attempting to deploy a contract to an address that I generated. I use
https://sepolia.infura.io/v3/
as my test net. This is my code.
package main
import (
"context"
"...
0
votes
0
answers
13
views
Is it possible to transfer Native-eth from wallet A to wallet B and transfer some erc20 token from wallet B to Wallet A in a single transaction?
Is it possible to transfer Native-eth from wallet A to wallet B and transfer some erc20 token from wallet B to Wallet A in a single transaction? Because Wallet B has zero native-eth and some some ...
3
votes
0
answers
13
views
Is there a library to sign transactions using a cold wallet?
I have a Ledger Nano S I want to use for signing transactions on a server. Is it possible to use a library to do this every time without the need of someone manipulating the hardware wallet but ...
0
votes
1
answer
23
views
how blockchain verify private keys, I am sure nodes does not store private key, so how private key is validated?
it's the doubts lie in the very core concept, but I wanna know how the nodes know that the private+public key is right.
1
vote
1
answer
24
views
Is it possible to integrate GSN OpenGSN v2 meta-transactions into Gnosis Safe smart contracts?
Is it possible to integrate OpenGSN v2 into Gnosis Safe smart contracts?
I want to create functionality to create safes and pay fees for user transactions with GSN relayer. The internal approach of ...
0
votes
1
answer
20
views
Why Remix keeps giving "The requested account and/or method has not been authorized by the user" error?
I keep getting this error but, after a while, the transaction works. Is there any problem with Remix?
1
vote
0
answers
30
views
Can I use a BLS12-381 private key to sign Ethereum transactions?
I'm new to cryptography and I've recently been studying BLS signatures. Please forgive me if I make any mistakes while writing.
I've tried generating a BLS key pair and using the private key to derive ...
1
vote
1
answer
22
views
How to determine on-chain from which type of wallet (e.g. Metamask or Ledger etc.) a transaction was sent?
I saw the twitter post below, where it is claimed that it is "easily discernible" if a transaction was sent by Metamask. And it does not refer to transactions from years ago, but from a fews ...
0
votes
0
answers
9
views
I am building a BSC list generator where I connect to the blockchain to read all wallets and determine the amount of transactions in that wallet
I have done the research and can't find any method which checks the entire blockchain or a specified amount of wallets to check the transaction numbers of that wallet to spit into a list. Can anyone ...
0
votes
0
answers
31
views
Error: "code":-32000,"message":"insufficient funds for gas * price + value" publishing raw transaction in hex format
Hey guys sorry to bother, I'm trying to make an eip1559 transaction in raw format of hex
I'm making the transaction list as described:
transactionObjectList=[chainID=5(goerli),nonce,...
2
votes
0
answers
34
views
Safely and simply withdraw all the balance of ETH from a wallet
I'll have a large of wallets, potentially, from which I'll be needing to withdraw ETH, and tokens, from time to time to the central, admin wallet. By a script, once a week.
Instead of having to ...
1
vote
0
answers
9
views
Safely and simply withdraw all the balance of ETH from a wallet [duplicate]
I'll have a large of wallets, potentially, from which I'll be needing to withdraw ETH, and tokens, from time to time to the central, admin wallet. By a script, once a week.
Instead of having to ...
1
vote
1
answer
37
views
Unable to Mint NFT: Transaction Reverted by EVM
I am trying to mint an NFT using a contract deployed on the Ethereum network. I have written a JavaScript code mint-nft.js, that uses the @alch/alchemy-web3 library to interact with the contract. ...
1
vote
1
answer
50
views
How to transfer the whole balance of ERC20 token?
At the moment I have this code:
//............
const contract = new ethers.Contract(smartContractAddress, ERC20_ABI, provider);
const signer = new ethers.Wallet(prKey, provider);
const txSigner = ...
2
votes
1
answer
60
views
Web3Py 'TRANSFER_FROM_FAILED' error when executing a swap even if tokens spending have been approved
I tried to execute a swap using Web3py with the following function:
def swap(node, account_address, pvt_key, contract_address, contract_abi, action_type, amount_in, amount_out_min):
#load USDC and ...
1
vote
1
answer
29
views
Authenticity and integrity verification of a transaction
This is my understanding so far of the digital signing process that occurs in a blockchain:
To digitally sign a transaction, a user needs to have a private key and a corresponding public key generated ...
2
votes
1
answer
131
views
Transfer ERC20 Tokens (USDT) from a Hacked Wallet, send gas fees and transfer tokens in 1 transaction
My wallet got compromised and I have an ERC20 USDT, so the attack on my wallet is that any ETH that enters my wallet automatically gets transferred out the next second without my notice.
So I can't ...
3
votes
1
answer
150
views
zkSync-Era Paymaster, trying to access the contract method that is being called
Here is a basic example, where I'm calling a method on myContract and using a Paymaster:
await myContract.myMethod(
myArgs,
{
customData: {
paymasterParams: paymasterParams,
...
1
vote
1
answer
55
views
What's the difference between gasPrice and effectiveGasPrice?
I have found that there are two columns in rpc calls.
For getting transaction eth_getTransactionByHash
gasPrice: QUANTITY - gas price provided by the sender in Wei.
For getting transaction receipt ...
1
vote
1
answer
123
views
Fatal: Error starting protocol stack: listen tcp 127.0.0.1:8545: bind: Only one usage of each socket address (protocol/network address/port)
I have this error when i try tu run my second node on Geth...I used authrpc.port but still the problem persists:
I ran my node1 with these commands:
geth --datadir node1 --networkid 2244 --allow-...
2
votes
2
answers
392
views
How to find out when pending transactions go through? Ideally I'd be alerted
How do I know when transactions are either successfully mined or still sitting in the mempool? I don't want to just overbid on gas to get my transaction to get mined faster / more instantly from the ...
1
vote
3
answers
169
views
send a signed transaction of wallet A using wallet B (to pay for the gas)
I have multiple wallet created in my nodejs app.
i can successfully send transactions from one and consolidate all funds.
my problem is when a wallet only have an ERC20 token in it and doesnt have ETH ...
0
votes
0
answers
13
views
How to store temporary state change without committing to block?
I want your suggestion..
I want to inject (using python for e.g.) a transactions every 10 seconds.
function makeTransaction (uint _value)
I am externally interacting with the contract...
...
0
votes
1
answer
25
views
How To Do Bulk Transaction with USDC(AVAX)
I am trying to make a bulk transaction using USDC (AVAX). I saw that it was recommended to use transaction builder. But the directions to use it was unclear to me. i was hoping that someone could help ...
0
votes
0
answers
13
views
Transaction order in the block, reordering the block [duplicate]
I've been wondering about the ways that transactions are ordered in the block. In my previous questions I got an answer that mostly its the gas settings. So as I was checking today's blocks I stumbled ...