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

tron-protocol-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tron-protocol-node

Node.js wrapper for Tron protocol. Compiled from tronprotocol/protocol, commit : 0f02cfd.

  • 1.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Tron Node Protocol

This npm package contains the compiled to node.js tron protocol gRPC API code.
The code was compiled from https://github.com/tronprotocol/protocol

Introduction

Tron protocol offers two ways to communicate with nodes : http and gRPC API.
The gRPC API is specified with google protobuf, which is a mechanism for serializing structured data and an Interface Description Language.
Google Protobuf code can be compiled to different languages - C++, Java, Node.js, etc.
This package is a compiled to Node.js google protobuf code.

Steps to compile the code :

Download the latest version of the protocol
git clone https://github.com/tronprotocol/protocol.git && cd protocol/
Install google apis required for the compilation process
./install-googleapis.sh
Create a folder which will contain the artifacts from the compilation
mkdir node-protocol/
Install grpc compilation tools
npm i -g grpc-tools
Run the compilation command for protocol/api/ files (artifacts are in node-protocol/api -> api_pb.js and api_grpc_pb.js)
protoc --js_out=import_style=commonjs,binary:node-protocol/ --grpc_out=node-protocol/ --plugin=protoc-gen-grpc=\`which grpc_tools_node_protoc_plugin` api/api.proto
Run the compilation command for protocol/core/ files (artifacts are in node-protocol/core)
protoc --js_out=import_style=commonjs,binary:node-protocol/ core/*

FAQs

Package last updated on 11 Mar 2019

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