8

When I use the etherchain.org API to get all the transactions in a block, it also returns contract messages. For example for block 911516, this call returns 7 transactions:

https://etherchain.org/api/block/911516/tx

However when I use this query in Geth for the same block, it reports only one transaction:

web3.eth.getBlockTransactionCount(911516)   

Apparently etherchain.org includes contract-to-contract messages in addition to transactions. Is there a way to obtain these messages in Geth?

eth
  • 85,679
  • 53
  • 285
  • 406
antianticamper
  • 393
  • 2
  • 7

3 Answers3

2

This is not possible in general. Internal calls to other contracts are only part of single transaction execution.

However, if a called contract emits logs they are available in transaction receipts.

Paweł Bylica
  • 1,355
  • 1
  • 9
  • 28
0

You can try to look it at Ether.camp project, i looked at it contracts, raw info.

Gudsaf
  • 317
  • 1
  • 9
0

It is possible currently with both Geth and Parity, although with non-standard APIs. See the answers to How to get contract internal transactions.

comodoro
  • 1,202
  • 1
  • 12
  • 16