-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Interacting With the Chainlink Node
Chainlink has a GUI interface that runs on https://localhost:6688 by default. When connecting, it will ask for authentication. This will be the USERNAME and PASSWORD values set when running the node. After authenticating, you will be presented with the node's dashboard.
When interacting with the running node, you will need to have your USERNAME and PASSWORD environment variables set. We use direnv to automatically set these per-directory.
You can manually set them by running
export USERNAME=chainlink
export PASSWORD=twochainsIn order to run chainlink commands, you will need to install the binary:
make installYou can now add JobSpecs
chainlink c internal/fixtures/web/hello_world_job.jsonThis will produce output similar to the example below
╔ Job
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
║ ID ║ CREATED AT ║ START AT ║ END AT ║
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
║ d90be82283e14abfbd3851b35d10416b ║ 2018-06-27T21:46:35Z ║ ║ ║
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
╔ Initiators
╬══════╬══════════╬════════╬═════════╬
║ TYPE ║ SCHEDULE ║ RUN AT ║ ADDRESS ║
╬══════╬══════════╬════════╬═════════╬
║ web ║ ║ ║ ║
╬══════╬══════════╬════════╬═════════╬
╔ Tasks
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ TYPE ║ CONFIG ║ VALUE ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ httpget ║ confirmations ║ 0 ║
║ ║ url ║ https://bitstamp.net/api/ticker/ ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ jsonparse ║ confirmations ║ 0 ║
║ ║ path ║ ["last"] ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ ethbytes32 ║ confirmations ║ 0 ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ ethtx ║ address ║ 0x356a04bce728ba4c62a30294a55e6a8600a320b3 ║
║ ║ confirmations ║ 0 0x609ff1bd ║
║ ║ functionSelector ║ ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
╔ Runs
╬════╬════════╬═════════╬═══════════╬════════╬═══════╬
║ ID ║ STATUS ║ CREATED ║ COMPLETED ║ RESULT ║ ERROR ║
╬════╬════════╬═════════╬═══════════╬════════╬═══════╬
Start JobRuns
chainlink r d90be82283e14abfbd3851b35d10416bThis will produce similar output
╔ Job
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
║ ID ║ CREATED AT ║ START AT ║ END AT ║
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
║ 3c4a0de8274249e081addf2addc87d64 ║ 0001-01-01T00:00:00Z ║ ║ ║
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
╔ Initiators
╬══════╬══════════╬════════╬═════════╬
║ TYPE ║ SCHEDULE ║ RUN AT ║ ADDRESS ║
╬══════╬══════════╬════════╬═════════╬
╔ Tasks
╬══════╬════════╬═══════╬
║ TYPE ║ CONFIG ║ VALUE ║
╬══════╬════════╬═══════╬
╔ Runs
╬════╬════════╬═════════╬═══════════╬════════╬═══════╬
║ ID ║ STATUS ║ CREATED ║ COMPLETED ║ RESULT ║ ERROR ║
╬════╬════════╬═════════╬═══════════╬════════╬═══════╬
You can run the command below to view the result of the JobRun
chainlink s d90be82283e14abfbd3851b35d10416bWhich will produce an output like this
╔ Job
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
║ ID ║ CREATED AT ║ START AT ║ END AT ║
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
║ d90be82283e14abfbd3851b35d10416b ║ 2018-06-27T21:46:35Z ║ ║ ║
╬══════════════════════════════════╬══════════════════════╬══════════╬════════╬
╔ Initiators
╬══════╬══════════╬════════╬═════════╬
║ TYPE ║ SCHEDULE ║ RUN AT ║ ADDRESS ║
╬══════╬══════════╬════════╬═════════╬
║ web ║ ║ ║ ║
╬══════╬══════════╬════════╬═════════╬
╔ Tasks
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ TYPE ║ CONFIG ║ VALUE ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ httpget ║ confirmations ║ 0 ║
║ ║ url ║ https://bitstamp.net/api/ticker/ ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ jsonparse ║ confirmations ║ 0 ║
║ ║ path ║ ["last"] ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ ethbytes32 ║ confirmations ║ 0 ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
║ ethtx ║ address ║ 0x356a04bce728ba4c62a30294a55e6a8600a320b3 ║
║ ║ confirmations ║ 0 0x609ff1bd ║
║ ║ functionSelector ║ ║
╬════════════╬══════════════════╬════════════════════════════════════════════╬
╔ Runs
╬══════════════════════════════════╬═══════════════════════╬══════════════════════╬═══════════╬════════════════════════════════════════════════════════════════════════════════╬═══════╬
║ ID ║ STATUS ║ CREATED ║ COMPLETED ║ RESULT ║ ERROR ║
╬══════════════════════════════════╬═══════════════════════╬══════════════════════╬═══════════╬════════════════════════════════════════════════════════════════════════════════╬═══════╬
║ 3c4a0de8274249e081addf2addc87d64 ║ pending_confirmations ║ 2018-06-27T21:46:59Z ║ ║ {"value":"0x010e3fcb5b97010e9a21c55aae3cea2724a826202e1bbcc8b7c616fe56cd620c"} ║ ║
╬══════════════════════════════════╬═══════════════════════╬══════════════════════╬═══════════╬════════════════════════════════════════════════════════════════════════════════╬═══════╬