- Make sure you’ve follow the instructions to build from source using Nix
- Make sure you’re on latest
cardano-sl-X.X
branch - To build a script that will contain everything needed to connect to mainnet:
$ nix-build release.nix -A connect.mainnetWallet -o connect-to-mainnet
- Alternatively you can connect to different environments and different executables by building the scripts:
- Explorer node with mainnet:
$ nix-build release.nix -A connect.mainnetExplorer -o connect-explorer-to-mainnet
- Wallet to staging:
$ nix-build release.nix -A connect.stagingWallet -o connect-explorer-to-mainnet
- Explorer to staging:
$ nix-build release.nix -A connect.stagingExplorer -o connect-explorer-to-mainnet
- A runtime state folder will be automatically created relative to your current
working directory, but you can override it using
$ export CARDANO_STATE_DIR=~/wallet-state
- Run the script:
$ ./connect-to-mainnet
Or run./connect-explorer-to-mainnet
if you might want to connect anything listed in 4.