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

feat: add a injection method to get network information #624

Merged

Conversation

jinoosss
Copy link
Member

@jinoosss jinoosss commented Nov 6, 2024

What type of PR is this?

  • feature

What this PR does:

Add a method to inject that retrieves the current network information.

Users can retrieve network information by executing adena.GetNetwork().

Example response.

{
    “status": “success”,
    “data": {
        “chainId": “test4”,
        “networkName": “Testnet 4”,
        “addressPrefix": “g”,
        “rpcUrl": “https://rpc.test4.gno.land:443”,
        “indexerUrl": “https://test4.indexer.onbloc.xyz”
    },
    “code": 0,
    “message": “Get Network Information.”,
    “type": “GET_NETWORK”
}

@jinoosss jinoosss added the enhancement New feature or request label Nov 6, 2024
@jinoosss jinoosss requested a review from a team as a code owner November 6, 2024 09:36
Copy link
Member

@dongwon8247 dongwon8247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@jinoosss jinoosss merged commit 3555e1c into main Nov 6, 2024
2 checks passed
@jinoosss jinoosss deleted the ADN-559-add-a-method-to-get-the-rpc-url-of-a-selected-chain branch November 6, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants