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

chain33 rpc 接口封装

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

chain33 接口调用工具

  • chain33 rpc接口文档
  • http://114.55.101.159:8801 是测试链的一个节点
  • http://120.79.156.149:8801 是正式链的一个节点

开始使用(暂未发布到npm)

npm i chain33-rpc-api -S

工具中不包含promise和fetch的pollyfill, 请根据使用环境自行引入

获取最新节点的最新高度:
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资产

Keywords

FAQs

Package last updated on 30 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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