1.0.0-rc.0 • Published 5 years ago
@bitgo/tron-lib v1.0.0-rc.0
BitGo Account Lib
Signing and transaction building logic for account-based coins.
Generating protobufs
To generate static code from the proto files, run:
cd resources/trx/protobuf/
node ../../../node_modules/protobufjs/cli/bin/pbjs -t static-module -w commonjs -o tron.js Discover.proto Contract.proto tron.proto
Then, to generate the respective TypeScript definitions:
node ../../../node_modules/protobufjs/cli/bin/pbts -o tron.d.ts tron.js