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.

Filter by
Sorted by
Tagged with
0
votes
2answers
40 views

How can you tell if a mined transaction made permanent changes?

I have set up a private ethereum blockchain and I have defined a new coin. When I send coins from one account to another through the smart contract the transaction is always mined even when the coins ...
1
vote
2answers
45 views

Is it possible to batch transactions together?

In bitcoin-land, it's advised to batch transactions to send them to (a) reduce fees and (b) reduce network congestion. Does the same apply to ethereum land? It seems that the to can be only one ...
0
votes
1answer
496 views

Quorum Account existence on node requirement of Private Transaction

I am trying out private transaction using Quorum. Two quorum nodes N1 and N2 configured to participate in the private transaction. I deployed a contract which is private for N1 and N2. I issue ...
0
votes
1answer
352 views

Why is the units of gasUsed in the transaction receipt 10^11 Wei?

I'm checking the balance of an account after a payable transaction in a Truffle test. Below is my code: // amount is the value supplied to the txn assert.equal(Number(String(currentBalance)), ...
0
votes
0answers
13 views

How to detect ERC20 token amount sent in the incoming transaction?

Using python's web3 is there some method to detect how many tokens were sent? I.e. detect how many ERC20 USDT tokens were sent to my account address?
1
vote
2answers
36 views

How to get transaction status (programatically, not etherscan)?

I have a problem when I interact with an Smart Contract, from a javascript webapp. I can execute the transaction correctly when the status is confirmed, but I cannot get any error response when it ...
2
votes
2answers
60 views

Solidity - Return value of Smart Contract Transact

