How to generate protojs

To interact with cosmos-sdk based chain application from browser you will need protojs file. This repo helps to generate such js files from given proto file.

Setup

    cd protojs-gen
    npm install 

Step

  • Copy needed protoc files from your chain application to ./proto
  • Run ./gen-protojs.sh this will generate protojs folder with list of files like proto.js