Actions

External Initiators: Difference between revisions

From Chainlink Community Wiki

(Created page with "=External Initiators+ [https://docs.chain.link/chainlink-nodes/external-initiators/building-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:''' <code>FeedName</code> '''String 02:''' <code>FeedID</c...")
 
No edit summary
Line 5: Line 5:
==Example Details for the Document==
==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.
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.
The example is writing three pieces of information on-chain; two strings and an uint.
'''String 01:'''  <code>FeedName</code>
'''String 01:'''  <code>FeedName</code>
'''String 02:'''  <code>FeedID</code>
'''String 02:'''  <code>FeedID</code>
'''Uint:'''  <code>01234567.89</code>
'''Uint:'''  <code>01234567.89</code>


Line 19: Line 23:


You will be prompted to log in.
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
Your login credentials are the same email address and password combination you use to login to the web UI



Revision as of 20:48, 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: 01234567.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.