{"id":22745907,"url":"https://github.com/tr1sm0s1n/go-dapp-example","last_synced_at":"2026-04-09T22:52:04.500Z","repository":{"id":183078583,"uuid":"669177656","full_name":"tr1sm0s1n/go-dapp-example","owner":"tr1sm0s1n","description":"DApp example of deploying and interacting with Solidity smart contract using Go.","archived":false,"fork":false,"pushed_at":"2024-05-11T16:58:37.000Z","size":103,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-12T15:52:17.248Z","etag":null,"topics":["api","dapp","ethereum","events","gin","gin-gonic","go","go-ethereum","golang","smart-contracts","solidity","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tr1sm0s1n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-07-21T14:30:22.000Z","updated_at":"2024-06-19T07:38:25.798Z","dependencies_parsed_at":"2024-04-14T05:33:03.929Z","dependency_job_id":"3e01fea5-b4aa-44ca-bb72-3f3e0da36559","html_url":"https://github.com/tr1sm0s1n/go-dapp-example","commit_stats":null,"previous_names":["demystif/go-dapp-example","tr1sm0s1n/go-dapp-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1sm0s1n%2Fgo-dapp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1sm0s1n%2Fgo-dapp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1sm0s1n%2Fgo-dapp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr1sm0s1n%2Fgo-dapp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tr1sm0s1n","download_url":"https://codeload.github.com/tr1sm0s1n/go-dapp-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277360,"owners_count":20751549,"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":["api","dapp","ethereum","events","gin","gin-gonic","go","go-ethereum","golang","smart-contracts","solidity","websocket"],"created_at":"2024-12-11T02:09:14.447Z","updated_at":"2026-04-09T22:52:04.489Z","avatar_url":"https://github.com/tr1sm0s1n.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-DApp-Example\n\nDApp example of deploying and interacting with Solidity smart contract using Go.\n\n## 🛠 Built With\n\n[![Go Badge](https://img.shields.io/badge/Go-00ADD8?logo=go\u0026logoColor=fff\u0026style=for-the-badge)](https://go.dev/)\n[![Gin Badge](https://img.shields.io/badge/Gin-008ECF?logo=gin\u0026logoColor=fff\u0026style=for-the-badge)](https://gin-gonic.com/)\n[![Geth Badge](https://img.shields.io/badge/Geth-3C3C3D?logo=ethereum\u0026logoColor=fff\u0026style=for-the-badge)](https://geth.ethereum.org/)\n[![Solidity Badge](https://img.shields.io/badge/Solidity-363636?logo=solidity\u0026logoColor=fff\u0026style=for-the-badge)](https://soliditylang.org/)\n\n## ⚙️ Run Locally\n\nClone the project.\n\n```bash\ngit clone https://github.com/tr1sm0s1n/go-dapp-example.git\ncd go-dapp-example\n```\n\nInstall **abigen**.\n\n```bash\ngo install github.com/ethereum/go-ethereum/cmd/abigen@latest\n```\n\nGenerate Go binding for contract.\n\n```bash\nabigen --v2 --bin lib/Cert.bin --abi lib/Cert.json --pkg lib --type Cert --out lib/Cert.go\n```\n\nRun a blockchain simulation on port **8545** (both http \u0026 ws). Copy a valid private key (omit '0x') and export it.\n\n```bash\nexport PRIVATE_KEY=\u003cprivate-key\u003e\n```\n\nDeploy the contract.\n\n```bash\ngo run ./cmd/deploy.go\n```\n\nCopy the contract address from the terminal and export it.\n\n```bash\nexport CONTRACT_ADDRESS=\u003ccontract-address\u003e\n```\n\nStart the application.\n\n```bash\ngo run .\n```\n\nStart the event listener (new terminal).\n\n```bash\ngo run ./events/events.go\n```\n\nIssue a certificate (new terminal).\n\n```bash\ncurl -X POST http://localhost:8080/issue -H \"Content-Type: application/json\" -d '{\"id\": 626, \"name\": \"Jane\", \"course\": \"MBCC\", \"grade\": \"A\", \"date\": \"04-06-25\"}'\n```\n\nFetch a certificate.\n\n```bash\ncurl http://localhost:8080/fetch/626\n```\n\nGet event logs.\n\n```bash\ncurl http://localhost:8080/events\n```\n\n## 📜 License\n\nClick [here](./LICENSE.md).\n\n## 🎗️ Contributing\n\nClick [here](./CONTRIBUTING.md).\n\n## ⚖️ Code of Conduct\n\nClick [here](./CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftr1sm0s1n%2Fgo-dapp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftr1sm0s1n%2Fgo-dapp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftr1sm0s1n%2Fgo-dapp-example/lists"}