docs: add Netts onboarding steps
This commit is contained in:
12
README.md
12
README.md
@@ -90,3 +90,15 @@ CI 流程(`.github/workflows/ci.yaml`)会执行 `go fmt`, `go vet`, `go test
|
||||
- 监控:可通过 `/healthz` 结合现有 Prometheus/Consul 健康检查;同时建议订阅 Netts 提供的 webhook 以获知能量下发事件。
|
||||
|
||||
更多架构细节、部署流程以及 CI/CD 建议请参阅 `docs/architecture.md` 与 `docs/deployment.md`。
|
||||
|
||||
## Netts 平台接入流程
|
||||
|
||||
在部署本服务之前,请确保完成 Netts Workspace 的账号准备(详见 `docs/deployment.md` 中的“Netts 账号准备流程”):
|
||||
|
||||
1. 注册并登录 [https://netts.io/workspace](https://netts.io/workspace),生成 API Key;
|
||||
2. 在 Wallet 页面充值 TRX,保证账户余额可覆盖租赁费用;
|
||||
3. 在 API 设置中配置服务器出口 IP 白名单;
|
||||
4. 将 API Key、Real IP、回调地址写入 `config.yaml` 或环境变量;
|
||||
5. 通过 `curl https://netts.io/apiv2/userinfo`(携带 `X-API-KEY` 与 `X-Real-IP`)验证连通性。
|
||||
|
||||
完成上述步骤后,才可由本服务调用 Netts 接口完成能量租赁。
|
||||
|
||||
Reference in New Issue
Block a user