Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need more chain event or API #17822

Closed
3 of 6 tasks
ysqi opened this issue Oct 3, 2018 · 2 comments
Closed
3 of 6 tasks

Need more chain event or API #17822

ysqi opened this issue Oct 3, 2018 · 2 comments

Comments

@ysqi
Copy link

ysqi commented Oct 3, 2018

hi all,
I have a plan to write all block to relational database, but I am disappointed that I can't get more detailed data without changing the source code of go-ethereum.

Here's why:

  1. LevelDB does not support multi-process access
  2. go-ethereum only support subscribe little event (ChainEvent、ChainHeadEvent、ChainSideEvent、RemovedLogsEvent)

I want get more detail information about process new block:

  • Block Data
  • Transaction
  • Logs
  • Recipes (Used to record transaction execution results)
  • State Journal (Used to track balance change details)
  • Exec Tx return value ( Used to record transaction execution output) . However, this data was directly abandoned except for the deployment of new contracts.

What I want to ask is :

  1. Do you support this feature? I am happy to implement them and push request if it is possible.
  2. Do you have any better solutions to get the data?

thanks all.

@ysqi ysqi changed the title need more chain event Need more chain event or API Oct 3, 2018
@fjl
Copy link
Contributor

fjl commented Oct 15, 2018

The best way is to subscribe to chain head events, then fetching the remaining data through other API calls when there is a new block.

@ysqi
Copy link
Author

ysqi commented Oct 19, 2018

thanks, I think the best way is use debug_tracBlock api。

@ysqi ysqi closed this as completed Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants