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.

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. Transactions contain:

  • The recipient of the message
  • A signature identifying the sender
  • The amount of ether to transfer from the sender to the recipient
  • An optional data field
  • A STARTGAS value, representing the maximum number of computational steps the transaction execution is allowed to take
  • A GASPRICE value, representing the fee the sender pays per computational step

The first three are standard fields expected in any cryptocurrency. The data field has no function by default, but the virtual machine has an opcode with which a contract can access the data; as an example use case, if a contract is functioning as an on-blockchain domain registration service, then it may wish to interpret the data being passed to it as containing two "fields", the first field being a domain to register and the second field being the IP address to register it to. The contract would read these values from the message data and appropriately place them in storage.

The STARTGAS and GASPRICE fields are crucial for Ethereum's anti-denial of service model. In order to prevent accidental or hostile infinite loops or other computational wastage in code, each transaction is required to set a limit to how many computational steps of code execution it can use. The fundamental unit of computation is "gas"; usually, a computational step costs 1 gas, but some operations cost higher amounts of gas because they are more computationally expensive, or increase the amount of data that must be stored as part of the state. There is also a fee of 5 gas for every byte in the transaction data. The intent of the fee system is to require an attacker to pay proportionately for every resource that they consume, including computation, bandwidth and storage; hence, any transaction that leads to the network consuming a greater amount of any of these resources must have a gas fee roughly proportional to the increment.

3005 questions
20
votes
1 answer

How can I reverse or cancel a transaction or recover lost ethers?

Transactions (using a smart contract like a token or sending ether), by design, are immutable on the blockchain. What methods can be used to (more or less) unilaterally reverse a transaction made by myself or someone else? Situations where one might…
lungj
  • 6,680
  • 2
  • 17
  • 45
12
votes
3 answers

What is the regex to validate an Ethereum transaction hash?

I am building an application which requires user to paste the transaction hash of a transaction. But i want a regex string i could pass to the pattern attribute of the input element that receives it to validate it. What is the general regexp that…
Oluwatumbi
  • 223
  • 1
  • 2
  • 6
10
votes
4 answers

Are failed transactions included in the blockchain?

When a transaction that executes a smart contract fails (maybe for an exception or require rule), is the transaction propagated to the network and included in the blockchain? If yes, what would be the reason for that?
Ahmad
  • 275
  • 2
  • 9
9
votes
3 answers

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 without prompting the user for multiple…
skrrrraaaa
  • 143
  • 1
  • 7
8
votes
1 answer

Accepting Ethereum on a website

I would like to accept Ethereum on my website but can not find information how to do this. I already accept Bitcoin. With Bitcoin it is quite easy to link unique Bitcoin address with the order number. When I see the incoming transaction I know the…
Andrei
  • 83
  • 1
  • 4
6
votes
2 answers

Broadcast another account's signed transaction to the Ethereum Network

Is there a way to broadcast another account's transaction to the Ethereum network using Geth? This question really won't make sense unless I describe my set-up. 1) Device A has a private key. It creates a transaction, signs it, and sends it to…
nick carraway
  • 1,065
  • 1
  • 9
  • 23
6
votes
1 answer

If I'm expecting ether and provide the wrong address, what happens?

When expecting to receive ether from someone, is the ether lost if i provided a wrong address? Or can the transaction then not compute?
TMOTTM
  • 1,953
  • 2
  • 14
  • 23
6
votes
2 answers

Can you decline a transaction?

I have read few transaction diagrams about Ethereum and am not seeing use cases to decline a transaction. If a sender (erroneously) identifies me as the receiving EOA on a transaction, how can I prevent it? How does this translate for group…
MonoThreaded
  • 163
  • 5
5
votes
1 answer

Why does account show 0 balance, after seemingly successful transaction in geth console?

It seems I've made a successful transaction from account[0] to account1. Why does account1 still have a 0 balance? > var sender = eth.accounts[0]; undefined > sender "0x702543f4ae6d7ebdd07dc29c432a0c707b8c2cc0" > var receiver =…
malexanders
  • 263
  • 2
  • 10
5
votes
2 answers

Sending multiple transactions at once?

Do you know how Xenon smart contract accomplished sending token to multiple ETH addresses at once like in this transaction: https://etherscan.io/tx/0xb017eadfd9732efc93238ba12e2c52500dda0f2a7ede66f91f15fb2f702c1760 Thanks, Dan
Bibyts
  • 71
  • 2
  • 7
4
votes
1 answer

Explain self transactions and fees

Can someone explain what might be going on with this wallet for example: https://etherscan.io/address/0x4dcCCF58C6573eB896250b0c9647A40C1673AF44 Look at the last 6 transactions. It's actually 3 coupled transactions where in each couple, the 1st the…
shaharsol
  • 561
  • 1
  • 5
  • 15
4
votes
2 answers

Sending Augur through Geth

I'm currently trying to work on sending Augur (REP) through geth. I've got the abi in, I can check my balance, I receive a txid after executing the transfer, but the tx never shows up on etherscan. augur_abi = [{augur_abi is here}] contract =…
Gwagh
  • 43
  • 4
4
votes
3 answers

Why does this address have a balance?

I do not understand how this address has a balnce of >$55k at current prices: https://etherscan.io/address/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee There have been >300 transactions to it, but most with 0 Eth. Also I am assuming that this isn't a…
Poglavar
  • 103
  • 1
  • 6
4
votes
2 answers

Will Etheruem Solve This?

I read an article recently about a blueberry producer in Chile selling his blueberries to a large wholesaler in Scotland. The transaction (for 4 million USD) went through Wells Fargo. Wells Fargo delayed the transaction because a bank employee…
3
votes
1 answer

How can I prevent risky DATA fields in an Ethereum transaction?

The EVM evaluates smart contracts by reading code in the DATA field of an Ethereum transaction. This is why you shouldn't trust someone who asks you to include an unknown series of characters in a transaction. However, you can also use that DATA…
tjr226
  • 241
  • 1
  • 8
1
2 3
12 13