feat: 更新 API 接口为 NAC_Lens/4.0 RPC 风格

- 将旧 REST 风格 API (/api/v1/blocks, /network/stats 等) 改为 NAC_Lens/4.0 RPC 协议
- 新增 nacRpc() 函数,使用 jsonac_lens: '2.0' 协议字段
- 添加旧路径适配层,兼容现有页面逻辑
- nginx 代理从 9551 (nac-explorer-api) 改为 9550 (nac-api-server v3.1.0)
- 覆盖端点: nac_getNetworkStats, nac_getLatestBlocks, nac_getLatestTransactions,
  nac_getTransaction, nac_getAddress, nac_getContract, nac_getAssets, nac_search
- 无 Manus 内联引用
This commit is contained in:
NAC Admin 2026-03-19 00:14:31 +08:00
parent de5eba2da0
commit 699b4a0c6a
1 changed files with 1883 additions and 0 deletions

1883
index.html Normal file

File diff suppressed because it is too large Load Diff