请求域名 正式环境: https://api.nusd.me 测试环境: https://apidev.nusd.me
字段说明
API_KEY公钥 生成方式参考生成 公钥和私钥
API_SECRET私钥 生成方式参考生成 公钥和私钥
wallet_id钱包id

Wallet ID 申请与配置指南

1️⃣ 提交申请

请发送邮件至 [email protected],并提供以下信息:
  • 公司/项目名称
  • 联系人姓名及邮箱
  • 业务场景简述

2️⃣ 配置项目

我们将根据您的需求进行以下设置:
  • 创建钱包
  • 绑定项目信息
  • 分配管理员权限
  • 配置支持的链及币种

3️⃣ 获取凭证

配置完成后,我们会将 wallet_id 发送至管理员邮箱。

🔐 重要提醒

  • 请妥善保管您的 wallet_id,切勿在公开渠道泄露。
  • 如需变更管理员或调整项目配置,请联系技术支持。
如果您有任何疑问,欢迎随时通过邮件与我们联系。

生成 公钥和私钥

生成一对 Ed25519 密钥对作为 API Key 和 API Secret。
  1. 在终端窗口中,运行以下 OpenSSL 命令:
# Generate a private key and save it in the `private.key.pem` file.
openssl genpkey -algorithm ed25519 -out private_key.pem

# Extract the public key from the private key and save it in the `public.key.pem` file.
openssl pkey -in private_key.pem -pubout -out public_key.pem
私钥保存在 private.key.pem 文件中,公钥保存在 public.key.pem 文件中。
  1. 您可以通过运行以下命令打印密钥:
# Export the private key in hexadecimal format.
openssl pkey -in private_key.pem -text | grep 'priv:' -A 3 | tail -n +2 | tr -d ':\n '

# Export the public key in hexadecimal format.
openssl pkey -pubin -in public_key.pem -text | grep 'pub:' -A 3 | tail -n +2 | tr -d ':\n '