0.0.28 • Published 5 years ago

tronix.js v0.0.28

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
5 years ago

tronix.js

Javascript API for the Tron Protocol via GRPC

Installation

npm install --save tronix.js

Usage

const { GrpcClient, SolidityGrpcClient } = require('tronix.js');

const client = new GrpcClient({
  hostname: '99.99.99.99',
  port: 50051,
});

const solidityClient = new SolidityGrpcClient({
  hostname: '88.88.88.88',
  port: 50051,
});

async function run() {
  const blcknumber = await client.getBlockByNumber(1234);
  const blck = await client.getNowBlock();
  const assets = await solidityClient.getAssetIssueList();
}

run();

You can check a public list of TRON nodes here: Official_Public_Node.md

Full/Solidity Node REST Gateway

Find a full example of use below, It will build a full REST API of your node automatically: tronix.js-gateway

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

License

LGPL-3.0

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago