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.

0
votes
1answer
28 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 ...
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 ...
4
votes
1answer
27 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 ...
-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 : ...
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 ...
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 ...
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 ...
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
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
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("...
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
22 views

Gas Limit for ERC-20 tokens

I would like to know what is the gas limit for other ERC-20 tokes like BAT, 0X, OMG I undestand that for regular transactions in Ethereum the gas limit is 21000, is it the same for the rest of tokens ...
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 ...
0
votes
1answer
11 views

Way of an transaction

I'm wondering how transactions are handled at Bitcoin/Ethereum/... . Miners send their found blocks to a fixed number of other miners who will redistribute them if they don't already have another ...
0
votes
1answer
16 views

Sending the bool to ```function() payable``` in another contract

I am trying to create a pair of contracts, let's say C1 and C2. I want to add an if...else in payable function function() public payable{} of C2, which works on the bool value returned by contract C1, ...
0
votes
1answer
25 views

Transaction completion in Ethereum smart contract

How can I calculate the deployment time and completion time of a smart contract transaction using web3.js?
0
votes
0answers
22 views

Accidentally sent REN (ETH token) to my ETH contract address using my Ledger Nano S. Can someone help please? [duplicate]

I sent REN (ETH token) to my ETH contract address by accident while using my ledger nano s. Can someone help me understand what's happened to the tokens and if I can retrieve my REN token from my ETH ...
1
vote
1answer
7 views

Do dapps(contract) check allowance of buyer when he calls buy function?

When a buyer calls a buy function on dapp contract, some dapps check the buyer's allowance before transfer tokens(erc20). Is it usual?
0
votes
1answer
14 views

what is the miner that includes the transaction in their block to mine it

When user send transaction, all evms execute automatically smart contract and which miner include this transaction inside block to mine ?
0
votes
1answer
30 views

Is there a drawback of setting a too high gas limit for a transaction?

Say, I want to send a transaction that consumes around ~40,000 gas. Could I just set the gas limit of the transaction to 1 million or is there some disadvantage and I should set a more realistic gas ...
0
votes
2answers
17 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
0answers
20 views

Send transactions from any address (account) to a private ethreum network (PoA)

I am trying to send a transaction to a private Ethereum network (PoA) using an arbitrary address. However, the network is not accepting transactions from that address. Are there any method to unlock ...
0
votes
1answer
24 views

Quorum how to decode result returned by eth_getQuorumPayload api?

I've read the post How to get decrypted transaction data in quorum? I followed the api document and got the result by calling eth_getQuorumPayload curl -H "Content-Type: application/json" -X POST ...
1
vote
1answer
56 views

How to build a simple transaction?

Where is the information on the tx package build protocol? Bitcoin as an example, Bitcoin Wiki - Protocol Documentation: tx Is there an example of serialization for python like this answer to How to ...
1
vote
1answer
16 views

How to retrieve transaction hash value from the Promise object using web3js?

I'm trying to retrieve the transaction hash value after I call my smart contract method. My Promise object looks like below. returnPromise: Promise { "pending" } ​ <state>: "...
0
votes
0answers
9 views

How to communicate with private geth chain using IPC?

There are many examples on how to send a transaction(in JSON) via http or ws to a geth node, how do you send a json transaction via IPC? I have not been able to find a single example that shows how to ...
0
votes
1answer
31 views

User anonymity while submitting data in smart contract

I've written a smart contract, that is a crowd sensing system. Where post posting a task user view that task and if they have what I'm asking for/and meet the task requirements they submit certain ...
0
votes
1answer
20 views

Question regarding approval of the token

I am trying to make a smart contract where calling a function named transferERC20, you can deposit your erc20 tokens into the smart contract. Here is the code at the moment: pragma solidity ^0.5.0; ...
0
votes
1answer
17 views

Why does Ropsten consume more Gas than Rinkeby?

I deployed the following smart contract both to Rinkeby and to Ropsten. pragma solidity ^0.5.8; contract storeHash{ string private vehicleData; function setVehicleData(...
0
votes
2answers
35 views

msg.sender.balance inside contract

what does/should msg.sender.balance return when used inside contract? Assume we have contract A, calling B, which is calling C. msg.sender is propagated with the calls down to B and C The user is ...
0
votes
1answer
38 views

How does Ethereum calculate balance for a new transaction if there are already unconfirmed transactions in the mempool?

Whenever a new transaction is made, it is added to the mempool and a miner will take these transactions from the pool and try to generate a block which contains this transaction. However, before ...
1
vote
2answers
183 views

Reason for check of msg.value > 0

I came across published smart contracts (like this one from ConsensSys) that check whether msg.value is strictly larger than zero in their payable functions. After wondering whether msg.value can be ...
1
vote
1answer
28 views

How does contract of dapp figure out who buyer is?

How does contract of dapp(eg. market place) figure out who buyer is? If buyer wants to purchase servive(or product) at certain dapp, he should transfer tokens to contract address of the dapp. At ...
1
vote
1answer
75 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" ...
1
vote
0answers
9 views

I am sending some ether from account[0] to account[1] using geth console. But the amount is not getting added to the receiving account

I tried to mine the transaction using miner.start() command, still account balance remains the same > miner.start(8) I0428 16:27:15.927553 miner/miner.go:136] Starting mining operation (CPU=8 TOT=...
1
vote
1answer
28 views

What is the difference between local and remote transaction?

In latest go-ethereum, miners firstly try to mine local txs and then try to mine remote txs. what are the exact differences between them?
1
vote
1answer
68 views

How do the stored transactions receipts are referred from the block?

Based on the data structure of Ethereum blocks and transactions which is also represented here, we know the following sentences about the transactions receipts: 1- The transactions receipts are ...
1
vote
1answer
45 views

Correct way to make a delegatecall? [duplicate]

I made a delegatecall to the REP contract to approve my contract to spend tokens on behalf of a user and my transaction is failing for some reason here is my code: (bool b,) = REPAddress.delegatecall(...
0
votes
2answers
24 views

Contracting Party has a legal right of rescission - what possibilities are possible, e.g. Procedere of Reverse Transaction [closed]

if one party has a legal right to rescission; how can the blockchain deal with it? Is it possible to implement a reverse transaction if - the other party does not accept that? - the other party just ...
0
votes
1answer
24 views

how to format contract params expecting bytes32?

I have a contract that expects a bytes32 parameter called "topic" which I pass in like this: web3.utils.hexToBytes(web3.utils.stringToHex("Weather")); I also tried web3.utils.stringToHex("Weather")...
1
vote
0answers
19 views

How can I recover the path to a specific transaction in the tx patricia merkle tree?

I'm working on a project where a non trusted entity is running an ethereum node (either geth or aleth), and has to pass information along to a non networked party. Namely, the non networked party ...
0
votes
2answers
47 views

How do I monitor 50k addresses for incoming ERC20 transactions?

I have a list of 50.000 Ethereum addresses which at any time may receive ERC20 transfers. I know I can create filters but I don't think it scales to send 50.000 RPC calls to an Ethereum node every 20 ...
0
votes
2answers
18 views

Where do I find the literal error definitions thrown by the Ethereum Network?

I've been trying to create an Ethereum Transaction but keep getting the 320000 invalid sender error. From other questions I've seen, this may be caused by errors in signing, sender address or chainID, ...
0
votes
1answer
23 views

How does the MetaMask work with gas?

I have some web application based on Ethereum. This is how I call some function from a contract: contract.doSomething.sendTransaction(data, {gasPrice: web3.toWei(10, 'Gwei')}, callback...); This ...
0
votes
1answer
19 views

why do i see input data in the transaction details when i didn't pass it as a data parameter

When I create a transaction like below App.contracts.Soccer.deployed().then(function(instance) { return instance.purchaseShoes(name, age, { from: accounts[0], value: value}); }).then(...
1
vote
0answers
65 views

Smart contract will not deploy to my private blockchain when using Remix IDE

So I'm a complete newbie and trying to deploy my first smart contract to a local Ethereum blockchain. I'm doing this on a Windows machine. I have created a private blockchain using geth, made an ...
1
vote
3answers
36 views

Is it possible to make multiple function calls in a single transaction?

Say I want to make a transaction that calls foo() and the calls bar() afterwards. I could make a contract that calls them both in sequence, but that's kind of a pain. Is there a way to just call both ...
0
votes
1answer
25 views

Etherscan how to get latest transactions?

I am using this api to get all transactions at an address, however I see it returns the last 1000 transactions, is there any way to make it return first 1000 transactions by date?