Why do Solidity transact functions not return any value? Here is an easy example. I tested it in remix and web3. pragma solidity ^0.4.25; contract SimpleStorage { uint public storedData; ...
0
votes
1answer
42 views

Is it possible to insert some custom data in the DATA field of an Ethereum Transaction?

i am working on trying to get some data encoded/inserted into an ethereum transaction. Let me describe my environment first, i am using Web3py, Ganache and Remix IDE. I am able to successfully ...
4
votes
1answer
704 views

Events not being detected in Nethereum

I have a function in one contract that looks like this: //Events event RequestReceived(bytes s); event WorldCreated(bytes32 indexed worldName, address indexed sender, address result ); ...
0
votes
0answers
29 views

Sending ether to a list of accounts in a loop but only the first account receives ether

I'm implementing a betting smart contracts where users can stake on games and if their team won then admin pay all of the winners by calling function payoutWinners() but the problem is when I call the ...
3
votes
1answer
57 views

MetaMask blocks Web3 requests

I just set up a Block Explorer to interact with my private blockchain. The private Blockchain runs in a VM. The host system connects to the Block explorer (also on VM). When I have meta mask ...
19
votes
5answers
37k views

How to know if a transaction went through or not? (out of gas)

Apparently when sending transactions from an Account instead of a Wallet, the gas spent is small (21K), and not enough to send ether to a Contract Wallet (out of gas, so to speak). When this happens, ...
0
votes
1answer
41 views

Web3 - Assign nonce to smart contract transact

I have a smart contract. I want to execute one of its state modifying functions. This is the code: const result = await smartContractObject.methods .addSomething(_valueToAdd) .send( { gas: '...
4
votes
3answers
3k views

How can a transaction fail?

Given that a transaction has A high enough gas limit for the transaction to succeed A high enough gas price for it to be mined No contract calls that throws Is there any way that transaction can ...
0
votes
2answers
1k views

Ether missing after Etherli transaction, Internal Transaction?

I'm new in this world and already have a problem with my ETH, hope someone can help me.. I used the wallet of ether.li but saw another wallet for my phone. So I did a transaction of 2ETH from Etherli ...
0
votes
1answer
26 views

What is the best combination of transactions to send to an Address for a given target amount?

Let's suppose I have 100 unlocked accounts with different balances and I want to have in a target account an amount X. Knowing that I have to make an individual transaction for every account, what ...
2
votes
4answers
605 views

Tracking tokenholders of a token with web3

If I have a token address how can I navigate and find certain things like: tokenholder addresses transactions for the token holders including when they made the transaction I'm new to smart ...
10
votes
4answers
6k views

How to transfer the whole balance of an account?

If I have an account with 5 ETH, can I send the full account balance of 5ETH to another account and have exactly 5ETH received on the second account ? I understood that it will fail because I have no ...
0
votes
3answers
669 views

BlockCypher Send Transaction

I am trying to implement the BlockCypher Ethereum API following the docs here: https://www.blockcypher.com/dev/ethereum/#transaction-api I am using the Test Network /beth/test, rather than /eth/main....
6
votes
1answer
311 views

eth.gasPrice is returning less value than expected

As mentioned in documentation eth.gasPrice returns the current gas price. The gas price is determined by the x latest blocks median gas price. I was relying on this method to estimate current gas ...
0
votes
2answers
63 views

Contract's transaction count in a certain period

I want to determine the number of transactions of a contract in a certain period. My question is that in the transaction receipt, if we want to say that contract A has x number of transactions will ...
0
votes
1answer
242 views

Rinkeby: waiting for transaction to be mined

My transactions (publishing contracts and sending ether) aren't going through on Rinkeby (last several hours). Metamask is listing those txs as failed. I've set my gas price fairly high (100+) with ...
1
vote
1answer
251 views

Locally submitted transactions to the light node gets lost if the node is restarted

What happens to the transactions submitted to light node in the following scenarios? 1) Light node does not have a network connection with its peers.I could find that the transactions are submitted ...
0
votes
1answer
18 views

A way to track latest interactions with the contract?

I need a function which will track latest interactions with my contract on the server side. So let's say something like getRecentTransactions() which will return transaction hashes of interactions ...
0
votes
0answers
9 views

How can I find the block where a user enacted a certain event on a contract?

I'm trying to build a web3.py program to take in a given user's address, and return the amount of ETH traded since they added liquidity to a Uniswap exchange. Uniswap is a smart contract on the ...
0
votes
1answer
20 views

Is cDAI lost forever if it sent to a DAI address on an exchange?

I accidentally deposited cDAI to my coinbase DAI wallet. Is this lost forever? Info - Transaction hash: 0x9fc0cbfeef6d7de1692272b6312d9711b1685641d793ffb48e94229991a6d936 From: ...
0
votes
0answers
21 views

How to debug a mainnet transaction which uses Delegatecall without running a full node?

I need to debug a transaction which was reverted on mainnet. The problem with most Debuggers (including remix), is if there’s a ᴅᴇʟᴇɢᴀᴛᴇᴄᴀʟʟ in that case, they don’t attempt to load the target ...
23
votes
3answers
11k views

Is it possible to cancel a transaction?

Is it possible to cancel a transaction broadcast to the blockchain? Suppose I broadcast a transaction and want to cancel it before it has been mined. Is this possible? This could be useful on ...
0
votes
2answers
22 views

Decrease the time between new blocks in Ethereum Development

I'm trying to create a DAPP (with docker-compose) which will require many transactions, and I am currently experiencing nonce problems with my Transaction Manager. However, I'm not looking for help ...
0
votes
1answer
700 views

MyEthereumWallet got stolen

2000 tenx tokens were stolen from MyEtherWallet after i transferred it. Luckily i didn't transfer everything, i wanted to test it first. I was looking for a safe wallet and decided to go ahead with ...
2
votes
1answer
25 views

Good source for TPS and transaction latency / finality for private Ethereum blockchains

I am looking for a good source / sources to compare TPS and transaction latency (How long it takes to send a transaction until it is mined) for different private blockchain solutions. Especially I am ...
0
votes
2answers
71 views

How can you approve a token through an interface?

I have an interface to Dai from my contract and want to allow a user to approve the contract to transfer their Dai. Dai uses DSToken code which has an approve function that relies on msg.sender: ...
0
votes
2answers
878 views

On mainnet Gas required exceeds allowance or always failing transaction

When I try to deploy contract, the error comes up: gas required exceeds allowance or always failing transaction on mainnet. contract Crowdsale { using SafeMath for uint256; // The token ...
1
vote
1answer
44 views

Method to verify an address nonce within a contract?

Hey I'm looking for a simple way to verify that a certain address has executed x number of transactions? I noticed that this can be accomplished by having them deploy some contract and verifying ...
0
votes
0answers
13 views

Does the use of Non-interactive zero-knowledge proof (zk-snark) will eliminate the use of (consensus algorithm e.g. work proof)?

The privacy of the blockchain transaction is a high-demand topic these days due to some application use case requiring strict privacy protection. Some of the techniques applied to blockchain ...
0
votes
2answers
388 views

Why is my transaction not performing?

I wrote the following script to send Ether. I can't figure out why the balance is still the same after I send out the Ether. I re run this script multiple times but nothing changes with the balance. ...
0
votes
1answer
47 views

How can Contracts sign transactions, when they dont have a private key?

When transactions are made the sender is identified by his signature. But Contracts dont have a private key to sign any transaction or message. So I have some questions: Can a Contract initiate a ...
0
votes
1answer
23 views

ERC20 transfer showing as 0 but log shows different

Checking the transaction https://www.etherchain.org/tx/e12af4940879c634a63d2c9629449695e07650a4e419e5822ddb18d8469e9948 anyone can check there were 3 DigixGold token transfers. These transfers are ...
3
votes
3answers
435 views

Is there a way to broadcast account addresses to other nodes in a private blockchain?

I am running a private blockchain and have a couple of geth nodes which are connected. I have multiple accounts on both the nodes. From node 1, through the admin.peers command, I can get the enode URL ...
0
votes
2answers
75 views

Solidity: uint parameter not being set properly

Testing my contract locally with truffle. I have a function with the signature: function purchase(address buyer, address seller, bytes16 bookId, uint tokens) public onlyOwner returns(bool success) ...
0
votes
1answer
35 views

i want to get data from the transaction hash i tried many codes at last i am getting boxes in the output

1) First, I got the input console.log(web3.eth.getTransaction('0x725fc75264726f409793164e336e7d5ed35df8d2be469a0cc1a3a8cc4756b9b9').then((i) => console.log(i) )); 2) I manually pasted the input ...
18
votes
1answer
13k views

What is the difference between `now` and `block.timestamp`?

My main goal is to obtain time spent between two transaction calls inside my smart-contract. I am not sure, should I depend on now or block.timestamp to obtain the most accurate time difference in ...
1
vote
3answers
36 views

How to reset transactions? I can't move funds

I tried some transactions and they are still unfinished. I started them on the 22nd of may and since then it has been a nightmare. I could only succeed doing 1 transaction but now I can't do more. ...
0
votes
1answer
440 views

Web3j decode function from TransactionReceipt

I'm connecting to a testnet using a Geth node running version 1.8.8-stable, and also I'm using the web3j lib version 3.4.0. I deployed a Smart Contract and also used the web3j wrapper tools to ...
0
votes
1answer
25 views

ERC20 - Approve & TransferFrom not working

The getTokenBalance function seems to retrieve data from the ERC20 contract just fine so I don't think there is an issue with how I'm using the interface. Additionally, I also tested out separating ...
1
vote
2answers
39 views

Can anybody Point out the Difference between Web3.eth.sendTransaction and web3.eth.signTransaction?

Do we need to sign the transaction by web3.eth.signTransaction after initiating transaction via web3.eth.sendTransaction. for example: when I do: web3.eth.sendTransaction({ from: accs[0], ...
0
votes
3answers
105 views

how to store some private data on ethereum blockchain?

The idea is to create decentralized system that stores network data privately with random algorithm on the blockchain . This means only smart contract have access to view data and encrypt it ...
16
votes
6answers
29k views

Insufficient funds for gas * price + value

Sending Address has over 1 Eth in current Balance. Using the Geth console, I can send many transactions of any amount less than .033 eth.sendTransaction({to:'...
1
vote
2answers
77 views

Transactions of ether between contracts

I am trying to figure out how transactions between contracts work and what you can and cannot do. I want to have a contract that makes some logical decision about who to pay when poked by another ...
0
votes
1answer
29 views

Combined transactions executed together?

If I'm correct the nonce is responsible for the order transactions are executed. Let assume you have two transactions T1 & T2. T1 depends on T2. So I want to have an order T1 then T2. This is done ...