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

getblockreward api returns Something went wrong #2848

Closed
luckyyang opened this issue Nov 8, 2019 · 4 comments
Assignees
Labels
api

Comments

@luckyyang
Copy link

@luckyyang luckyyang commented Nov 8, 2019

Environment

Use postman to do the api test

Steps to reproduce

Use postman to get https://blockscout.com/poa/core/api?module=block&action=getblockreward&blockno=11897954

Expected behaviour

Should return the reward info for block

Actual behaviour

{
    "status": "0",
    "result": null,
    "message": "Something went wrong."
}
@vbaranov vbaranov added the api label Nov 13, 2019
@vbaranov vbaranov assigned vbaranov and unassigned ayrat555 Nov 14, 2019
@vbaranov

This comment has been minimized.

Copy link
Collaborator

@vbaranov vbaranov commented Nov 14, 2019

@luckyyang fixed. Just for your information, in case you going to fix this in the custom chain, you need to import spec file of the chain. In the case of POA Core:

EMISSION_FORMAT="POA"
CHAIN_SPEC_PATH="https://raw.githubusercontent.com/poanetwork/poa-chain-spec/core/spec.json"

Reference to ENV vars set: https://docs.blockscout.com/for-developers/information-and-settings/env-variables

@vbaranov vbaranov closed this Nov 14, 2019
@luckyyang

This comment has been minimized.

Copy link
Author

@luckyyang luckyyang commented Nov 15, 2019

@vbaranov Is there any guide for how to generate this spec file?

@vbaranov

This comment has been minimized.

Copy link
Collaborator

@vbaranov vbaranov commented Nov 15, 2019

It is a Chain spec for Parity Ethereum client:
https://wiki.parity.io/Chain-specification

@luckyyang

This comment has been minimized.

Copy link
Author

@luckyyang luckyyang commented Nov 15, 2019

Got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.