{"id":17670246,"url":"https://github.com/evbots/ethereum_tutorials","last_synced_at":"2026-03-17T01:38:25.975Z","repository":{"id":26730441,"uuid":"109642174","full_name":"evbots/ethereum_tutorials","owner":"evbots","description":"Smart contract examples for getting started with Ethereum.","archived":false,"fork":false,"pushed_at":"2022-02-26T19:25:54.000Z","size":38,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T22:42:58.449Z","etag":null,"topics":["ethereum","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"","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/evbots.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}},"created_at":"2017-11-06T03:16:58.000Z","updated_at":"2024-09-24T08:46:57.000Z","dependencies_parsed_at":"2022-07-27T08:52:09.851Z","dependency_job_id":null,"html_url":"https://github.com/evbots/ethereum_tutorials","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evbots%2Fethereum_tutorials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evbots%2Fethereum_tutorials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evbots%2Fethereum_tutorials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evbots%2Fethereum_tutorials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evbots","download_url":"https://codeload.github.com/evbots/ethereum_tutorials/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160727,"owners_count":21863624,"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":["ethereum","smart-contracts","solidity"],"created_at":"2024-10-24T01:42:16.722Z","updated_at":"2026-03-17T01:38:20.949Z","avatar_url":"https://github.com/evbots.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Ethereum Tutorials\n\nThese contracts come from the [Ethereum Go Wiki Tutorial section](https://github.com/ethereum/go-ethereum/wiki/Contract-Tutorial).\nI have modified the build process, but the contract code is exactly the same.\n\n### TL;DR\nDeploy these contracts with the following commands:\n```\nyarn deployGreeterContract\n\nyarn deployCoinContract\n\nTOKEN_CONTRACT_ADDRESS='token_address' yarn deployCrowdfundContract\n```\n\n### Background\n\nIn order to test these contracts, I advise you to run a node connected to an Ethereum testnet like ropsten. These instructions include connecting to the ropsten test net.\n\n### Setup\n\nThese contracts were compliled and deployed with the following software versions:\n* Geth/v1.8.3-stable\n* Node v6.11.1\n* Yarn 1.3.2\n\nAfter cloning this repository, install dependencies.\n```\nyarn install\n```\n\nMake sure geth is running with the testnet and rpc options, if it's not already. If this is your first time running geth on the testnet, you will most likely need to let your node sync the blockchain (30 minutes).\n```\ngeth --testnet --rpc\n```\n\nJump into the geth console. The following path assumes MacOS. Adjust accordingly.\n```\ngeth attach '/Users/USER_HERE/Library/Ethereum/testnet/geth.ipc'\n```\n\nIf you don't have an account yet then create one in the geth console. After creating an account, use a testnet faucet to send Ether to it. You'll need to spend it to mine a contract into the blockchain.\n```\n\u003e personal.newAccount();\n```\n\nThen unlock your account for spending money to mine a contract.\n```\n\u003e personal.unlockAccount(eth.accounts[0], \u003cPassword here\u003e, 50000);\n```\n\nNow, assuming you are in this project's directory, compile and run one of the scripts to deploy a contract:\n```\nyarn deployGreeterContract\n```\n\nThis will reach out to geth via over your local network via it's API, and attempt to create the contract. \n\nIf geth has synced to the latest block, then you'll see an object containing the address and abi for the contract printed, as well as a helpful command to initialize the contract in the geth console.\n\nInside the geth javascript console, create your initialize your contract with the following code, or use the command printed out by the build script.\n```\n\u003e var myContract = web3.eth.contract(YOUR_ABI).at(YOUR_CONTRACT_ADDRESS);\n```\n\nYou can now call your contract methods. For example:\n```\n\u003e myContract.greet();\n```\nand\n```\n\u003e myContract.kill();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevbots%2Fethereum_tutorials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevbots%2Fethereum_tutorials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevbots%2Fethereum_tutorials/lists"}