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
19 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?

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
6 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
12 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
19 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
16 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
19 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
21 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 ...
0
votes
0answers
13 views

Extra data in Trx sendRawTransaction call [on hold]

I'm totally new to Tron/Eth block chain. My question is that is it possible to attach some extra data to a transaction when creating/sending the same using tronWeb. I have browsed through the tronweb ...
1
vote
1answer
52 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
11 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
8 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
25 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
19 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
16 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
28 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
30 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
176 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
37 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
27 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
60 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
42 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
23 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
18 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
44 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
17 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
20 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
53 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 ...
0
votes
3answers
28 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
22 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?
1
vote
2answers
49 views

Decode transaction input INSIDE contract with solidity? [duplicate]

I would like to know if it is possible to read blockchain transactions from a smart contract. How web3 has the possibility to scroll, read and decrypt the input data of the transactions, does solidity ...
0
votes
1answer
20 views

How to understand from web3py if I need a transaction or a call

I have a contract with a function in which only if a certain condition is true, it changes the state of the blockchain otherwise it emits an event and returns: address[] public global_state; function ...
1
vote
0answers
23 views

How to sign transactions offline via geth for a specific chain?

Is there a way to sign a transaction to be accepted on a specific chain? In other words, if I want to sign an offline transaction via geth, say 0.5 eth from external address A to external address B, ...
0
votes
0answers
55 views

MetaMask - Multiple transactions confirmation

Is it possible to somehow make one pop-up window with one group confirmation for multiple transactions in MetaMask? I need to send to the blockchain multiple pieces of data, 1 piece of data = 1 ...
0
votes
2answers
14 views

Create token exchange by defining decimal values

I just learnt a lot about solidity and decided to put it into practice. Something I truly don't understand is how I can bypass the limitations of this programming language. Assume the following ...
1
vote
2answers
45 views

Offline transaction signing with web3j?

I'd like to generate and sign a transaction offline and then send that transaction with a different account. I've found a few web3js sources and I've read the web3 documentation, but I haven't found ...
1
vote
1answer
13 views

Can I get the timestamp for a transaction added to mempool?

Can I get the time stamp on when a transaction was added to the mempool and when it was successfully added to a block? Is there an API to do this?
0
votes
2answers
35 views

How the “data” field of transaction is saved in the Ethereum blockchain? [closed]

as I imagine there are 2 options: in pseudo language: 1) block.add(tx.data); block.calculate_hash_for_blockchain(); 2) block.add(some_hash_function(tx.data)); block.calculate_hash_for_blockchain(); ...
0
votes
1answer
27 views

How should one approach the signing of ERC20 token transactions with an offline device?

I use an offline PC as a cold wallet. It works in combination with 2 USB drives: the 1st has Tails OS; the 2nd has my key files, a copy of MyCrypto desktop, and my encrypted account info. I can sign ...
0
votes
1answer
24 views

Solidity <address>.send() doesn't create a separate transaction?

I am new to Ethereum and I deployed a contract in Ganache which has a function like this: function withdraw(uint256 amount) public payable returns(bool) { require(accounts[msg.sender].balance &...
2
votes
0answers
27 views

Signed transaction vanishing from testnet (Kovan & Rinkeby)

I've been attempting to broadcast transactions to both Kovan & Rinkeby, I'm building and signing them offline and using the Etherscan API to broadcast the signed transactions. I see them in the ...
0
votes
0answers
19 views

How is it possiblle - Although one or More Error Occured [Reverted] Contract Execution Completed?

How is it possible that the txn is reverted due to some error but completed? https://etherscan.io/tx/0xc35fde759557f7742224373ea0777cc7ec36bac98dd678aa621ab96063c29e1c
0
votes
1answer
34 views

Ethereum transaction order

I have a contract for saving some data with a time stamp. Saving data needs to have later time stamp than the last saved data. User will send the data to blockchain in correct order, lets say like ...
1
vote
2answers
69 views

Invalid Sender when Using Quorum

I followed this tutorial (https://github.com/jpmorganchase/quorum/wiki/From-Scratch) to start up Quorum with 4 nodes using istanbul consensus. The nodes can connect and blocks are being generated but ...
0
votes
1answer
29 views

EIP155. How chainId works?

I know signed transaction got v=37. now I am wondering how 'v=37' is used to check that the transaction is right one. nodes check v of every transaction they received?
0
votes
0answers
14 views

How do i retrieve the transaction hash to DApp's frontend?

I have a simple DApp that stores data, developed with truffle and deployed on rinkeby, and I want to show the transaction hash in the frontend. I've read a lot about web3.eth.getTransaction() or ...