@33cn/chain33-rpc-api
Advanced tools
Comparing version 1.5.11 to 1.5.12
@@ -562,2 +562,9 @@ import HttpProvider from './HttpProvider'; | ||
searchMultiSigAccAllAddress(address: string, url?: string): Promise<any>; | ||
/** | ||
* @description 查询owner地址拥有的多重签名账户列表 | ||
* @param {string} address owner地址,不指定地址时获取本钱包所有地址拥有的多重签名账户列表 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
searchMultiSigAddresList(address?: string, url?: string): Promise<any>; | ||
/**pass | ||
@@ -810,2 +817,3 @@ * @description 多重签名账户增加owner(未签名) | ||
callPromiseAPI(apiName: string, params?: any, url?: string, prefix?: string, method?: string): Promise<any>; | ||
callAPIWithoutHandler(apiName: string, params?: any, url?: string, prefix?: string, method?: string): Promise<any>; | ||
} |
@@ -268,3 +268,10 @@ "use strict"; | ||
if (url === void 0) { url = ''; } | ||
return this.getTxByAddr({ addr: addr, flag: flag, count: count, direction: direction, height: height, index: index }, url) | ||
return this.callAPIWithoutHandler('GetTxByAddr', { | ||
addr: addr, | ||
flag: flag, | ||
count: count, | ||
direction: direction, | ||
height: height, | ||
index: index, | ||
}, url) | ||
.then(function (res) { | ||
@@ -357,4 +364,4 @@ if (res.error) { | ||
payload: { | ||
data: key | ||
} | ||
data: key, | ||
}, | ||
}); | ||
@@ -1042,2 +1049,17 @@ }; | ||
}; | ||
/** | ||
* @description 查询owner地址拥有的多重签名账户列表 | ||
* @param {string} address owner地址,不指定地址时获取本钱包所有地址拥有的多重签名账户列表 | ||
* @param {string} [url=''] | ||
* @returns {Promise<any>} | ||
*/ | ||
BtyBaseSdk.prototype.searchMultiSigAddresList = function (address, url) { | ||
if (address === void 0) { address = ''; } | ||
if (url === void 0) { url = ''; } | ||
return this.callPromiseAPI('Query', { | ||
execer: 'multisig', | ||
funcName: 'MultiSigAccAllAddress', | ||
payload: { multiSigAccAddr: address }, | ||
}, url); | ||
}; | ||
// //------------------owner | ||
@@ -1502,2 +1524,17 @@ /**pass | ||
}; | ||
BtyBaseSdk.prototype.callAPIWithoutHandler = function (apiName, params, url, prefix, method) { | ||
if (params === void 0) { params = {}; } | ||
if (url === void 0) { url = ''; } | ||
if (prefix === void 0) { prefix = 'Chain33'; } | ||
if (method === void 0) { method = ''; } | ||
return this.httpProvider.doFetch({ | ||
url: url, | ||
postdata: { | ||
id: +new Date(), | ||
jsonrpc: '2.0', | ||
method: method || prefix + "." + apiName, | ||
params: [params], | ||
}, | ||
}); | ||
}; | ||
return BtyBaseSdk; | ||
@@ -1504,0 +1541,0 @@ }()); |
{ | ||
"name": "@33cn/chain33-rpc-api", | ||
"version": "1.5.11", | ||
"version": "1.5.12", | ||
"description": "chain33 rpc 接口封装", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146483
2918