{"id":24603588,"url":"https://github.com/protofire/hardhat-chainlink-plugin","last_synced_at":"2026-05-19T17:11:39.348Z","repository":{"id":62668670,"uuid":"532892689","full_name":"protofire/hardhat-chainlink-plugin","owner":"protofire","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-01T20:47:15.000Z","size":699,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-29T21:48:31.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/protofire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-05T12:33:01.000Z","updated_at":"2025-05-11T22:05:45.000Z","dependencies_parsed_at":"2022-11-04T08:49:00.632Z","dependency_job_id":null,"html_url":"https://github.com/protofire/hardhat-chainlink-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/protofire/hardhat-chainlink-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fhardhat-chainlink-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fhardhat-chainlink-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fhardhat-chainlink-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fhardhat-chainlink-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protofire","download_url":"https://codeload.github.com/protofire/hardhat-chainlink-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protofire%2Fhardhat-chainlink-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33225418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-24T15:14:44.556Z","updated_at":"2026-05-19T17:11:39.333Z","avatar_url":"https://github.com/protofire.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Chainlink hardhat plugin\n\nThis plugin makes spinning up a local Chainlink node faster and easier, allowing developers to build smart contracts using the Chainlink services.\n\n## Getting Started\n\n### Prerequisites\n\n- node \u003e 16.X\n- npm \u003e 7\n- docker\n\n### Installation\n\n**Step 1:**\n\nInstall `hardhat-chainlink-plugin` hardhat plugin.\n\n```console\nnpm install hardhat-chainlink-plugin\n```\n\n**Step 2:**\n\nOpen Docker Desktop\n\n**Step 3:**\n\nRun hardhat node\n\n```console\nnpx hardhat node\n```\n\n**Step 4:**\n\nSpin up a chainlink node using the following command, which will set-up some env variables. Please do not start it from docker desktop. \n\n```console\nnpx hardhat chainlink:run-node\n```\nIMPORTANT! \n\nEach time this command runs it will remove all containers and re-create them (before running docker compose up we first run docker compose down)\n\nThis behavior is analogous to the hardhat EVM node losing all previous history each time it is restarted.\n\nIf you want to restart only pass an additional `true` parameter (restartOnly) like this `npx hardhat chainlink:run-node true`\n\nIf you visit http://127.0.0.1:6688 in your browser, you should see the chainlink node login page displayed.\n\nYou can use details: username **hardhatuser@protofire.io** and password **password123456789** to login to your local chainlink node.\n\nTo see the available tasks to interact with your node run\n\n```console\nnpx hardhat\n```\n\n**Step 5:**\n\nNext, for your chainlink node to fulfill request it needs to be funded with ETH. To fund your node first you need to get the node info.\n\nRunning the command below does just that.\n\n```console\nnpx hardhat chainlink:node-info --network localhost\n```\n\nOutput will look like this\n\n```console\n┌─────────┬──────────────────────────────────────────────┐\n│ (index) │                    Values                    │\n├─────────┼──────────────────────────────────────────────┤\n│ Address │ '0x786729C810294D47E935aE636F66f6cE35E9B99d' │\n│ Balance │            '0.000000000000000000'            │\n│ ChainID │                   '31337'                    │\n└─────────┴──────────────────────────────────────────────┘\n```\n\nCopy the node address and replace it in the command below to fund your wallet.\n\n```console\nnpx hardhat chainlink:fund-eth 0x244f78C560F6cfcB3baBEe375ae064C6e9259989 20 --network localhost\n```\n\nNow check the node info again, to see the updated balance.\n\n```console\nnpx hardhat chainlink:node-info --network localhost\n```\n\nOutput:\n\n```console\n┌─────────┬──────────────────────────────────────────────┐\n│ (index) │                    Values                    │\n├─────────┼──────────────────────────────────────────────┤\n│ Address │ '0x786729C810294D47E935aE636F66f6cE35E9B99d' │\n│ Balance │            '20.000000000000000000'            │\n│ ChainID │                   '31337'                    │\n└─────────┴──────────────────────────────────────────────┘\n```\n\nIf you login again to your Node UI from http://127.0.0.1:6688 or simply refresh the page if you are still login. You will see the node updated password on the dashboard.\n\n**Step 6:**\n\nDeploy Link token on hardhat. Link Token will be used by Consumer contract to pay for Oracle request.\n\n```console\nnpx hardhat chainlink:deploy-link --network localhost\n```\n\nOutput\n\n```console\n┌────────────────────┬──────────────────────────────────────────────┐\n│      (index)       │                    Values                    │\n├────────────────────┼──────────────────────────────────────────────┤\n│ Link Token Address │ '0x5FbDB2315678afecb367f032d93F642f64180aa3' │\n└────────────────────┴──────────────────────────────────────────────┘\n```\n\n**Step 7:**\n\nDeploy Oracle contract.\n\nPass the chainlink node address as the first parameter and Link Token address as the second parameter.\n\n```console\nnpx hardhat chainlink:deploy-oracle 0xBe576260A47175829f250732421522B7ec204D06 0x5FbDB2315678afecb367f032d93F642f64180aa3 --network localhost\n```\n\nOutput\n\n```console\n┌────────────────┬──────────────────────────────────────────────┐\n│    (index)     │                    Values                    │\n├────────────────┼──────────────────────────────────────────────┤\n│ Oracle Address │ '0x5FbDB2315678afecb367f032d93F642f64180aa3' │\n└────────────────┴──────────────────────────────────────────────┘\n```\n\n**Step 8:**\n\nCreate a chainlink Job.\n\nPass your node username, password, deployed Oracle address and job type (direct | cron).\n\n```console\nnpx hardhat chainlink:create-job 0x5FbDB2315678afecb367f032d93F642f64180aa3 direct\n```\n\nOutput\n\n```console\n┌────────────┬────────────────────────────────────────┐\n│  (index)   │                 Values                 │\n├────────────┼────────────────────────────────────────┤\n│   Status   │               'Success'                │\n│   Error    │                  null                  │\n│   JobID    │                  '1'                   │\n│ ExternalID │ '95cd6192-8dc8-4e1d-903d-3e7b885bc9d5' │\n└────────────┴────────────────────────────────────────┘\n```\n\n\nTROUBLESHOOTING\n--------\n\nIf you turn off the hardhat node all history will get wiped. In that case you will also need to run the chainlink node again using the `chainlink:run-node` command.\n\nIf the chainlink node becomes out of sync (info not updating) then you can run `chainlink:run-node true` which will restart the node without destroying the containers.\n\nTake note of the ExternalID of the Job.\n\n\nRunning locally\n===============\n\nIf you want to test out this commands in this repository you will need to change the initial setup a bit by first running `npm install \u0026\u0026 npm run build` and only after that will you be able to run the hardhat node from the root of this repository. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotofire%2Fhardhat-chainlink-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotofire%2Fhardhat-chainlink-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotofire%2Fhardhat-chainlink-plugin/lists"}