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

Implement Programmatic API #634

Open
faustbrian opened this issue Jun 5, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@faustbrian
Copy link
Contributor

commented Jun 5, 2019

Right now it is only possible to either build static files and run explorer that way or launch it via an express server which all use a fixed configuration.

In order to allow easier integration into things like core (https://github.com/ArkEcosystem/core/tree/develop/packages/core-explorer) and potentially wallets it should be possible to interact with explorer through a programmatic API.

import { Server } from "@arkecosystem/explorer";

await Server.start({ config });

For a start the configuration would be what is currently sitting in the networks folder, later this could be expanded to contain style specific configuration so that an explorer with bridgechain branding could be started within seconds.

By having this programmatic access of launching an explorer and it will provide easier integration with core which in turn makes things simpler for deployer.

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