NodeJS lightweight validator for the ERC721 to XLS-20 bridge
- Create an Infura Account, Create a new project, then make note of the Rinkeby https endpoint.
Open a command prompt or Powershell prompt and issue the following commands
git clone https://github.com/ajkagy/xls20-bridge-validator
-
in the root of the xls20-bridge-validator directory create a new .env file and add the following text:
UPDATE_FREQUENCY=15 MAIN_SERVER=wss://192.168.0.133:11500/ VALIDATOR_WSS_KEY= VALIDATOR_NUMBER=1 VALIDATOR_XRPL_ADDRESS= VALIDATOR_XRPL_SECRET= MULTI_SIG_WALLET_ADDRESS= ETH_ENDPOINT= BRIDGE_CONTRACT=0xaA1c3f272f9709d2a6dB4A8FC3Ab0e31FFd30a92 XRPL_RPC=wss://xls20-sandbox.rippletest.net:51233 -
Replace the environement variables with your own set values.
MAIN_SERVERthe websocket url for the Bridge Master Process example shown.VALIDATOR_WSS_KEYthe WS/WSS Key for the Bridge Master ProcessVALIDATOR_NUMBERvalidator number (1,2 or 3)VALIDATOR_XRPL_ADDRESSxrpl address for the validators setup in step 1 of the Bridge InstructionsVALIDATOR_XRPL_SECRETxrpl seed for the validators setup in step 1 of the Bridge InstructionsMULTI_SIG_WALLET_ADDRESSmultisig issuer address setup in step 3 of the Bridge InstructionsETH_ENDPOINTInfura Rinkeby Eth EndpointBRIDGE_CONTRACTBridge contract address on RinkebyXRPL_RPCXLS-20 Dev Net RPC
-
Install
npm install -
Start the validator
node validator.js