Setup & Build

Initiate the initiators using Plugin

Step 1 - Go to terminal and login using "plugin admin login"

plugin admin login

use the credential (email id & password) set during plugin node installation

Step 2 - Create

plugin initiators create <NAME> <URL>

NAME: The name you want to use for your external initiator.(You now can use xdc as an initiator in your jobspec.) URL: The URL of your jobs endpoint. ie: http://localhost:8080/jobs

This will give you the environment variables you need to run your external initiator. Copy the output. It will look something like this:

║ xdc  ║ http://localhost:8080/jobs ║ b4846e85727e46b48889c6e28b555696 ║ enNfNhiiCTm1o6l+hGJVfCtRSSuDfZbj1VO4BkZG3E+b96lminE7yQHj2KALMAIk ║ jWt64+Q9benOf5JuGwJtQnbByN9rtHwSlElOVpHVTvGTP5Zb2Guwzy6w3wflwyYt ║ 46m38YkeCymYU0kr4Yg6x3e98CyAu+37y2+kMO2AL9lRMjA3hRA1ejFdG9UfFCAE

Create a startEI.sh file in the external-initiator folder with the following contents:

Be sure to save these values, since the secrets cannot be shown again.

export EI_DATABASEURL=postgresql://$USERNAME:$PASSWORD@$SERVER:$PORT/$DATABASE
export EI_CHAINLINKURL=http://localhost:6688
export EI_IC_ACCESSKEY=<INSERT KEY>
export EI_IC_SECRET=<INSERT KEY>
export EI_CI_ACCESSKEY=<INSERT KEY>
export EI_CI_SECRET=<INSERT KEY>
external-initiator "{\"name\":\"xdc\",\"type\":\"xinfin-mainnet\",\"url\":\"https://plirpc.blocksscan.io\"}" --chainlinkurl "http://localhost:6688/"

Plugin external-initiator can be started using below command

pm2 start startEI.sh

Last updated