External Initiators: Difference between revisions
From Chainlink Community Wiki
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
Once authenticated, we can create our external initiator. | Once authenticated, we can create our external initiator. | ||
<code>chainlink initiators create $EXTERNAL_INITIATOR_NAME $EXTERNAL_INITIATOR_URL</code> | <code>chainlink initiators create $EXTERNAL_INITIATOR_NAME $EXTERNAL_INITIATOR_URL</code> | ||
In the above example command, the <code>$EXTERNAL_INITIATOR_NAME</code> would be whatever you want it to be. | In the above example command, the <code>$EXTERNAL_INITIATOR_NAME</code> would be whatever you want it to be. | ||
Whatever name you give it, will appear as the name in the database, so I recommend you name it something specific to the job. | |||
*Whatever name you give it, will appear as the name in the database, so I recommend you name it something specific to the job. |
Revision as of 20:49, 9 January 2023
External Initiators
Official Chainlink Docs for External Initiators
Example Details for the Document
To help get a better understanding of how external initiators work, we will run through an example in the doc.
The example is writing three pieces of information on-chain; two strings and an uint.
String 01: FeedName
String 02: FeedID
Uint: 1234567.89
Create External Initiator
In order to create an external initiator, we need to get access to the Chainlink command line (CLI)
We'll accomplish this by entering into our Chainlink docker container
docker exec -it $CHAINLINK_CONTAINER_NAME /bin.bash
You will be prompted to log in.
Your login credentials are the same email address and password combination you use to login to the web UI
Once authenticated, we can create our external initiator.
chainlink initiators create $EXTERNAL_INITIATOR_NAME $EXTERNAL_INITIATOR_URL
In the above example command, the $EXTERNAL_INITIATOR_NAME
would be whatever you want it to be.
- Whatever name you give it, will appear as the name in the database, so I recommend you name it something specific to the job.