Setup & Build
Initiate the initiators using Plugin
Step 1 - Go to terminal and login using "plugin admin login"
1
plugin admin login
Copied!
use the credential (email id & password) set during plugin node installation
Step 2 - Create
1
plugin initiators create <NAME> <URL>
Copied!
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:
1
║ xdc ║ http://localhost:8080/jobs ║ b4846e85727e46b48889c6e28b555696 ║ enNfNhiiCTm1o6l+hGJVfCtRSSuDfZbj1VO4BkZG3E+b96lminE7yQHj2KALMAIk ║ jWt64+Q9benOf5JuGwJtQnbByN9rtHwSlElOVpHVTvGTP5Zb2Guwzy6w3wflwyYt ║ 46m38YkeCymYU0kr4Yg6x3e98CyAu+37y2+kMO2AL9lRMjA3hRA1ejFdG9UfFCAE
Copied!
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.
1
export EI_DATABASEURL=postgresql://$USERNAME:[email protected]$SERVER:$PORT/$DATABASE
2
export EI_CHAINLINKURL=http://localhost:6688
3
export EI_IC_ACCESSKEY=<INSERT KEY>
4
export EI_IC_SECRET=<INSERT KEY>
5
export EI_CI_ACCESSKEY=<INSERT KEY>
6
export EI_CI_SECRET=<INSERT KEY>
7
external-initiator "{\"name\":\"xdc\",\"type\":\"xinfin-mainnet\",\"url\":\"https://plirpc.blocksscan.io\"}" --chainlinkurl "http://localhost:6688/"
Copied!
Plugin external-initiator can be started using below command
1
pm2 start startEI.sh
Copied!
Copy link