@clonegod/ttd-base-send-tx 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,6 +71,8 @@ class BlockRazorChannel {
71
71
  const t0 = Date.now();
72
72
  try {
73
73
  const json = await this.rpcCall('eth_sendRawTransaction', [signedTx], timeoutMs);
74
+ // 打印 BlockRazor 返回的完整 JSON-RPC 响应(成功=result 是 txHash;失败=error)
75
+ (0, ttd_core_1.log_info)(`[${this.name}] send response ${Date.now() - t0}ms: ${JSON.stringify(json)}`);
74
76
  if (json?.error) {
75
77
  return { channel: this.name, elapsedMs: Date.now() - t0, error: `RPC: ${json.error.message}` };
76
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-base-send-tx",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "BASE send-tx 服务 + trader 端 SDK (Phase 7 待实现 — 目前为 stub)",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@clonegod/ttd-core": "3.1.80",
16
- "@clonegod/ttd-base-common": "1.1.8",
16
+ "@clonegod/ttd-base-common": "1.1.9",
17
17
  "dotenv": "^16.4.7",
18
18
  "ethers": "^5.8.0",
19
19
  "undici": "^6.25.0"
@@ -86,6 +86,8 @@ export class BlockRazorChannel implements SendChannel {
86
86
  const t0 = Date.now()
87
87
  try {
88
88
  const json = await this.rpcCall('eth_sendRawTransaction', [signedTx], timeoutMs)
89
+ // 打印 BlockRazor 返回的完整 JSON-RPC 响应(成功=result 是 txHash;失败=error)
90
+ log_info(`[${this.name}] send response ${Date.now() - t0}ms: ${JSON.stringify(json)}`)
89
91
  if (json?.error) {
90
92
  return { channel: this.name, elapsedMs: Date.now() - t0, error: `RPC: ${json.error.message}` }
91
93
  }