turing-wallet-provider 1.2.6 → 1.2.7

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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -169,7 +169,7 @@ interface RequestParam = {
169
169
  serviceFeeRate?: number; // 0-100 poolNFT_version为2有效 不提供默认为25
170
170
  serverProvider_tag?:string; //poolNFT_version为2时为必需字段 poolNFT_version为1无效
171
171
  lpPlan?:number //1或2 不提供默认为1 lp手续费方案, 方案1: LP 0.25% swap服务商 0.09% 协议0.01%; 方案2: LP 0.05% swap服务商 0.29% 协议0.01%
172
- domain?:string // 设置请求后构建及广播交易使用的节点和api服务 只支持https 不提供默认值是https://turingwallet.xyz
172
+ domain?:string // 设置构建及广播交易使用的节点和api服务 只支持https 不提供默认值是turingwallet.xyz 具体结构为https://${domain}/v1/tbc/main
173
173
  };
174
174
 
175
175
  const params = [param:RequestParam] //目前参数里只能放一个对象,有批量发送需求再扩展
@@ -183,7 +183,7 @@ const params = [
183
183
  flag: "P2PKH",
184
184
  satoshis: 1000,
185
185
  address: "",
186
- domain?: "",
186
+ domain: "",
187
187
  },
188
188
  ];
189
189
  const { txid } = await wallet.sendTransaction(params);
@@ -196,7 +196,7 @@ const params = [
196
196
  {
197
197
  flag: "COLLECTION_CREATE",
198
198
  collection_data: "",
199
- domain?: "",
199
+ domain: "",
200
200
  },
201
201
  ];
202
202
  const { txid } = await wallet.sendTransaction(params);
@@ -210,7 +210,7 @@ const params = [
210
210
  flag: "NFT_CREATE",
211
211
  nft_data: "",
212
212
  collection_id: "",
213
- domain?: "",
213
+ domain: "",
214
214
  },
215
215
  ];
216
216
  const { txid } = await wallet.sendTransaction(params);
@@ -224,7 +224,7 @@ const params = [
224
224
  flag: "NFT_TRANSFER",
225
225
  nft_contract_address: "",
226
226
  address: "",
227
- domain?: "",
227
+ domain: "",
228
228
  },
229
229
  ];
230
230
  const { txid } = await wallet.sendTransaction(params);
@@ -237,7 +237,7 @@ const params = [
237
237
  {
238
238
  flag: "FT_MINT",
239
239
  ft_data: "",
240
- domain?: "",
240
+ domain: "",
241
241
  },
242
242
  ];
243
243
  const { txid } = await wallet.sendTransaction(params);
@@ -253,7 +253,7 @@ const params = [
253
253
  ft_amount: 0.1,
254
254
  tbc_amount: 1, //同时转ft和tbc时候可提供参数
255
255
  address: "",
256
- domain?: "",
256
+ domain: "",
257
257
  },
258
258
  ];
259
259
  const { txid } = await wallet.sendTransaction(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turing-wallet-provider",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [