Stack Exchange Network

Stack Exchange network consists of 174 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 [receipts]

The tag has no usage guidance.

1
vote
1answer
64 views

What should I call the object returned from a Truffle contract function-call

When I perform a contract function-call via Truffle, and then resolve the returned promise, I get something like this: { "tx": "0x...", "receipt": { "transactionHash": "0x...", ...
0
votes
2answers
191 views

Sending Signed Transaction returns pending and event:undefined

I am trying to send a signed transaction using web3 1.0 and Infura.io through the browser. When I run it I dont get any errors but the transaction never hits the blockchain so I am confused on whats ...
4
votes
2answers
58 views

Understanding the formal description of a transaction and its associated refunds

Excerpt from page 8 of the yellow paper: I fully understand that contracts can self-destruct and, when that happens, according to this thread, all the balance is refunded to the address specified as ...
1
vote
1answer
62 views

Why isn't the information in transaction receipt stored in the transaction itself?

The yellow paper says: Transaction Receipt. In order to encode information about a transaction concerning which it may be useful to form a zero-knowledge proof, or index and search, we ...
1
vote
0answers
37 views

Why do are the 'type' & 'removed' fields in receipt logs different between Ganache and Geth?

When I run a particular transaction and log the receipt, I am getting different results depending on if my EVM is Geth or Ganache. Specifically, Ganache returns receipt.logs[0].type: 'mined' while in ...
1
vote
1answer
34 views

What does the logger's address mean in Ethereum yellow paper?

In the Ethereum yellow paper Page 5 says that the log entry O consists of (O_a,(O_{t0}, O_{t1},...),O_d). And O_a means the logger's address. What's the meaning of logger's address? Does it mean the ...
0
votes
1answer
181 views

How to see Smart contract address and it’s transactions, and have multiple addresses in a smart contract

How can I see a smart contract address & know which addresses sent ether to my smart contract? And Can a smart contract have multiple receiving addresses.... like for example if I am selling e-...
1
vote
2answers
254 views

How to display blockchain transaction receipt details in an Ethereum Dapp

In my dapp design, I wish to provide the user with an option to view Blockchain Transaction Receipt Details either by a link to sites like Etherscan or by providing full details on a separate page in ...
0
votes
1answer
40 views

What happens when truffle-contract promise is never executed

I'am using truffle 4. Suppose I have the following js code: let instance = await Values.deployed() let result = await ...
1
vote
1answer
353 views

Why does a transaction trigger 12 or 24 confirmation events?

Web3.js docs state that a confirmation event will be fired: 12 times when calling web3.eth.sendTransaction (see here) 24 times when calling myContract.methods.myMethod.send (see here) Why is the ...
0
votes
1answer
39 views

Are Transactions and Receipts 1-to-1?

Ethereum maintains an Transaction Trie and a Receipts Trie and I'm trying to visualize how that data would be contained in a relational database. I believe both Tries would have a primary key of ...
1
vote
1answer
42 views

To perform getTransactionReceipt on old blocks do I need full or fast node?

If I need to run eth_getTransactionReceipt(txhash) on old transactions, will a fast node suffice or do I need to run a full node? I have heard conflicting answers and would prefer not to download a ...
0
votes
0answers
118 views

Transaction receipt logs has logs from another transaction

I'm trying to analyze contract call transactions from blockchain by looking at the each transaction's logs to see whether some events were emitted (can't use plain filters/watches). I wanted to go ...
0
votes
2answers
274 views

What is the difference between receipts and transactions?

The data structure of receipts are no big difference from transactions. So why block headers have the receipts tree root? Is it unnecessary?
0
votes
0answers
226 views

Can't receive contract address while deploying contract

I have an error while deploying a contract, using version 1.0.0 beta30 of web3. I tried to follow the official documentation as close as possible: var Web3 = require('web3') var NodeHandle = require('...
2
votes
1answer
249 views

Why can't the return value of a transaction be included in the transaction receipt?

Shouldn't this be possible as the return value will be known when the receipt is created?
0
votes
0answers
518 views

Web3js Contract deploy never get receipt?

I am trying to deploy a contract with web3js. The contract will be deployed but I never get to see the address, which should be returned from the promise. Instead I always get an error returned: ...
1
vote
2answers
1k views

Using getTransactionReceipt to get cumulativeGasUsed in truffle javascript

Trying to parse the transaction result, for example the exact gas used by a transaction. How can I do it in javascript? The below is not working btw, any idea? return metaInstance.deposit({ from: ...
5
votes
2answers
495 views

How to track payments to contract

Can I track received payments to smart contract on a block explorer or do I need to run a contract method for this? I need the amount and payment identification information (I need to identify the ...
2
votes
1answer
39 views

Is there a way to prove to a third party that you are the recipient of a transaction?

Let's say that someone sends me some ETH. How can I prove to a third party that I am the actual recipient of that transaction? The third party is anyone with access to the blockchain. In other words, ...
0
votes
1answer
279 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
1answer
435 views

I sent 1 ETH to an ICO, tx receipt failed, value (Cancelled)

I sent 1 ETH to an ICO today without reading instructions. I sent it from my Coinbase account, so the ERC-20 cannot be retrieved on my end without Coinbase being super cool and sending them to me. ...
4
votes
1answer
187 views

Does the new receipt status field report all errors all the way down the call chain?

See this transaction on etherscan: https://etherscan.io/tx/0xd20a95a9f051d6961ca766a9b2d0f18b6afdf6d8465931a3f70f2c4b1c023688 Notice the odd note saying some part of that transaction failed but the ...
15
votes
1answer
3k views

What is the exact meaning of a transaction's new receipt 'status' field?

In this answer (https://ethereum.stackexchange.com/a/6010/1529) it seems to say that the status field will always be '1' unless the transaction failed, in which case it will be '0'. In the summary ...
0
votes
1answer
147 views

How is a post-transaction state calculated?

A receipt from rpc returns a root which I believe is the "post-transaction state" from the yellow paper. The internet seems to say this is the same thing as the full stateRoot at the exact moment ...
6
votes
1answer
748 views

How do I get event logs in transaction receipt, when I trigger event defined in other contract?

I'm trying to trigger event defined in another contract and get the event logs in transaction receipt but it's not working this way - Base Contract -- pragma solidity ^0.4.0; contract DataStore { ...
11
votes
1answer
7k views

What are Ethereum transaction receipts and what are they used for?

I've seen mention in a few places that blocks store transaction receipts, but I haven't really seen an explanation of what they are and why they exist.
6
votes
3answers
2k views

Proving the Existence of Logs to the Blockchain

To preface this: I'm not entirely sure this question makes any sense. Just a thought I had that I wanted to check the feasibility of. I'm pretty sure it is possible to use a Merkle proof to show that ...
3
votes
2answers
541 views

Are the transaction parameters recorded on the blockchain?

I'm trying to figure out if its safe to send a private key along with a transaction so that only people with the private key can execute the transaction. My concern is that the transaction record will ...
4
votes
2answers
2k views

Transaction receipt has contractAddress as null

I see that my transaction is mined. I am trying to store some data into a struct. The mining is successful, however, in the transaction receipt i see that the contract address is null. Is that an ...
3
votes
1answer
220 views

Is there a distinguishing characteristic of a 'contract creation' transaction?

Look at this transaction: https://etherscan.io/tx/0x37c469573ca24f538d91f39e9d0b8d49927a36d70496ef74521cbf5c44a056d4 In geth's console, if I enter: eth.getTransaction('0x37c4...') It returns ...
1
vote
1answer
482 views

Checking if transaction failed over RPC

I call a contract over geth RPC using sendTransaction and get a transaction hash. Is there a way to verify over the geth RPC interface if this transaction failed due to a VM abort (Solidity throw ...
3
votes
1answer
226 views

Inconsistency in web3.eth.getBlock

I'm indexing transactions as they are confirmed. I poll the web3.eth.getBlock with the next number and I put them in a database. But, I've realized that some transactions have an incorrect block ...
7
votes
1answer
1k views

What is the 'root' of a transaction receipt?

web3.eth.getTransactionReceipt returns an object with a root property and is currently undocumented in the wiki. Result: { ... "root": "...
10
votes
1answer
3k views

Structure of a transaction receipt

What does it mean line by line? Result: { "blockHash": "0xe6b110c9167d9aabeb13b02a7b9358d879426474a79170403d67da33a391dbdc", "blockNumber": 665, "contractAddress": null, "...
9
votes
2answers
432 views

Why doesn't the Ethereum protocol have an indicator for a transaction that failed?

Why doesn't the Ethereum protocol have a clear indicator for a transaction that is reverted? There's a heuristic here as well as a workaround using Geth. But there are probably ways that the ...
10
votes
1answer
646 views

Is the LogsBloom in the block header the same as the Bloom filter in the Transaction Receipts Trie?

Reading the yellow paper, I'm attempting to understand the difference between the Hb and Rb values - they appear to be the same thing, unless I've missed something. Is the LogsBloom in the block ...
3
votes
1answer
365 views

Retrieving tx.origin and msg.sender from blockchain data

In Solidity, origin and sender can be easily differentiated through tx.origin and msg.sender, respectively. Is it also possible to obtain both sender and origin of a specific transaction from the ...
2
votes
0answers
47 views

Why are log entries stored as both tuples and bloom filter in the Transaction Receipts Trie [duplicate]

Gavin Wood's Yellow paper describes the a transaction receipt (p5, sec 4.3.1): The transaction receipt is a tuple of four items com- prising the post-transaction state, R_sigma, the cumulative ...
13
votes
1answer
3k views

Relationship between Transaction Trie and Receipts Trie

Reading through the Yellow paper, I can see that each block header includes the Keccak 256 hash of the root of the trie for transactions and transaction receipts. I am struggling to understand how and ...
17
votes
1answer
4k views

How does Ethereum make use of bloom filters?

As stated in the yellow paper: Transaction Receipt. In order to encode information about a transaction concerning which it may be useful to form a zero-knowledge proof, or index and search, we ...
18
votes
1answer
4k views

What is and how to calculate 'cumulative gas used'?

When I see transactions in Etherscan (e.g., 0x7eb9a7454f9cd2f39a7ea7c6212833673165b35f352127ffb337df866897eb73), I see the field Cumulative Gas Used which isn't present in web3 response. In general, ...
29
votes
6answers
12k views

How do I parse the transaction receipt log with web3.js?

The event parser in web3 provides a nice parsing functionality for events, and I use it for logging all events to a file, but it's very difficult to use for looking at individual events for a ...