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

BUG: THORChain fetch chain id using api #909

Closed
johnnyluo opened this issue Sep 5, 2024 · 0 comments · Fixed by #1279
Closed

BUG: THORChain fetch chain id using api #909

johnnyluo opened this issue Sep 5, 2024 · 0 comments · Fixed by #1279
Assignees
Labels
bug 🐞 Something isn't working

Comments

@johnnyluo
Copy link
Contributor

johnnyluo commented Sep 5, 2024

Describe the bug
Currently the the chain id is hard coded , please use api endpoint to fetch it
https://rpc.ninerealms.com/status network field

{
    "jsonrpc": "2.0",
    "id": -1,
    "result": {
        "node_info": {
            "protocol_version": {
                "p2p": "8",
                "block": "11",
                "app": "0"
            },
            "id": "5282112d0178dab95670269ed38eacb17a385890",
            "listen_addr": "tcp://0.0.0.0:27146",
            "network": "thorchain-1",
            "version": "0.34.27",
            "channels": "40202122233038606100",
            "moniker": "local",
            "other": {
                "tx_index": "on",
                "rpc_address": "tcp://0.0.0.0:27147"
            }
        },
        "sync_info": {
            "latest_block_hash": "6A94D84DF0C092B2BE795F51CDEAB93369075565B366173658784432759F2657",
            "latest_app_hash": "28E1249E5FB3BDC009A79942CCE416FC9605A2FA3543EF9B8A1F7156F293D160",
            "latest_block_height": "17566481",
            "latest_block_time": "2024-09-05T04:38:14.499376162Z",
            "earliest_block_hash": "0B3C8F9E3EA7E9B1C10CAC5217ED771E0540671EFB9C5315BF01167266BCBEDF",
            "earliest_app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
            "earliest_block_height": "17562001",
            "earliest_block_time": "2024-09-04T19:40:00Z",
            "catching_up": false
        },
        "validator_info": {
            "address": "4ADD844D3E5A7E6DDCAD96BD1E844F0BFF6EECE6",
            "pub_key": {
                "type": "tendermint/PubKeyEd25519",
                "value": "PYDTU4Z3W1aLtsd4p0I/h71RjPffKBievDK3lQMD+6k="
            },
            "voting_power": "0"
        }
    }
}
@johnnyluo johnnyluo added the bug 🐞 Something isn't working label Sep 5, 2024
@johnnyluo johnnyluo added this to the Release 1.0.21 milestone Sep 9, 2024
@yvebe yvebe modified the milestones: Release 1.0.21, Release 1.0.22 Sep 13, 2024
@yvebe yvebe self-assigned this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants