{"id":15594125,"url":"https://github.com/mathu97/hello-world-eth-smart-contract","last_synced_at":"2025-06-27T00:07:32.435Z","repository":{"id":122066072,"uuid":"453263442","full_name":"mathu97/hello-world-eth-smart-contract","owner":"mathu97","description":"A simple hello world Ethereum Smart Contract","archived":false,"fork":false,"pushed_at":"2022-01-29T02:45:03.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T06:28:50.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathu97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-29T01:09:15.000Z","updated_at":"2022-01-29T02:38:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"eee247c0-7e50-4272-b201-46ca2eaa5402","html_url":"https://github.com/mathu97/hello-world-eth-smart-contract","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mathu97/hello-world-eth-smart-contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fhello-world-eth-smart-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fhello-world-eth-smart-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fhello-world-eth-smart-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fhello-world-eth-smart-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathu97","download_url":"https://codeload.github.com/mathu97/hello-world-eth-smart-contract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fhello-world-eth-smart-contract/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262164295,"owners_count":23268780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-03T00:25:12.252Z","updated_at":"2025-06-27T00:07:32.415Z","avatar_url":"https://github.com/mathu97.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-world-eth-smart-contract\n\n## Setup\n\n`npm install`\n\n## Set Alchemy and your EOA wallet private key as environment variables\n\ncreate a `.env` file and add the following\n```\nAPI_URL = \"\u003capi-url-from-alchemy\u003e\nPRIVATE_KEY = \"\u003ceoa-private-key\u003e\"\n```\n\n## Compile\n\n`npx hardhat compile`\n\n## Deploy\n\nI used rinkeby, but you can set it to whatever ethereum test network you want to use. Remember to edit the `hardhat.config.js` file if you wanted to use another test network.\n\n`npx hardhat run scripts/deploy.js --network rinkeby`\n\n\n## Sending a transaction to smart contract\n\nSet the `eoaWalletAddress` and `contractAddress` constants to your own wallet address and contract address respectively, in the `client/sendTransaction.js` file.\n\nRun `node client/sendTransaction.js`, which will log the current message set on the contract (should be \"Hello World!\" when run for the first time), then sets the message to \"Hello Mars!\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathu97%2Fhello-world-eth-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathu97%2Fhello-world-eth-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathu97%2Fhello-world-eth-smart-contract/lists"}