Open Source XRP Ledger Explorer
This repo contains the source code for the block explorer of the XRP Ledger hosted at livenet.xrpl.org.
This project uses Vite. You can find information about how to use it here.
The project requires [email protected]. Follow installation instructions on nodejs.org.
(Recommended) Install using nvm.
Make sure to use npm version 8+ by running npm install -g npm@latest
after you install Node.
This setup is required for the Tokens page of the explorer to function:
Once you have completed these steps and generated the JSON key file, you must populate the following environment variables in the .env file with their corresponding values from the JSON key file:
GOOGLE_APP_PROJECT_ID=your-project-id
GOOGLE_APP_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\n...
GOOGLE_APP_CLIENT_EMAIL=your-client-email
cp .env.example .env
npm install
thennpm start
for development mode, ornpm run build
then npm run prod-server
for production modeSince canvas
does not provide pre-built binaries for Apple chips during npm install
it will try to compile it manually. To get this to succeed you need to install several dependencies by following the instructions here.
VITE_RIPPLED_HOST=s2.ripple.com
with VITE_RIPPLED_HOST=s.altnet.rippletest.net
in the .env
fileVITE_ENVIRONMENT=testnet
to .env
to enable TESTNET bannerVITE_RIPPLED_HOST=s2.ripple.com
with VITE_RIPPLED_HOST=s.devnet.rippletest.net
in the .env
fileVITE_ENVIRONMENT=devnet
to .env
to enable TESTNET bannernpm test
npm run test:coverage
open coverage/index.html
debugger;
in your unit testnpm run test:debug
about:inspect
in Chromeinspect
linkplay
buttondebugger;
When updating translation entires or adding new languages consult the guide Translating.