{"id":47886364,"url":"https://github.com/blockchainhelp-eu/api-documentation","last_synced_at":"2026-04-04T02:18:22.003Z","repository":{"id":98671389,"uuid":"238277634","full_name":"blockchainhelp-eu/API-Documentation","owner":"blockchainhelp-eu","description":"Creating API for integration purpose (SAP Module) ","archived":false,"fork":false,"pushed_at":"2020-02-05T17:19:26.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-09T17:26:18.619Z","etag":null,"topics":["api-client","api-development","api-rest","blockchain-developers","sap-blockchain"],"latest_commit_sha":null,"homepage":"https://blockchainhelp.pro/portfolio","language":"TypeScript","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/blockchainhelp-eu.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,"governance":null}},"created_at":"2020-02-04T18:36:19.000Z","updated_at":"2020-02-05T17:19:28.000Z","dependencies_parsed_at":"2023-11-13T13:43:09.826Z","dependency_job_id":null,"html_url":"https://github.com/blockchainhelp-eu/API-Documentation","commit_stats":null,"previous_names":["blockchainhelp-eu/api-documentation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blockchainhelp-eu/API-Documentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchainhelp-eu%2FAPI-Documentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchainhelp-eu%2FAPI-Documentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchainhelp-eu%2FAPI-Documentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchainhelp-eu%2FAPI-Documentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blockchainhelp-eu","download_url":"https://codeload.github.com/blockchainhelp-eu/API-Documentation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchainhelp-eu%2FAPI-Documentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31384925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"online","status_checked_at":"2026-04-04T02:00:07.569Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-client","api-development","api-rest","blockchain-developers","sap-blockchain"],"created_at":"2026-04-04T02:18:21.426Z","updated_at":"2026-04-04T02:18:21.985Z","avatar_url":"https://github.com/blockchainhelp-eu.png","language":"TypeScript","readme":"## 开始\n\n在本教程中，你将构建一个功能性的 [Cosmos SDK](https://github.com/cosmos/cosmos-sdk/) 应用。过程中能学习基本的概念和SDK的结构。该示例将展示如何基于 Cosmos SDK 快速、轻松地**从头开始构建自己的区块链**。\n\n在本章教程结束时，你会得到一个功能性的`nameservice`应用，一个字符串对字符串的映射关系表(`map[string]string`)。类似于[Namecoin](https://namecoin.org/)，[ENS](https://ens.domains/)，[Handshake](https://handshake.org/)这些模仿传统的DNS系统（`map[domain]zonefile`）的应用。用户可以购买未被使用的域名，或是出售/交易这些域名。\n\n本教程的所有最终源代码都在此[目录](https://github.com/cosmos/sdk-tutorials/nameservice)（并编译）。但是，最好手动完成并尝试自己构建项目！\n\n### 需要\n\n- 安装 [`golang` \u003e1.13.0](https://golang.org/doc/install)\n- 生效的[`$GOPATH`](https://github.com/golang/go/wiki/SettingGOPATH)\n- 创造属于你自己区块链的意愿！\n\n### 教程\n\n通过本章教程你将创建如下的文件来组成你的应用:\n\n```\n./nameservice\n├── Makefile\n├── Makefile.ledger\n├── app.go\n├── cmd\n│   ├── nscli\n│   │   └── main.go\n│   └── nsd\n│       └── main.go\n├── go.mod\n├── go.sum\n└── x\n    └── nameservice\n        ├── alias.go\n        ├── client\n        │   ├── cli\n        │   │   ├── query.go\n        │   │   └── tx.go\n        │   └── rest\n        │       ├── query.go\n        │       ├── rest.go\n        │       └── tx.go\n        ├── genesis.go\n        ├── handler.go\n        ├── internal\n        │   ├── keeper\n        │   │   ├── keeper.go\n        │   │   └── querier.go\n        │   └── types\n        │       ├── codec.go\n        │       ├── errors.go\n        │       ├── key.go\n        │       ├── msgs.go\n        │       ├── querier.go\n        │       └── types.go\n        └── module.go\n```\n\n首先创建一个新的git仓库：\n\n```bash\nmkdir -p $GOPATH/src/github.com/{ .Username }/nameservice\ncd $GOPATH/src/github.com/{ .Username }/nameservice\ngit init\n```\n\n然后继续！第一步描述了设计你的应用。如果要直接跳转到编码部分，你可以从[第二步]()开始。\n\n#### 教程部分\n\n1. [设计](./01-app-design.md) 应用程序。\n2. 从[`./app.go`](./02-app-init.md) 开始实现你的应用。\n3. Start building your module by defining some basic [`Types`](./03-types.md).\n4. 开始用[`Keeper`](./04-keeper.md)构建你的模块。\n5. 通过[`Msg`和`Handler`](./05-msgs-handlers.md)定义状态转变。\n   - [`SetName`](./06-set-name.md)\n   - [`BuyName`](./07-buy-name.md)\n6. 使用[`Querier`](./08-queriers.md)给你的状态机创建视图。\n7. 使用[`sdk.Codec`](./09-codec.md)注册你的types到编码格式中。\n8. 创建[你的模块的CLI交互](./10-cli.md)。\n9. 创建[客户端访问你的nameservice的HTTP路径](./11-rest.md)。\n10. 导入你的模块并[编译你的应用](./12-app-complete.md)!\n11. 创建你的应用的[`nsd`和`nscli`入口](./13-entrypoint.md)。\n12. 安装[依赖管理工具`go.mod`](./14-dep.md)。\n13. [编译并启动](./15-build-run.md)示例项目。\n14. [启动REST路径](./16-run-rest.md)。","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockchainhelp-eu%2Fapi-documentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockchainhelp-eu%2Fapi-documentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockchainhelp-eu%2Fapi-documentation/lists"}