Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

44
votes
8answers
21k views

How to get contract internal transactions

I'd like to get the contract internal transactions like: https://etherscan.io/address/0xd654bdd32fc99471455e86c2e7f7d7b6437e9179#internaltx I'm using web3 API. Is there any way to do it? Where do ...
0
votes
1answer
116 views

How do I start to write a function to debug Transaction?

I want to write a program that will do: for the given txhash debug TraceTransaction and return that What can i do in Go ? Do you have any materials, a tutorial or can you give me tips on how to ...
2
votes
1answer
137 views

Invalid transaction signature on sending transaction

Hello guys I'm having a "Invalid transaction signature." error. Can't get pass this one. Am I missing something? client, err := ethclient.Dial("path/to/geth.ipc") if err != nil { return err } ks :...
1
vote
1answer
106 views

How to simulate multiple consecutive transactions and get the resulting state?

I'm trying to simulate a transaction on the public blockchain that invokes a contract's method with certain parameters. Then I want to make a follow-up transaction with some other method call. I ...
0
votes
1answer
387 views

Creating a transaction from a webform - invalid number of args

I have a HTML web page where I am feeding user entries into a smart contract that is designed to "store" the entries in transactions. I have most of the application working, but I'm having trouble ...
0
votes
1answer
92 views

Ethereum mempool transaction of Uncle and Fork nodes

In the Bitcoin network when a fork happens, the block transactions from the shortest chain are reinserted again into the mempool. In Ethereum instead we have Uncle blocks and Fork blocks. What ...
2
votes
1answer
86 views

Exchange messages between two clients of Dapp without spending gas?

Let's say that I want to build a Dapp such that users can exchange messages between each other. I guess you can consider it a chat Dapp. Is there any way for the two users to find the "address" of ...
2
votes
1answer
87 views

Watching the transaction of an external account using smart contract

Is their any way to execute a function of smart contract whenever a transaction to a predefined external account occurs? I mean if someone transfers some ethers to account A, a function of a smart ...
0
votes
1answer
27 views

How to get notification right after account has received eth by geth?

My server stores many accounts. How do i know when and what account has received eth or i have to check them manually one by one by looping many address to check the balance? account := common....
1
vote
0answers
18 views

Why after managing to deploy contract to POA Ethereum blockchain I can't interact with it?

We are using a private ETH proof of authority blockchain. In order to deploy a contract I'm using 0 gas price and it deployed immediately. Then, Tried to deploy many types of contracts with ...
6
votes
1answer
288 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 ...
1
vote
1answer
122 views

Ropsten rejects my sendSignedTransaction function

