New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chain33-rpc-api

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain33-rpc-api - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

3

dist/HttpProvider.js

@@ -50,3 +50,4 @@ "use strict";

else {
const error = new Error(response.statusText + ': ' + response);
const error = new Error(response.statusText);
error.response = response;
throw error;

@@ -53,0 +54,0 @@ }

@@ -37,3 +37,3 @@ import HttpProvider from './HttpProvider';

*/
sendRawTransition(unsignTx: string, sign: string, pubkey: string, ty?: number): Promise<any>;
sendRawTransaction(unsignTx: string, sign: string, pubkey: string, ty?: number): Promise<any>;
/**

@@ -158,7 +158,7 @@ * @description 发送交易

* @description 查询指定创建成功的token
* @param {string} data
* @param {string} tokenSymbol 指定token的symbol
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
getTokenInfo(data: string): Promise<any>;
getTokenInfo(tokenSymbol: string): Promise<any>;
/**

@@ -165,0 +165,0 @@ * @description 获取版本

@@ -56,3 +56,3 @@ "use strict";

*/
sendRawTransition(unsignTx, sign, pubkey, ty = 1) {
sendRawTransaction(unsignTx, sign, pubkey, ty = 1) {
return this.callPromiseAPI('SendRawTransaction', {

@@ -295,7 +295,7 @@ unsignTx,

* @description 查询指定创建成功的token
* @param {string} data
* @param {string} tokenSymbol 指定token的symbol
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
getTokenInfo(data) {
getTokenInfo(tokenSymbol) {
return this.callPromiseAPI('Query', {

@@ -305,3 +305,3 @@ execer: 'token',

payload: {
data,
data: tokenSymbol,
},

@@ -308,0 +308,0 @@ });

{
"name": "chain33-rpc-api",
"version": "1.1.0",
"version": "1.2.0",
"description": "chain33 rpc 接口封装",

@@ -21,3 +21,2 @@ "main": "dist/index.js",

"devDependencies": {
"@types/es6-promise": "^3.3.0",
"tslint": "^5.11.0",

@@ -24,0 +23,0 @@ "typescript": "^3.1.6"

# chain33 接口调用工具
- [chain33 rpc接口文档](https://confluence.33.cn/pages/viewpage.action?pageId=3670318)
- [chain33 rpc接口文档](https://chain.33.cn/document/95)
- http://114.55.101.159:8801 是测试链的一个节点

@@ -20,26 +20,1 @@ - http://120.79.156.149:8801 是正式链的一个节点

+ npm i bluebird
##### 获取最新节点的最新高度:
```
let chain33Rpc = new Chain33Rpc('http://114.55.101.159:8801')
chain33Rpc.getLasterHeader().then(res => {
const { height } = res
console.log('height', height)
})
```
##### 根据哈希查询交易信息 QueryTransaction
##### 根据地址获取交易信息 GetTxByAddr
##### 根据哈希数组批量获取交易信息 GetTxByHashes
##### 根据哈希获取交易的字符串 GetHexTxByHash
##### 获取地址相关摘要信息 GetAddrOverview
##### 将合约名转化成chain33中的实际地址ConvertExectoAddr
... 5.x 6.x 9
##### 11.7 查询所有创建成功的token
##### 11.8 查询地址下的token/trace合约下的token资产
##### 11.12 查询token相关的交易
##### 11.13 查询指定创建成功的token信息
##### 11.8 查询地址下的token/trace合约下的token资产

Sorry, the diff of this file is not supported yet

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