code: func NewTransactor(reqCtx reqContext.Context, cfg fab.ChannelCfg) (*Transactor, error) {
  
  	ctx, ok := contextImpl.RequestClientContext(reqCtx)
  	if !ok {
  		return nil, errors.New("failed get client context from reqContext for create new transactor")
  	}
  
  	orderers, err := orderersFromChannelCfg(ctx, cfg)
  	if err != nil {
  		return nil, errors.WithMessage(err, "reading orderers from channel config failed")
  	}
  	// TODO: adjust integration tests to always have valid orderers (even when doing only queries)
  	//if len(orderers) == 0 {
  	//	return nil, errors.New("orderers are not configured")
  	//}
  
  	t := Transactor{
  		reqCtx:    reqCtx,
  		ChannelID: cfg.ID(),
  		orderers:  orderers,
  	}
  	return &t, nil
  }
docs: // NewTransactor returns a Transactor for the current context and channel config.