A block explorer for Phantasma Chain.
NOTE - This block explorer is the old block explorer Phantasma in the first years, and was updated with compability with Phantasma 3.0. For the latest explorer code which was rebuilt from scratch, check the following repositories.
To perform development on the explorer you will need the following:
- A Windows PC that suports Visual Studio Community
- Can be obtained here: https://visualstudio.microsoft.com/downloads/
- An installation of Visual Studio Community with the following extension
- .NET Desktop Development
Pull or download the following GitHub Repositories
- PhantasmaChain repository
- PhantasmaRpcClient repository
Ensure both of these sit in the same root directory on your PC and are in folders that match the above. For example:
- C:<my code>\Phantasma\PhantasmaChain
- C:<my code>\Phantasma\PhantasmaRpcClient
- Open Visual Studio
- Open the PhantasmaExplorer\PhantasmaExplorer.sln solution
- Build the solution
- Open a command window
- Navigate to the Phantasma.Explorer root dir
- Run the following:
dotnet publish
The files needed to run a node will now be in PhantasmaExplorer\www\netcoreapp2.0\publish
Once you have published the binaries as per above you can run it with the following command:
- Note the first run can take some time as it will build the cache from scratch
dotnet /<explorer binaries dir above>/Phantasma.Explorer.dll --port=7074 --env=prod --path=/<explorer root dir>/ --phantasma.rest=http://207.148.17.86:7078/api -cache.path=Cache
You can contribute to Phantasma with issues and PRs. Simply filing issues for problems you encounter is a great way to contribute. Contributing implementations is greatly appreciated.
The Phantasma project is released under the MIT license, see LICENSE.md
for more details.