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

[SB-1321] Enable/disable target at runtime #3

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

m-cote
Copy link
Collaborator

@m-cote m-cote commented Feb 14, 2024

New endpoints:

GET /admin/targets
returns a list of configured RPCs
Example response:

[
    {
        "name": "infura",
        "disabled": true,
        "blockNumber": 10534142
    },
    {
        "name": "QuickNode",
        "disabled": false,
        "blockNumber": 10534142
    }
]

POST /admin/targets/{{targetName}}
Disables or enables the RPC
Path parameters: targetName -- name of the target from the configuration
Request body:

{
    "disabled": true
}

@m-cote m-cote marked this pull request as ready for review February 22, 2024 17:39
@m-cote m-cote changed the title Enable/disable target at runtime [SB-1321] Enable/disable target at runtime Mar 28, 2024
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

Successfully merging this pull request may close these issues.

1 participant