Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@33cn/chain33-rpc-api

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@33cn/chain33-rpc-api - npm Package Compare versions

Comparing version 1.5.11 to 1.5.12

8

dist/index.d.ts

@@ -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>;
}

43

dist/index.js

@@ -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 @@ }());

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc