I am using explorer from cardano-sl, what should I do?
The API from the old explorer has been ported identically to cardano-submit-api. This component is part of cardano-rest. Source code that is dealing with the explorer API from cardano-sl should be straightforward to migrate. See the installation instructions and documentation available on cardano-rest for more details.
The setup is here a bit different. With cardano-sl, the explorer is mounted directly on the core node as one monolith and can be turned on and off. Now, these components have been split off one another and are using an extra middleware to communicate. So the “infrastructure” is slightly more complex but enables greater flexibility and robustness.
It is possible to automatically migrate an existing blockchain database from cardano-sl into its new format compatible with cardano-node. For this, have a look at the db-converter and in particular, the
$ db-converter convert --help Usage: db-converter convert --epochDir STRING --dbDir STRING --epochSlots WORD64 Available options: -h,--help Show this help text --epochDir STRING Path to the directory containing old epoch files --dbDir STRING Path to the new database directory --epochSlots WORD64 Slots per epoch
ℹ️ On Byron, the number of slots per epoch is fixed to
This can save you an hour of time downloading the blockchain from the network!
Build it with Nix as follows:
$ git clone https://github.com/input-output-hk/ouroboros-network $ cd ouroboros-network $ nix-build -A haskellPackages.ouroboros-consensus-byron.components.exes.db-converter -o db-converter $ ./db-converter/bin/db-converter --help
I am using wallet V1 from cardano-sl, what should I do?
V2 API is now available on cardano-wallet. In a similar fashion to cardano-rest, this component used to be mounted directly on the core node but is now an independent process. The cardano-wallet is nothing more than a webserver that connects to a local core node through a domain socket.
There are some variations between the
V1 APIs of course, but they follow a very similar approach and are still very resource-centric (a.k.a ReST). cardano-wallet is however a quite large component, that covers multiple networks and node backends. If you’re coming from sl, you’re most likely interested in cardano-wallet-byron at the moment which is integrated with a Byron-reboot OBFT cardano-node. Follow setup instructions on cardano-wallet‘s README and Wiki.
The API documentation is available in API References. Note that only the Legacy sub-part of the API matters at this stage. The Shelley part is not available on the Byron integration but can be looked up as a reference for future integration.
cardano-sl had the concept of “accounts” inside wallets. This concepts is now entirely gone. If you need multiple accounts, use multiple wallets.
I am using wallet V0 from cardano-sl, what should I do?
You are going to have a harder time migrating to cardano-wallet. The gaps between
V2 are obviously bigger, but everything from the previous section applies. Good luck.