{"id":17383709,"url":"https://github.com/manguilar22/construct-block","last_synced_at":"2026-04-18T15:32:48.074Z","repository":{"id":187337206,"uuid":"302244365","full_name":"manguilar22/construct-block","owner":"manguilar22","description":"Ethereum Application Development","archived":false,"fork":false,"pushed_at":"2020-12-18T03:46:27.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-08-09T23:29:46.567Z","etag":null,"topics":["ethereum","ethereum-blockchain","golang-server","shell-scripts"],"latest_commit_sha":null,"homepage":"","language":"Go","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/manguilar22.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}},"created_at":"2020-10-08T05:50:48.000Z","updated_at":"2023-08-09T23:29:49.895Z","dependencies_parsed_at":"2023-08-09T23:40:48.701Z","dependency_job_id":null,"html_url":"https://github.com/manguilar22/construct-block","commit_stats":null,"previous_names":["manguilar22/construct-block"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manguilar22%2Fconstruct-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manguilar22%2Fconstruct-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manguilar22%2Fconstruct-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manguilar22%2Fconstruct-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manguilar22","download_url":"https://codeload.github.com/manguilar22/construct-block/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924515,"owners_count":20694730,"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","ethereum-blockchain","golang-server","shell-scripts"],"created_at":"2024-10-16T07:43:34.165Z","updated_at":"2026-04-18T15:32:48.016Z","avatar_url":"https://github.com/manguilar22.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ethereum Blockchain Development  \n\n### Environment Variables \n\n```\n# Ethereum Config\nexport VERSION=\"0\"                      # 0=host, 1=HTTP\n## Wallet\nexport DATADIR=\"\"                       # Ethereum Keystore\nexport KEYSTORE=$DATADIR\"\"              # Keystore File Directory\n## Networking\nexport ETH_NETWORK_ID=\"\"                # Chain ID\nexport HOSTNAME=\"\"                      # HTTP, Web Socket, RPC\n## Application Credentials\nexport PUBLIC_KEY=\"\"                    # Signing Hex Address\nexport PRIVATE_KEY=\"\"                   # Private Key Hex Address\nexport PASSWORD_FILE=\"\"                 # KeyStore Password (Unlock Account)\n# Ethereum - Swarm Config \nexport $SWARM_NODE_NAME=\"\"\nexport IPC_FILE=\"\"\nexport SWARM_DATADIR=\"\"\nexport SWARM_ACCOUNT=\"\"\nexport SWARM_ACCOUNT_PASSWORD=\"\"\n```\n\n### REST-API \n\n```\n~$ go run node.go \n```\n\n* / \n* /blockchain \n* /accounts \n* /accounts/id/*:num* \n* /accounts/*:account* \n* /accounts/*:account*/balance \n* /accounts/balance \n* /eth \n* /eth/blocks \n* /eth/blocks/tx \n\n### Creating an Ethereum Account \n\n```bash \ngeth --datadir ./myNode1 new account  \n```\n\n**Save Public Key** \n\n#### Generate Genesis Block\n\n```bash \npuppeth\n```\n\n**Consensus Algorithm**: Cleque\n\n#### Initialize Genesis Block \n\n```bash \ngeth --datadir ./myNode1 init genesis_block.json \n```\n\n### Ethereum Node Setup \n\n* scripts/config.sh\n    * Environment variables  \n* scripts/startU18.sh \n    * Start Ethereum node on Ubuntu \n* scripts/startBSD.sh \n    * Start Ethereum node on FreeBSD \n* scripts/GethFunc.js \n    * Use Ethereum management API's to perform operations on the blockchain.\n\n#### Signing Address \n \n```\nexport PUBLIC_KEY=\"0x...\"\n```\n\n#### Ethereum Node Options \n\n*construct-block/scripts/startU18.sh* \n\n``` \ngeth \n--networkid 2020\n--datadir ./node1/\n--preload ./scripts/GethFunc.js\n--http\n--http.addr \"0.0.0.0\" \n--http.port 8545\n--rpccorsdomain \"*\"\n--rpcaddr \"0.0.0.0\"\n--rpcapi \"eth,admin,rpc,txpool,net,web3,personal,miner,debug\"\n--unlock $PUBLIC_KEY\n--password $PASSWORD_FILE\n--verbosity 7\n--syncmode \"full\"\n--allow-insecure-unlock\n--mine\n--miner.threads 8\n--metrics                                                 # http://localhost:6060/debug/metrics \n--metrics.expensive                                       # http://localhost:6060/debug/metrics/prometheus\n--metrics.addr \"0.0.0.0\" \n--pprof                                                   # http://localhost:6060/debug/pprof  \n--pprof.addr \"0.0.0.0\"                                    \nconsole 2\u003e\u003e Eth.log\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanguilar22%2Fconstruct-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanguilar22%2Fconstruct-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanguilar22%2Fconstruct-block/lists"}