This is my code: contractNoEvents.methods.myMethod().call(function(err,foo){ if (foo.length > n) { contractNoEvents.methods.myOtherMethod().call(async function(er, bar)...
1
vote
1answer
18 views

I've given Gwei less than 0.1 for a transaction, and it's been an hour, and it is not showing up in etherscan!

I know I pretty much messed up with Gwei, I've given it < 0.1. My doubt is if the transaction gets failed will the funds get back to my wallet or lost forever and how much time will it take for the ...
2
votes
1answer
201 views

Do all Ethereum addresses have a specific format?

I know all ethereum addresses start with 0x, but is there a common letter/number after the 0x to represent an address? Because I get confused on how to tell if its an Eth address or if its a ...
16
votes
3answers
3k views

What is the default ordering of transactions during mining, in e.g. geth?

I know that the yellow paper does not specify how transactions are to be ordered in a block and this is up to the miner to decide. But I am interested in how this is practically handled (I assume not ...
4
votes
1answer
25 views

Timestamp in Ethereum

I have a smart contract where the user inputs temperature readings, I'd like to add a time stamp to relate those reading with a current time of submission. I understand that in Ethereum we only have ...
1
vote
1answer
366 views

How to send data to smart contract?

I have the variable w1_temp, which i need to send to contract I have the following code: var W1Temp = require('w1temp') var Web3 = require('web3') var web3 = new Web3() web3.setProvider(new web3....
1
vote
1answer
28 views

Dates of ERC20 tokens transactions

I'm an individual who is interested to ICOs which are selling ERC20 tokens. My question is related to an issue that, for most of the ERC20 tokens, the dates of transactions do not fall within the ICO ...
-3
votes
0answers
27 views

The token has been sent to an address other than the requested withdrawal address [closed]

wallet address : 0x7d43F7ee7F9cEFdb0c85604008c74ADdB08cba16 We requested www coins to be withdrawn from the account and the transaction was checked because the account was not entered. txid : ...
0
votes
1answer
141 views

I have trouble finding tx hash

From 0x74e442b7ee73634cb55ce8d96d5ffa2b7a2f73ce To 0x9BC98204e90F3c5b827D5f097808A765D8EE1121 Amount 0.01 Please help me to find tx hash.
11
votes
6answers
23k views

How to get transactions by account using web3 js?

I'm sure this question was asked before, but I did not find any result that helped my problem. How can I get the transactions (in and out) for a given account? I use nodejs and web3? With this line ...
0
votes
2answers
400 views

Do Etherscan stores all the events and transaction history?

To get the history of a transactions for an account, we have to traverse the whole chain everytime, but etherscan provides the entire history of all the accounts instantly. Similarly it does the same ...
0
votes
1answer
124 views

Unable to send ether to account

I am trying to send ehter using this code web3.eth.accounts.wallet.add(privateKey); web3.eth.sendTransaction({ to:someAddress, from:onwer, value:amount*1, ...
0
votes
1answer
14 views

Is there any way to hide or encryt input data that sent to smartcontract? [duplicate]

After a While working with ethereum, I felt ethereum is not only public and also naked because whatever input data that we sent to contract function, it is visible to everyone when looked into the ...
1
vote
3answers
536 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 ...
3
votes
1answer
183 views

Create Accounts Using Web3.js in Browser

TL;DR - Replicated Ethereum Blockchain. Running Local Node. Connecting Local Node to Web3.js in browser using RPC. Want to create addresses & send transactions Details - I have a blockchain that ...
1
vote
1answer
115 views

Is there an explorer like Etherscan for Remix JS VM sandbox blockchain

I created a contract and did some transactions. I would like to explore the transactions in the sandbox blockchain in my brower (Chrome). But the tx hash is not found in the REMIX VM Debugger http://...
0
votes
1answer
20 views

How to calculate average gas price of several blocks?

I want to calculate average gas price of several blocks (in Gwei), however I don't see how a field on blocks for gasPrice. Do I have to calculate it by grabbing the gasPrice of each transaction in ...
7
votes
1answer
831 views

getBlock('pending').transactions vs txpool.status.pending?

I logged both getBlock('pending').transactions.length and txpool.status.pending while the Aragon ICO was ongoing. I'm interested in seeing transactions as they are coming to my node. The two graphs ...
0
votes
1answer
19 views

How expensive is it to manipulate the gas price?

Imagine that an evil billionaire decided to make Ethereum hard to use by making the gas very high. I'm wondering how expensive this would be to do for various timescales. For example, manipulating ...
0
votes
1answer
18 views

Smart contracts: is every public function payable?

I am aware of the payable annotation on the public methods. But just want to make things more clear: is every public function payable? Even without the payable annotation? what would happen if a ...
0
votes
0answers
12 views

How to get list of pending transactions for particular address on JavaScript using public API?

I'm building web-wallet on javascript, and I want to show not only available balance, but also pending amount. From web3js v1.xx documentation I've learned that I can do web3.eth.subscribe('...
0
votes
1answer
153 views

Using the Parity or Geth light client, how can I monitor an address for transactions?

I'd like to use Parity or Geth, in light client mode, to monitor an address for transactions. Essentially, I should be able to check each block for transactions involving a certain address. In the ...
1
vote
1answer
189 views

Why doesn't my contract call create a new transaction in my ganache transaction section?

goes easy on me because I'm quite new to all of this stuff. So I've created a function which signs my transaction using web3js library and looks like this: signTx = async () => { const { ...
0
votes
1answer
30 views

getTransactionCount return different response

geth version 1.8.27 The pending nonce is 8 at first, then I send a transaction and use eth.getTransactionCount to get the next pending nonce. > eth.getTransactionCount("...
3
votes
2answers
437 views

Cannot send transactions with MetaMask Chrome plugin

I am trying to send an ETH transaction with the MetaMask Chrome addon, and have done so successfully in the past. However now, there is no "Send" button visible in the window, as shown in the image. I ...
2
votes
2answers
1k views

How to get transaction failed reason with transaction hash with web3?

I'm trying to get transaction failed reason with transaction hash with web3? I have checked getTransactionReceipt() method { blockHash: '...
0
votes
1answer
122 views

BlockCypher Account nonce too far behind transaction

I'm currently working on a DApp that involves sending transactions. I'm using BlockCypher to send the transactions since the API is fairly straight forward. One issue I'm finding is that when I run my ...
1
vote
1answer
230 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 ...
1
vote
2answers
135 views

Contract variable changes prediction

I believe this is a very simple question, but i couldn't find a direct answer in documentation or google. I'm new to solidity/ethereum and maybe i don't fully understand some core concepts yet. So, ...
0
votes
1answer
197 views

How does Quorum or any private ethereum deal with failing/unavailable nodes, Single Point of Failure (SPOF) and Settlement/Transaction finality?

How does Quorum or private ethereum deal with failing/unavailable nodes, Single Point of Failure (SPOF) and Settlement/Transaction finality? It seems to me that only ethereum main net is truly ...
0
votes
1answer
187 views

Capping gas price with geth

Is there anyway to set a maximum gas price for sending any transaction with any account? I know I could hard code this in, but wondering if this is fortunately built in?
0
votes
2answers
464 views

Transfer contract to address or adress to address

Good night, can anyone write an example contract that does ether transfer from contract to address? Or preferably from address to address, but within the contract? I have this: function () payable {...
0
votes
1answer
194 views

ERC20 transferFrom function results in “Error: gas required exceeds allowance or always failing transaction ”

I'm trying to learn my way around ERC20 tokens and upon attempting to create a lottery contract for an erc20 token the transferFrom function always spawns an error, specifically "Error: gas required ...
1
vote
1answer
73 views

transfer ERC20 Tokens by web3

I'm a beginner of ethereum. I have seen some solutions. I can use sendRawTransaction to transfer costumed tokens from one account to another account. But my boss asked me to use ERC-20 "transfer" ...
0
votes
1answer
141 views

How to track incoming to smart contract transactions using web3js?

I've got one Ethereum smart contract which calls functions of the other one. How could I track these calls using web3js or some other tool if it is possible at all? I need it because I want to execute ...
1
vote
1answer
21 views

Can I send data (e.g. text) in a Transaction with Web3J?

I need to send a transaction from an account to another one via Web3J that includes not only the value field but also the data field (in particular, I need to send text). Is it possible?
0
votes
1answer
219 views

Metamask Out of gas error

I'm unable to send ethereum from my Metamask..its showing error as "insufficient fund for gas" despite having 5 ethereums in my account.
0
votes
0answers
293 views

Why the maximum number of transactions in a block is 221?

I made a private network with only one node in it, then I sent 2000 transactions like so: var amount = 1; var sender = personal.listAccounts[0] var receiver = personal.listAccounts[0] for (i = 0; i ...
0
votes
3answers
46 views

web3.eth.sendSignedTransaction executed successfully but never any ETH transferred actually

as you see in below, i the raw transaction has been set by the gas simplify value, the returned value is an implemented transaction hashcode, but never assumed result by this transaction figure out ...