index.js 267 B

12345678910
  1. import grpc from 'grpc'
  2. import {
  3. QueryService_v1Client as QueryService,
  4. CommandService_v1Client as CommandService
  5. } from 'iroha-helpers/lib/proto/endpoint_grpc_pb'
  6. const commandService = new CommandService(
  7. IROHA_ADDRESS,
  8. grpc.credentials.createInsecure()
  9. )