github.com/decred/dcrlnd@v0.7.6/lnrpc/lightning.pb.gw.go (about)

     1  // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
     2  // source: lightning.proto
     3  
     4  /*
     5  Package lnrpc is a reverse proxy.
     6  
     7  It translates gRPC into RESTful JSON APIs.
     8  */
     9  package lnrpc
    10  
    11  import (
    12  	"context"
    13  	"io"
    14  	"net/http"
    15  
    16  	"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
    17  	"github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
    18  	"google.golang.org/grpc"
    19  	"google.golang.org/grpc/codes"
    20  	"google.golang.org/grpc/grpclog"
    21  	"google.golang.org/grpc/metadata"
    22  	"google.golang.org/grpc/status"
    23  	"google.golang.org/protobuf/proto"
    24  )
    25  
    26  // Suppress "imported and not used" errors
    27  var _ codes.Code
    28  var _ io.Reader
    29  var _ status.Status
    30  var _ = runtime.String
    31  var _ = utilities.NewDoubleArray
    32  var _ = metadata.Join
    33  
    34  func request_Lightning_WalletBalance_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    35  	var protoReq WalletBalanceRequest
    36  	var metadata runtime.ServerMetadata
    37  
    38  	msg, err := client.WalletBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    39  	return msg, metadata, err
    40  
    41  }
    42  
    43  func local_request_Lightning_WalletBalance_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    44  	var protoReq WalletBalanceRequest
    45  	var metadata runtime.ServerMetadata
    46  
    47  	msg, err := server.WalletBalance(ctx, &protoReq)
    48  	return msg, metadata, err
    49  
    50  }
    51  
    52  func request_Lightning_ChannelBalance_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    53  	var protoReq ChannelBalanceRequest
    54  	var metadata runtime.ServerMetadata
    55  
    56  	msg, err := client.ChannelBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    57  	return msg, metadata, err
    58  
    59  }
    60  
    61  func local_request_Lightning_ChannelBalance_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    62  	var protoReq ChannelBalanceRequest
    63  	var metadata runtime.ServerMetadata
    64  
    65  	msg, err := server.ChannelBalance(ctx, &protoReq)
    66  	return msg, metadata, err
    67  
    68  }
    69  
    70  var (
    71  	filter_Lightning_GetTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
    72  )
    73  
    74  func request_Lightning_GetTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    75  	var protoReq GetTransactionsRequest
    76  	var metadata runtime.ServerMetadata
    77  
    78  	if err := req.ParseForm(); err != nil {
    79  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    80  	}
    81  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_GetTransactions_0); err != nil {
    82  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    83  	}
    84  
    85  	msg, err := client.GetTransactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    86  	return msg, metadata, err
    87  
    88  }
    89  
    90  func local_request_Lightning_GetTransactions_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    91  	var protoReq GetTransactionsRequest
    92  	var metadata runtime.ServerMetadata
    93  
    94  	if err := req.ParseForm(); err != nil {
    95  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    96  	}
    97  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_GetTransactions_0); err != nil {
    98  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    99  	}
   100  
   101  	msg, err := server.GetTransactions(ctx, &protoReq)
   102  	return msg, metadata, err
   103  
   104  }
   105  
   106  var (
   107  	filter_Lightning_EstimateFee_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   108  )
   109  
   110  func request_Lightning_EstimateFee_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   111  	var protoReq EstimateFeeRequest
   112  	var metadata runtime.ServerMetadata
   113  
   114  	if err := req.ParseForm(); err != nil {
   115  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   116  	}
   117  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_EstimateFee_0); err != nil {
   118  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   119  	}
   120  
   121  	msg, err := client.EstimateFee(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   122  	return msg, metadata, err
   123  
   124  }
   125  
   126  func local_request_Lightning_EstimateFee_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   127  	var protoReq EstimateFeeRequest
   128  	var metadata runtime.ServerMetadata
   129  
   130  	if err := req.ParseForm(); err != nil {
   131  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   132  	}
   133  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_EstimateFee_0); err != nil {
   134  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   135  	}
   136  
   137  	msg, err := server.EstimateFee(ctx, &protoReq)
   138  	return msg, metadata, err
   139  
   140  }
   141  
   142  func request_Lightning_SendCoins_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   143  	var protoReq SendCoinsRequest
   144  	var metadata runtime.ServerMetadata
   145  
   146  	newReader, berr := utilities.IOReaderFactory(req.Body)
   147  	if berr != nil {
   148  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   149  	}
   150  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   151  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   152  	}
   153  
   154  	msg, err := client.SendCoins(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   155  	return msg, metadata, err
   156  
   157  }
   158  
   159  func local_request_Lightning_SendCoins_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   160  	var protoReq SendCoinsRequest
   161  	var metadata runtime.ServerMetadata
   162  
   163  	newReader, berr := utilities.IOReaderFactory(req.Body)
   164  	if berr != nil {
   165  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   166  	}
   167  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   168  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   169  	}
   170  
   171  	msg, err := server.SendCoins(ctx, &protoReq)
   172  	return msg, metadata, err
   173  
   174  }
   175  
   176  var (
   177  	filter_Lightning_ListUnspent_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   178  )
   179  
   180  func request_Lightning_ListUnspent_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   181  	var protoReq ListUnspentRequest
   182  	var metadata runtime.ServerMetadata
   183  
   184  	if err := req.ParseForm(); err != nil {
   185  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   186  	}
   187  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListUnspent_0); err != nil {
   188  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   189  	}
   190  
   191  	msg, err := client.ListUnspent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   192  	return msg, metadata, err
   193  
   194  }
   195  
   196  func local_request_Lightning_ListUnspent_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   197  	var protoReq ListUnspentRequest
   198  	var metadata runtime.ServerMetadata
   199  
   200  	if err := req.ParseForm(); err != nil {
   201  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   202  	}
   203  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListUnspent_0); err != nil {
   204  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   205  	}
   206  
   207  	msg, err := server.ListUnspent(ctx, &protoReq)
   208  	return msg, metadata, err
   209  
   210  }
   211  
   212  var (
   213  	filter_Lightning_SubscribeTransactions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   214  )
   215  
   216  func request_Lightning_SubscribeTransactions_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeTransactionsClient, runtime.ServerMetadata, error) {
   217  	var protoReq GetTransactionsRequest
   218  	var metadata runtime.ServerMetadata
   219  
   220  	if err := req.ParseForm(); err != nil {
   221  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   222  	}
   223  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_SubscribeTransactions_0); err != nil {
   224  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   225  	}
   226  
   227  	stream, err := client.SubscribeTransactions(ctx, &protoReq)
   228  	if err != nil {
   229  		return nil, metadata, err
   230  	}
   231  	header, err := stream.Header()
   232  	if err != nil {
   233  		return nil, metadata, err
   234  	}
   235  	metadata.HeaderMD = header
   236  	return stream, metadata, nil
   237  
   238  }
   239  
   240  func request_Lightning_SendMany_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   241  	var protoReq SendManyRequest
   242  	var metadata runtime.ServerMetadata
   243  
   244  	newReader, berr := utilities.IOReaderFactory(req.Body)
   245  	if berr != nil {
   246  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   247  	}
   248  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   249  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   250  	}
   251  
   252  	msg, err := client.SendMany(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   253  	return msg, metadata, err
   254  
   255  }
   256  
   257  func local_request_Lightning_SendMany_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   258  	var protoReq SendManyRequest
   259  	var metadata runtime.ServerMetadata
   260  
   261  	newReader, berr := utilities.IOReaderFactory(req.Body)
   262  	if berr != nil {
   263  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   264  	}
   265  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   266  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   267  	}
   268  
   269  	msg, err := server.SendMany(ctx, &protoReq)
   270  	return msg, metadata, err
   271  
   272  }
   273  
   274  var (
   275  	filter_Lightning_NewAddress_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   276  )
   277  
   278  func request_Lightning_NewAddress_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   279  	var protoReq NewAddressRequest
   280  	var metadata runtime.ServerMetadata
   281  
   282  	if err := req.ParseForm(); err != nil {
   283  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   284  	}
   285  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_NewAddress_0); err != nil {
   286  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   287  	}
   288  
   289  	msg, err := client.NewAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   290  	return msg, metadata, err
   291  
   292  }
   293  
   294  func local_request_Lightning_NewAddress_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   295  	var protoReq NewAddressRequest
   296  	var metadata runtime.ServerMetadata
   297  
   298  	if err := req.ParseForm(); err != nil {
   299  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   300  	}
   301  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_NewAddress_0); err != nil {
   302  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   303  	}
   304  
   305  	msg, err := server.NewAddress(ctx, &protoReq)
   306  	return msg, metadata, err
   307  
   308  }
   309  
   310  func request_Lightning_SignMessage_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   311  	var protoReq SignMessageRequest
   312  	var metadata runtime.ServerMetadata
   313  
   314  	newReader, berr := utilities.IOReaderFactory(req.Body)
   315  	if berr != nil {
   316  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   317  	}
   318  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   319  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   320  	}
   321  
   322  	msg, err := client.SignMessage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   323  	return msg, metadata, err
   324  
   325  }
   326  
   327  func local_request_Lightning_SignMessage_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   328  	var protoReq SignMessageRequest
   329  	var metadata runtime.ServerMetadata
   330  
   331  	newReader, berr := utilities.IOReaderFactory(req.Body)
   332  	if berr != nil {
   333  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   334  	}
   335  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   336  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   337  	}
   338  
   339  	msg, err := server.SignMessage(ctx, &protoReq)
   340  	return msg, metadata, err
   341  
   342  }
   343  
   344  func request_Lightning_VerifyMessage_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   345  	var protoReq VerifyMessageRequest
   346  	var metadata runtime.ServerMetadata
   347  
   348  	newReader, berr := utilities.IOReaderFactory(req.Body)
   349  	if berr != nil {
   350  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   351  	}
   352  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   353  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   354  	}
   355  
   356  	msg, err := client.VerifyMessage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   357  	return msg, metadata, err
   358  
   359  }
   360  
   361  func local_request_Lightning_VerifyMessage_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   362  	var protoReq VerifyMessageRequest
   363  	var metadata runtime.ServerMetadata
   364  
   365  	newReader, berr := utilities.IOReaderFactory(req.Body)
   366  	if berr != nil {
   367  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   368  	}
   369  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   370  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   371  	}
   372  
   373  	msg, err := server.VerifyMessage(ctx, &protoReq)
   374  	return msg, metadata, err
   375  
   376  }
   377  
   378  func request_Lightning_ConnectPeer_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   379  	var protoReq ConnectPeerRequest
   380  	var metadata runtime.ServerMetadata
   381  
   382  	newReader, berr := utilities.IOReaderFactory(req.Body)
   383  	if berr != nil {
   384  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   385  	}
   386  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   387  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   388  	}
   389  
   390  	msg, err := client.ConnectPeer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   391  	return msg, metadata, err
   392  
   393  }
   394  
   395  func local_request_Lightning_ConnectPeer_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   396  	var protoReq ConnectPeerRequest
   397  	var metadata runtime.ServerMetadata
   398  
   399  	newReader, berr := utilities.IOReaderFactory(req.Body)
   400  	if berr != nil {
   401  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   402  	}
   403  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   404  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   405  	}
   406  
   407  	msg, err := server.ConnectPeer(ctx, &protoReq)
   408  	return msg, metadata, err
   409  
   410  }
   411  
   412  func request_Lightning_DisconnectPeer_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   413  	var protoReq DisconnectPeerRequest
   414  	var metadata runtime.ServerMetadata
   415  
   416  	var (
   417  		val string
   418  		ok  bool
   419  		err error
   420  		_   = err
   421  	)
   422  
   423  	val, ok = pathParams["pub_key"]
   424  	if !ok {
   425  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
   426  	}
   427  
   428  	protoReq.PubKey, err = runtime.String(val)
   429  	if err != nil {
   430  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
   431  	}
   432  
   433  	msg, err := client.DisconnectPeer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   434  	return msg, metadata, err
   435  
   436  }
   437  
   438  func local_request_Lightning_DisconnectPeer_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   439  	var protoReq DisconnectPeerRequest
   440  	var metadata runtime.ServerMetadata
   441  
   442  	var (
   443  		val string
   444  		ok  bool
   445  		err error
   446  		_   = err
   447  	)
   448  
   449  	val, ok = pathParams["pub_key"]
   450  	if !ok {
   451  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
   452  	}
   453  
   454  	protoReq.PubKey, err = runtime.String(val)
   455  	if err != nil {
   456  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
   457  	}
   458  
   459  	msg, err := server.DisconnectPeer(ctx, &protoReq)
   460  	return msg, metadata, err
   461  
   462  }
   463  
   464  var (
   465  	filter_Lightning_ListPeers_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   466  )
   467  
   468  func request_Lightning_ListPeers_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   469  	var protoReq ListPeersRequest
   470  	var metadata runtime.ServerMetadata
   471  
   472  	if err := req.ParseForm(); err != nil {
   473  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   474  	}
   475  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListPeers_0); err != nil {
   476  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   477  	}
   478  
   479  	msg, err := client.ListPeers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   480  	return msg, metadata, err
   481  
   482  }
   483  
   484  func local_request_Lightning_ListPeers_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   485  	var protoReq ListPeersRequest
   486  	var metadata runtime.ServerMetadata
   487  
   488  	if err := req.ParseForm(); err != nil {
   489  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   490  	}
   491  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListPeers_0); err != nil {
   492  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   493  	}
   494  
   495  	msg, err := server.ListPeers(ctx, &protoReq)
   496  	return msg, metadata, err
   497  
   498  }
   499  
   500  func request_Lightning_SubscribePeerEvents_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribePeerEventsClient, runtime.ServerMetadata, error) {
   501  	var protoReq PeerEventSubscription
   502  	var metadata runtime.ServerMetadata
   503  
   504  	stream, err := client.SubscribePeerEvents(ctx, &protoReq)
   505  	if err != nil {
   506  		return nil, metadata, err
   507  	}
   508  	header, err := stream.Header()
   509  	if err != nil {
   510  		return nil, metadata, err
   511  	}
   512  	metadata.HeaderMD = header
   513  	return stream, metadata, nil
   514  
   515  }
   516  
   517  func request_Lightning_GetInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   518  	var protoReq GetInfoRequest
   519  	var metadata runtime.ServerMetadata
   520  
   521  	msg, err := client.GetInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   522  	return msg, metadata, err
   523  
   524  }
   525  
   526  func local_request_Lightning_GetInfo_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   527  	var protoReq GetInfoRequest
   528  	var metadata runtime.ServerMetadata
   529  
   530  	msg, err := server.GetInfo(ctx, &protoReq)
   531  	return msg, metadata, err
   532  
   533  }
   534  
   535  func request_Lightning_GetRecoveryInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   536  	var protoReq GetRecoveryInfoRequest
   537  	var metadata runtime.ServerMetadata
   538  
   539  	msg, err := client.GetRecoveryInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   540  	return msg, metadata, err
   541  
   542  }
   543  
   544  func local_request_Lightning_GetRecoveryInfo_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   545  	var protoReq GetRecoveryInfoRequest
   546  	var metadata runtime.ServerMetadata
   547  
   548  	msg, err := server.GetRecoveryInfo(ctx, &protoReq)
   549  	return msg, metadata, err
   550  
   551  }
   552  
   553  func request_Lightning_PendingChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   554  	var protoReq PendingChannelsRequest
   555  	var metadata runtime.ServerMetadata
   556  
   557  	msg, err := client.PendingChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   558  	return msg, metadata, err
   559  
   560  }
   561  
   562  func local_request_Lightning_PendingChannels_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   563  	var protoReq PendingChannelsRequest
   564  	var metadata runtime.ServerMetadata
   565  
   566  	msg, err := server.PendingChannels(ctx, &protoReq)
   567  	return msg, metadata, err
   568  
   569  }
   570  
   571  var (
   572  	filter_Lightning_ListChannels_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   573  )
   574  
   575  func request_Lightning_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   576  	var protoReq ListChannelsRequest
   577  	var metadata runtime.ServerMetadata
   578  
   579  	if err := req.ParseForm(); err != nil {
   580  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   581  	}
   582  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListChannels_0); err != nil {
   583  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   584  	}
   585  
   586  	msg, err := client.ListChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   587  	return msg, metadata, err
   588  
   589  }
   590  
   591  func local_request_Lightning_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   592  	var protoReq ListChannelsRequest
   593  	var metadata runtime.ServerMetadata
   594  
   595  	if err := req.ParseForm(); err != nil {
   596  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   597  	}
   598  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListChannels_0); err != nil {
   599  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   600  	}
   601  
   602  	msg, err := server.ListChannels(ctx, &protoReq)
   603  	return msg, metadata, err
   604  
   605  }
   606  
   607  func request_Lightning_SubscribeChannelEvents_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeChannelEventsClient, runtime.ServerMetadata, error) {
   608  	var protoReq ChannelEventSubscription
   609  	var metadata runtime.ServerMetadata
   610  
   611  	stream, err := client.SubscribeChannelEvents(ctx, &protoReq)
   612  	if err != nil {
   613  		return nil, metadata, err
   614  	}
   615  	header, err := stream.Header()
   616  	if err != nil {
   617  		return nil, metadata, err
   618  	}
   619  	metadata.HeaderMD = header
   620  	return stream, metadata, nil
   621  
   622  }
   623  
   624  var (
   625  	filter_Lightning_ClosedChannels_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   626  )
   627  
   628  func request_Lightning_ClosedChannels_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   629  	var protoReq ClosedChannelsRequest
   630  	var metadata runtime.ServerMetadata
   631  
   632  	if err := req.ParseForm(); err != nil {
   633  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   634  	}
   635  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ClosedChannels_0); err != nil {
   636  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   637  	}
   638  
   639  	msg, err := client.ClosedChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   640  	return msg, metadata, err
   641  
   642  }
   643  
   644  func local_request_Lightning_ClosedChannels_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   645  	var protoReq ClosedChannelsRequest
   646  	var metadata runtime.ServerMetadata
   647  
   648  	if err := req.ParseForm(); err != nil {
   649  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   650  	}
   651  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ClosedChannels_0); err != nil {
   652  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   653  	}
   654  
   655  	msg, err := server.ClosedChannels(ctx, &protoReq)
   656  	return msg, metadata, err
   657  
   658  }
   659  
   660  func request_Lightning_OpenChannelSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   661  	var protoReq OpenChannelRequest
   662  	var metadata runtime.ServerMetadata
   663  
   664  	newReader, berr := utilities.IOReaderFactory(req.Body)
   665  	if berr != nil {
   666  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   667  	}
   668  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   669  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   670  	}
   671  
   672  	msg, err := client.OpenChannelSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   673  	return msg, metadata, err
   674  
   675  }
   676  
   677  func local_request_Lightning_OpenChannelSync_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   678  	var protoReq OpenChannelRequest
   679  	var metadata runtime.ServerMetadata
   680  
   681  	newReader, berr := utilities.IOReaderFactory(req.Body)
   682  	if berr != nil {
   683  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   684  	}
   685  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   686  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   687  	}
   688  
   689  	msg, err := server.OpenChannelSync(ctx, &protoReq)
   690  	return msg, metadata, err
   691  
   692  }
   693  
   694  func request_Lightning_OpenChannel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_OpenChannelClient, runtime.ServerMetadata, error) {
   695  	var protoReq OpenChannelRequest
   696  	var metadata runtime.ServerMetadata
   697  
   698  	newReader, berr := utilities.IOReaderFactory(req.Body)
   699  	if berr != nil {
   700  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   701  	}
   702  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   703  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   704  	}
   705  
   706  	stream, err := client.OpenChannel(ctx, &protoReq)
   707  	if err != nil {
   708  		return nil, metadata, err
   709  	}
   710  	header, err := stream.Header()
   711  	if err != nil {
   712  		return nil, metadata, err
   713  	}
   714  	metadata.HeaderMD = header
   715  	return stream, metadata, nil
   716  
   717  }
   718  
   719  func request_Lightning_BatchOpenChannel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   720  	var protoReq BatchOpenChannelRequest
   721  	var metadata runtime.ServerMetadata
   722  
   723  	newReader, berr := utilities.IOReaderFactory(req.Body)
   724  	if berr != nil {
   725  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   726  	}
   727  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   728  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   729  	}
   730  
   731  	msg, err := client.BatchOpenChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   732  	return msg, metadata, err
   733  
   734  }
   735  
   736  func local_request_Lightning_BatchOpenChannel_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   737  	var protoReq BatchOpenChannelRequest
   738  	var metadata runtime.ServerMetadata
   739  
   740  	newReader, berr := utilities.IOReaderFactory(req.Body)
   741  	if berr != nil {
   742  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   743  	}
   744  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   745  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   746  	}
   747  
   748  	msg, err := server.BatchOpenChannel(ctx, &protoReq)
   749  	return msg, metadata, err
   750  
   751  }
   752  
   753  func request_Lightning_FundingStateStep_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   754  	var protoReq FundingTransitionMsg
   755  	var metadata runtime.ServerMetadata
   756  
   757  	newReader, berr := utilities.IOReaderFactory(req.Body)
   758  	if berr != nil {
   759  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   760  	}
   761  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   762  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   763  	}
   764  
   765  	msg, err := client.FundingStateStep(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   766  	return msg, metadata, err
   767  
   768  }
   769  
   770  func local_request_Lightning_FundingStateStep_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   771  	var protoReq FundingTransitionMsg
   772  	var metadata runtime.ServerMetadata
   773  
   774  	newReader, berr := utilities.IOReaderFactory(req.Body)
   775  	if berr != nil {
   776  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   777  	}
   778  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   779  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   780  	}
   781  
   782  	msg, err := server.FundingStateStep(ctx, &protoReq)
   783  	return msg, metadata, err
   784  
   785  }
   786  
   787  func request_Lightning_ChannelAcceptor_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_ChannelAcceptorClient, runtime.ServerMetadata, error) {
   788  	var metadata runtime.ServerMetadata
   789  	stream, err := client.ChannelAcceptor(ctx)
   790  	if err != nil {
   791  		grpclog.Infof("Failed to start streaming: %v", err)
   792  		return nil, metadata, err
   793  	}
   794  	dec := marshaler.NewDecoder(req.Body)
   795  	handleSend := func() error {
   796  		var protoReq ChannelAcceptResponse
   797  		err := dec.Decode(&protoReq)
   798  		if err == io.EOF {
   799  			return err
   800  		}
   801  		if err != nil {
   802  			grpclog.Infof("Failed to decode request: %v", err)
   803  			return err
   804  		}
   805  		if err := stream.Send(&protoReq); err != nil {
   806  			grpclog.Infof("Failed to send request: %v", err)
   807  			return err
   808  		}
   809  		return nil
   810  	}
   811  	if err := handleSend(); err != nil {
   812  		if cerr := stream.CloseSend(); cerr != nil {
   813  			grpclog.Infof("Failed to terminate client stream: %v", cerr)
   814  		}
   815  		if err == io.EOF {
   816  			return stream, metadata, nil
   817  		}
   818  		return nil, metadata, err
   819  	}
   820  	go func() {
   821  		for {
   822  			if err := handleSend(); err != nil {
   823  				break
   824  			}
   825  		}
   826  		if err := stream.CloseSend(); err != nil {
   827  			grpclog.Infof("Failed to terminate client stream: %v", err)
   828  		}
   829  	}()
   830  	header, err := stream.Header()
   831  	if err != nil {
   832  		grpclog.Infof("Failed to get header from client: %v", err)
   833  		return nil, metadata, err
   834  	}
   835  	metadata.HeaderMD = header
   836  	return stream, metadata, nil
   837  }
   838  
   839  var (
   840  	filter_Lightning_CloseChannel_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_point": 0, "funding_txid_str": 1, "output_index": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}}
   841  )
   842  
   843  func request_Lightning_CloseChannel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_CloseChannelClient, runtime.ServerMetadata, error) {
   844  	var protoReq CloseChannelRequest
   845  	var metadata runtime.ServerMetadata
   846  
   847  	var (
   848  		val string
   849  		ok  bool
   850  		err error
   851  		_   = err
   852  	)
   853  
   854  	val, ok = pathParams["channel_point.funding_txid_str"]
   855  	if !ok {
   856  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.funding_txid_str")
   857  	}
   858  
   859  	err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.funding_txid_str", val)
   860  	if err != nil {
   861  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.funding_txid_str", err)
   862  	}
   863  
   864  	val, ok = pathParams["channel_point.output_index"]
   865  	if !ok {
   866  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.output_index")
   867  	}
   868  
   869  	err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.output_index", val)
   870  	if err != nil {
   871  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.output_index", err)
   872  	}
   873  
   874  	if err := req.ParseForm(); err != nil {
   875  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   876  	}
   877  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_CloseChannel_0); err != nil {
   878  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   879  	}
   880  
   881  	stream, err := client.CloseChannel(ctx, &protoReq)
   882  	if err != nil {
   883  		return nil, metadata, err
   884  	}
   885  	header, err := stream.Header()
   886  	if err != nil {
   887  		return nil, metadata, err
   888  	}
   889  	metadata.HeaderMD = header
   890  	return stream, metadata, nil
   891  
   892  }
   893  
   894  var (
   895  	filter_Lightning_AbandonChannel_0 = &utilities.DoubleArray{Encoding: map[string]int{"channel_point": 0, "funding_txid_str": 1, "output_index": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}}
   896  )
   897  
   898  func request_Lightning_AbandonChannel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   899  	var protoReq AbandonChannelRequest
   900  	var metadata runtime.ServerMetadata
   901  
   902  	var (
   903  		val string
   904  		ok  bool
   905  		err error
   906  		_   = err
   907  	)
   908  
   909  	val, ok = pathParams["channel_point.funding_txid_str"]
   910  	if !ok {
   911  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.funding_txid_str")
   912  	}
   913  
   914  	err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.funding_txid_str", val)
   915  	if err != nil {
   916  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.funding_txid_str", err)
   917  	}
   918  
   919  	val, ok = pathParams["channel_point.output_index"]
   920  	if !ok {
   921  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.output_index")
   922  	}
   923  
   924  	err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.output_index", val)
   925  	if err != nil {
   926  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.output_index", err)
   927  	}
   928  
   929  	if err := req.ParseForm(); err != nil {
   930  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   931  	}
   932  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_AbandonChannel_0); err != nil {
   933  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   934  	}
   935  
   936  	msg, err := client.AbandonChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   937  	return msg, metadata, err
   938  
   939  }
   940  
   941  func local_request_Lightning_AbandonChannel_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   942  	var protoReq AbandonChannelRequest
   943  	var metadata runtime.ServerMetadata
   944  
   945  	var (
   946  		val string
   947  		ok  bool
   948  		err error
   949  		_   = err
   950  	)
   951  
   952  	val, ok = pathParams["channel_point.funding_txid_str"]
   953  	if !ok {
   954  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.funding_txid_str")
   955  	}
   956  
   957  	err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.funding_txid_str", val)
   958  	if err != nil {
   959  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.funding_txid_str", err)
   960  	}
   961  
   962  	val, ok = pathParams["channel_point.output_index"]
   963  	if !ok {
   964  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_point.output_index")
   965  	}
   966  
   967  	err = runtime.PopulateFieldFromPath(&protoReq, "channel_point.output_index", val)
   968  	if err != nil {
   969  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_point.output_index", err)
   970  	}
   971  
   972  	if err := req.ParseForm(); err != nil {
   973  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   974  	}
   975  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_AbandonChannel_0); err != nil {
   976  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   977  	}
   978  
   979  	msg, err := server.AbandonChannel(ctx, &protoReq)
   980  	return msg, metadata, err
   981  
   982  }
   983  
   984  func request_Lightning_SendPayment_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SendPaymentClient, runtime.ServerMetadata, error) {
   985  	var metadata runtime.ServerMetadata
   986  	stream, err := client.SendPayment(ctx)
   987  	if err != nil {
   988  		grpclog.Infof("Failed to start streaming: %v", err)
   989  		return nil, metadata, err
   990  	}
   991  	dec := marshaler.NewDecoder(req.Body)
   992  	handleSend := func() error {
   993  		var protoReq SendRequest
   994  		err := dec.Decode(&protoReq)
   995  		if err == io.EOF {
   996  			return err
   997  		}
   998  		if err != nil {
   999  			grpclog.Infof("Failed to decode request: %v", err)
  1000  			return err
  1001  		}
  1002  		if err := stream.Send(&protoReq); err != nil {
  1003  			grpclog.Infof("Failed to send request: %v", err)
  1004  			return err
  1005  		}
  1006  		return nil
  1007  	}
  1008  	if err := handleSend(); err != nil {
  1009  		if cerr := stream.CloseSend(); cerr != nil {
  1010  			grpclog.Infof("Failed to terminate client stream: %v", cerr)
  1011  		}
  1012  		if err == io.EOF {
  1013  			return stream, metadata, nil
  1014  		}
  1015  		return nil, metadata, err
  1016  	}
  1017  	go func() {
  1018  		for {
  1019  			if err := handleSend(); err != nil {
  1020  				break
  1021  			}
  1022  		}
  1023  		if err := stream.CloseSend(); err != nil {
  1024  			grpclog.Infof("Failed to terminate client stream: %v", err)
  1025  		}
  1026  	}()
  1027  	header, err := stream.Header()
  1028  	if err != nil {
  1029  		grpclog.Infof("Failed to get header from client: %v", err)
  1030  		return nil, metadata, err
  1031  	}
  1032  	metadata.HeaderMD = header
  1033  	return stream, metadata, nil
  1034  }
  1035  
  1036  func request_Lightning_SendPaymentSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1037  	var protoReq SendRequest
  1038  	var metadata runtime.ServerMetadata
  1039  
  1040  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1041  	if berr != nil {
  1042  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1043  	}
  1044  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1045  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1046  	}
  1047  
  1048  	msg, err := client.SendPaymentSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1049  	return msg, metadata, err
  1050  
  1051  }
  1052  
  1053  func local_request_Lightning_SendPaymentSync_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1054  	var protoReq SendRequest
  1055  	var metadata runtime.ServerMetadata
  1056  
  1057  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1058  	if berr != nil {
  1059  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1060  	}
  1061  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1062  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1063  	}
  1064  
  1065  	msg, err := server.SendPaymentSync(ctx, &protoReq)
  1066  	return msg, metadata, err
  1067  
  1068  }
  1069  
  1070  func request_Lightning_SendToRouteSync_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1071  	var protoReq SendToRouteRequest
  1072  	var metadata runtime.ServerMetadata
  1073  
  1074  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1075  	if berr != nil {
  1076  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1077  	}
  1078  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1079  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1080  	}
  1081  
  1082  	msg, err := client.SendToRouteSync(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1083  	return msg, metadata, err
  1084  
  1085  }
  1086  
  1087  func local_request_Lightning_SendToRouteSync_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1088  	var protoReq SendToRouteRequest
  1089  	var metadata runtime.ServerMetadata
  1090  
  1091  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1092  	if berr != nil {
  1093  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1094  	}
  1095  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1096  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1097  	}
  1098  
  1099  	msg, err := server.SendToRouteSync(ctx, &protoReq)
  1100  	return msg, metadata, err
  1101  
  1102  }
  1103  
  1104  func request_Lightning_AddInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1105  	var protoReq Invoice
  1106  	var metadata runtime.ServerMetadata
  1107  
  1108  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1109  	if berr != nil {
  1110  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1111  	}
  1112  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1113  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1114  	}
  1115  
  1116  	msg, err := client.AddInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1117  	return msg, metadata, err
  1118  
  1119  }
  1120  
  1121  func local_request_Lightning_AddInvoice_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1122  	var protoReq Invoice
  1123  	var metadata runtime.ServerMetadata
  1124  
  1125  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1126  	if berr != nil {
  1127  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1128  	}
  1129  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1130  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1131  	}
  1132  
  1133  	msg, err := server.AddInvoice(ctx, &protoReq)
  1134  	return msg, metadata, err
  1135  
  1136  }
  1137  
  1138  var (
  1139  	filter_Lightning_ListInvoices_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1140  )
  1141  
  1142  func request_Lightning_ListInvoices_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1143  	var protoReq ListInvoiceRequest
  1144  	var metadata runtime.ServerMetadata
  1145  
  1146  	if err := req.ParseForm(); err != nil {
  1147  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1148  	}
  1149  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListInvoices_0); err != nil {
  1150  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1151  	}
  1152  
  1153  	msg, err := client.ListInvoices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1154  	return msg, metadata, err
  1155  
  1156  }
  1157  
  1158  func local_request_Lightning_ListInvoices_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1159  	var protoReq ListInvoiceRequest
  1160  	var metadata runtime.ServerMetadata
  1161  
  1162  	if err := req.ParseForm(); err != nil {
  1163  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1164  	}
  1165  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListInvoices_0); err != nil {
  1166  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1167  	}
  1168  
  1169  	msg, err := server.ListInvoices(ctx, &protoReq)
  1170  	return msg, metadata, err
  1171  
  1172  }
  1173  
  1174  var (
  1175  	filter_Lightning_LookupInvoice_0 = &utilities.DoubleArray{Encoding: map[string]int{"r_hash_str": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
  1176  )
  1177  
  1178  func request_Lightning_LookupInvoice_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1179  	var protoReq PaymentHash
  1180  	var metadata runtime.ServerMetadata
  1181  
  1182  	var (
  1183  		val string
  1184  		ok  bool
  1185  		err error
  1186  		_   = err
  1187  	)
  1188  
  1189  	val, ok = pathParams["r_hash_str"]
  1190  	if !ok {
  1191  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "r_hash_str")
  1192  	}
  1193  
  1194  	protoReq.RHashStr, err = runtime.String(val)
  1195  	if err != nil {
  1196  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "r_hash_str", err)
  1197  	}
  1198  
  1199  	if err := req.ParseForm(); err != nil {
  1200  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1201  	}
  1202  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_LookupInvoice_0); err != nil {
  1203  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1204  	}
  1205  
  1206  	msg, err := client.LookupInvoice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1207  	return msg, metadata, err
  1208  
  1209  }
  1210  
  1211  func local_request_Lightning_LookupInvoice_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1212  	var protoReq PaymentHash
  1213  	var metadata runtime.ServerMetadata
  1214  
  1215  	var (
  1216  		val string
  1217  		ok  bool
  1218  		err error
  1219  		_   = err
  1220  	)
  1221  
  1222  	val, ok = pathParams["r_hash_str"]
  1223  	if !ok {
  1224  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "r_hash_str")
  1225  	}
  1226  
  1227  	protoReq.RHashStr, err = runtime.String(val)
  1228  	if err != nil {
  1229  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "r_hash_str", err)
  1230  	}
  1231  
  1232  	if err := req.ParseForm(); err != nil {
  1233  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1234  	}
  1235  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_LookupInvoice_0); err != nil {
  1236  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1237  	}
  1238  
  1239  	msg, err := server.LookupInvoice(ctx, &protoReq)
  1240  	return msg, metadata, err
  1241  
  1242  }
  1243  
  1244  var (
  1245  	filter_Lightning_SubscribeInvoices_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1246  )
  1247  
  1248  func request_Lightning_SubscribeInvoices_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeInvoicesClient, runtime.ServerMetadata, error) {
  1249  	var protoReq InvoiceSubscription
  1250  	var metadata runtime.ServerMetadata
  1251  
  1252  	if err := req.ParseForm(); err != nil {
  1253  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1254  	}
  1255  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_SubscribeInvoices_0); err != nil {
  1256  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1257  	}
  1258  
  1259  	stream, err := client.SubscribeInvoices(ctx, &protoReq)
  1260  	if err != nil {
  1261  		return nil, metadata, err
  1262  	}
  1263  	header, err := stream.Header()
  1264  	if err != nil {
  1265  		return nil, metadata, err
  1266  	}
  1267  	metadata.HeaderMD = header
  1268  	return stream, metadata, nil
  1269  
  1270  }
  1271  
  1272  func request_Lightning_DecodePayReq_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1273  	var protoReq PayReqString
  1274  	var metadata runtime.ServerMetadata
  1275  
  1276  	var (
  1277  		val string
  1278  		ok  bool
  1279  		err error
  1280  		_   = err
  1281  	)
  1282  
  1283  	val, ok = pathParams["pay_req"]
  1284  	if !ok {
  1285  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pay_req")
  1286  	}
  1287  
  1288  	protoReq.PayReq, err = runtime.String(val)
  1289  	if err != nil {
  1290  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pay_req", err)
  1291  	}
  1292  
  1293  	msg, err := client.DecodePayReq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1294  	return msg, metadata, err
  1295  
  1296  }
  1297  
  1298  func local_request_Lightning_DecodePayReq_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1299  	var protoReq PayReqString
  1300  	var metadata runtime.ServerMetadata
  1301  
  1302  	var (
  1303  		val string
  1304  		ok  bool
  1305  		err error
  1306  		_   = err
  1307  	)
  1308  
  1309  	val, ok = pathParams["pay_req"]
  1310  	if !ok {
  1311  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pay_req")
  1312  	}
  1313  
  1314  	protoReq.PayReq, err = runtime.String(val)
  1315  	if err != nil {
  1316  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pay_req", err)
  1317  	}
  1318  
  1319  	msg, err := server.DecodePayReq(ctx, &protoReq)
  1320  	return msg, metadata, err
  1321  
  1322  }
  1323  
  1324  var (
  1325  	filter_Lightning_ListPayments_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1326  )
  1327  
  1328  func request_Lightning_ListPayments_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1329  	var protoReq ListPaymentsRequest
  1330  	var metadata runtime.ServerMetadata
  1331  
  1332  	if err := req.ParseForm(); err != nil {
  1333  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1334  	}
  1335  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListPayments_0); err != nil {
  1336  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1337  	}
  1338  
  1339  	msg, err := client.ListPayments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1340  	return msg, metadata, err
  1341  
  1342  }
  1343  
  1344  func local_request_Lightning_ListPayments_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1345  	var protoReq ListPaymentsRequest
  1346  	var metadata runtime.ServerMetadata
  1347  
  1348  	if err := req.ParseForm(); err != nil {
  1349  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1350  	}
  1351  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ListPayments_0); err != nil {
  1352  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1353  	}
  1354  
  1355  	msg, err := server.ListPayments(ctx, &protoReq)
  1356  	return msg, metadata, err
  1357  
  1358  }
  1359  
  1360  var (
  1361  	filter_Lightning_DeletePayment_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1362  )
  1363  
  1364  func request_Lightning_DeletePayment_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1365  	var protoReq DeletePaymentRequest
  1366  	var metadata runtime.ServerMetadata
  1367  
  1368  	if err := req.ParseForm(); err != nil {
  1369  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1370  	}
  1371  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_DeletePayment_0); err != nil {
  1372  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1373  	}
  1374  
  1375  	msg, err := client.DeletePayment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1376  	return msg, metadata, err
  1377  
  1378  }
  1379  
  1380  func local_request_Lightning_DeletePayment_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1381  	var protoReq DeletePaymentRequest
  1382  	var metadata runtime.ServerMetadata
  1383  
  1384  	if err := req.ParseForm(); err != nil {
  1385  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1386  	}
  1387  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_DeletePayment_0); err != nil {
  1388  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1389  	}
  1390  
  1391  	msg, err := server.DeletePayment(ctx, &protoReq)
  1392  	return msg, metadata, err
  1393  
  1394  }
  1395  
  1396  var (
  1397  	filter_Lightning_DeleteAllPayments_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1398  )
  1399  
  1400  func request_Lightning_DeleteAllPayments_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1401  	var protoReq DeleteAllPaymentsRequest
  1402  	var metadata runtime.ServerMetadata
  1403  
  1404  	if err := req.ParseForm(); err != nil {
  1405  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1406  	}
  1407  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_DeleteAllPayments_0); err != nil {
  1408  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1409  	}
  1410  
  1411  	msg, err := client.DeleteAllPayments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1412  	return msg, metadata, err
  1413  
  1414  }
  1415  
  1416  func local_request_Lightning_DeleteAllPayments_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1417  	var protoReq DeleteAllPaymentsRequest
  1418  	var metadata runtime.ServerMetadata
  1419  
  1420  	if err := req.ParseForm(); err != nil {
  1421  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1422  	}
  1423  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_DeleteAllPayments_0); err != nil {
  1424  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1425  	}
  1426  
  1427  	msg, err := server.DeleteAllPayments(ctx, &protoReq)
  1428  	return msg, metadata, err
  1429  
  1430  }
  1431  
  1432  var (
  1433  	filter_Lightning_DescribeGraph_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1434  )
  1435  
  1436  func request_Lightning_DescribeGraph_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1437  	var protoReq ChannelGraphRequest
  1438  	var metadata runtime.ServerMetadata
  1439  
  1440  	if err := req.ParseForm(); err != nil {
  1441  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1442  	}
  1443  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_DescribeGraph_0); err != nil {
  1444  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1445  	}
  1446  
  1447  	msg, err := client.DescribeGraph(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1448  	return msg, metadata, err
  1449  
  1450  }
  1451  
  1452  func local_request_Lightning_DescribeGraph_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1453  	var protoReq ChannelGraphRequest
  1454  	var metadata runtime.ServerMetadata
  1455  
  1456  	if err := req.ParseForm(); err != nil {
  1457  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1458  	}
  1459  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_DescribeGraph_0); err != nil {
  1460  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1461  	}
  1462  
  1463  	msg, err := server.DescribeGraph(ctx, &protoReq)
  1464  	return msg, metadata, err
  1465  
  1466  }
  1467  
  1468  var (
  1469  	filter_Lightning_GetNodeMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  1470  )
  1471  
  1472  func request_Lightning_GetNodeMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1473  	var protoReq NodeMetricsRequest
  1474  	var metadata runtime.ServerMetadata
  1475  
  1476  	if err := req.ParseForm(); err != nil {
  1477  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1478  	}
  1479  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_GetNodeMetrics_0); err != nil {
  1480  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1481  	}
  1482  
  1483  	msg, err := client.GetNodeMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1484  	return msg, metadata, err
  1485  
  1486  }
  1487  
  1488  func local_request_Lightning_GetNodeMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1489  	var protoReq NodeMetricsRequest
  1490  	var metadata runtime.ServerMetadata
  1491  
  1492  	if err := req.ParseForm(); err != nil {
  1493  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1494  	}
  1495  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_GetNodeMetrics_0); err != nil {
  1496  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1497  	}
  1498  
  1499  	msg, err := server.GetNodeMetrics(ctx, &protoReq)
  1500  	return msg, metadata, err
  1501  
  1502  }
  1503  
  1504  func request_Lightning_GetChanInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1505  	var protoReq ChanInfoRequest
  1506  	var metadata runtime.ServerMetadata
  1507  
  1508  	var (
  1509  		val string
  1510  		ok  bool
  1511  		err error
  1512  		_   = err
  1513  	)
  1514  
  1515  	val, ok = pathParams["chan_id"]
  1516  	if !ok {
  1517  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_id")
  1518  	}
  1519  
  1520  	protoReq.ChanId, err = runtime.Uint64(val)
  1521  	if err != nil {
  1522  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_id", err)
  1523  	}
  1524  
  1525  	msg, err := client.GetChanInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1526  	return msg, metadata, err
  1527  
  1528  }
  1529  
  1530  func local_request_Lightning_GetChanInfo_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1531  	var protoReq ChanInfoRequest
  1532  	var metadata runtime.ServerMetadata
  1533  
  1534  	var (
  1535  		val string
  1536  		ok  bool
  1537  		err error
  1538  		_   = err
  1539  	)
  1540  
  1541  	val, ok = pathParams["chan_id"]
  1542  	if !ok {
  1543  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_id")
  1544  	}
  1545  
  1546  	protoReq.ChanId, err = runtime.Uint64(val)
  1547  	if err != nil {
  1548  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_id", err)
  1549  	}
  1550  
  1551  	msg, err := server.GetChanInfo(ctx, &protoReq)
  1552  	return msg, metadata, err
  1553  
  1554  }
  1555  
  1556  var (
  1557  	filter_Lightning_GetNodeInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{"pub_key": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
  1558  )
  1559  
  1560  func request_Lightning_GetNodeInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1561  	var protoReq NodeInfoRequest
  1562  	var metadata runtime.ServerMetadata
  1563  
  1564  	var (
  1565  		val string
  1566  		ok  bool
  1567  		err error
  1568  		_   = err
  1569  	)
  1570  
  1571  	val, ok = pathParams["pub_key"]
  1572  	if !ok {
  1573  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
  1574  	}
  1575  
  1576  	protoReq.PubKey, err = runtime.String(val)
  1577  	if err != nil {
  1578  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
  1579  	}
  1580  
  1581  	if err := req.ParseForm(); err != nil {
  1582  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1583  	}
  1584  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_GetNodeInfo_0); err != nil {
  1585  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1586  	}
  1587  
  1588  	msg, err := client.GetNodeInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1589  	return msg, metadata, err
  1590  
  1591  }
  1592  
  1593  func local_request_Lightning_GetNodeInfo_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1594  	var protoReq NodeInfoRequest
  1595  	var metadata runtime.ServerMetadata
  1596  
  1597  	var (
  1598  		val string
  1599  		ok  bool
  1600  		err error
  1601  		_   = err
  1602  	)
  1603  
  1604  	val, ok = pathParams["pub_key"]
  1605  	if !ok {
  1606  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
  1607  	}
  1608  
  1609  	protoReq.PubKey, err = runtime.String(val)
  1610  	if err != nil {
  1611  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
  1612  	}
  1613  
  1614  	if err := req.ParseForm(); err != nil {
  1615  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1616  	}
  1617  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_GetNodeInfo_0); err != nil {
  1618  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1619  	}
  1620  
  1621  	msg, err := server.GetNodeInfo(ctx, &protoReq)
  1622  	return msg, metadata, err
  1623  
  1624  }
  1625  
  1626  var (
  1627  	filter_Lightning_QueryRoutes_0 = &utilities.DoubleArray{Encoding: map[string]int{"pub_key": 0, "amt": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
  1628  )
  1629  
  1630  func request_Lightning_QueryRoutes_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1631  	var protoReq QueryRoutesRequest
  1632  	var metadata runtime.ServerMetadata
  1633  
  1634  	var (
  1635  		val string
  1636  		ok  bool
  1637  		err error
  1638  		_   = err
  1639  	)
  1640  
  1641  	val, ok = pathParams["pub_key"]
  1642  	if !ok {
  1643  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
  1644  	}
  1645  
  1646  	protoReq.PubKey, err = runtime.String(val)
  1647  	if err != nil {
  1648  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
  1649  	}
  1650  
  1651  	val, ok = pathParams["amt"]
  1652  	if !ok {
  1653  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "amt")
  1654  	}
  1655  
  1656  	protoReq.Amt, err = runtime.Int64(val)
  1657  	if err != nil {
  1658  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "amt", err)
  1659  	}
  1660  
  1661  	if err := req.ParseForm(); err != nil {
  1662  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1663  	}
  1664  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_QueryRoutes_0); err != nil {
  1665  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1666  	}
  1667  
  1668  	msg, err := client.QueryRoutes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1669  	return msg, metadata, err
  1670  
  1671  }
  1672  
  1673  func local_request_Lightning_QueryRoutes_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1674  	var protoReq QueryRoutesRequest
  1675  	var metadata runtime.ServerMetadata
  1676  
  1677  	var (
  1678  		val string
  1679  		ok  bool
  1680  		err error
  1681  		_   = err
  1682  	)
  1683  
  1684  	val, ok = pathParams["pub_key"]
  1685  	if !ok {
  1686  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pub_key")
  1687  	}
  1688  
  1689  	protoReq.PubKey, err = runtime.String(val)
  1690  	if err != nil {
  1691  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pub_key", err)
  1692  	}
  1693  
  1694  	val, ok = pathParams["amt"]
  1695  	if !ok {
  1696  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "amt")
  1697  	}
  1698  
  1699  	protoReq.Amt, err = runtime.Int64(val)
  1700  	if err != nil {
  1701  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "amt", err)
  1702  	}
  1703  
  1704  	if err := req.ParseForm(); err != nil {
  1705  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1706  	}
  1707  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_QueryRoutes_0); err != nil {
  1708  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1709  	}
  1710  
  1711  	msg, err := server.QueryRoutes(ctx, &protoReq)
  1712  	return msg, metadata, err
  1713  
  1714  }
  1715  
  1716  func request_Lightning_GetNetworkInfo_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1717  	var protoReq NetworkInfoRequest
  1718  	var metadata runtime.ServerMetadata
  1719  
  1720  	msg, err := client.GetNetworkInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1721  	return msg, metadata, err
  1722  
  1723  }
  1724  
  1725  func local_request_Lightning_GetNetworkInfo_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1726  	var protoReq NetworkInfoRequest
  1727  	var metadata runtime.ServerMetadata
  1728  
  1729  	msg, err := server.GetNetworkInfo(ctx, &protoReq)
  1730  	return msg, metadata, err
  1731  
  1732  }
  1733  
  1734  func request_Lightning_StopDaemon_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1735  	var protoReq StopRequest
  1736  	var metadata runtime.ServerMetadata
  1737  
  1738  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1739  	if berr != nil {
  1740  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1741  	}
  1742  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1743  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1744  	}
  1745  
  1746  	msg, err := client.StopDaemon(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1747  	return msg, metadata, err
  1748  
  1749  }
  1750  
  1751  func local_request_Lightning_StopDaemon_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1752  	var protoReq StopRequest
  1753  	var metadata runtime.ServerMetadata
  1754  
  1755  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1756  	if berr != nil {
  1757  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1758  	}
  1759  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1760  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1761  	}
  1762  
  1763  	msg, err := server.StopDaemon(ctx, &protoReq)
  1764  	return msg, metadata, err
  1765  
  1766  }
  1767  
  1768  func request_Lightning_SubscribeChannelGraph_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeChannelGraphClient, runtime.ServerMetadata, error) {
  1769  	var protoReq GraphTopologySubscription
  1770  	var metadata runtime.ServerMetadata
  1771  
  1772  	stream, err := client.SubscribeChannelGraph(ctx, &protoReq)
  1773  	if err != nil {
  1774  		return nil, metadata, err
  1775  	}
  1776  	header, err := stream.Header()
  1777  	if err != nil {
  1778  		return nil, metadata, err
  1779  	}
  1780  	metadata.HeaderMD = header
  1781  	return stream, metadata, nil
  1782  
  1783  }
  1784  
  1785  func request_Lightning_DebugLevel_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1786  	var protoReq DebugLevelRequest
  1787  	var metadata runtime.ServerMetadata
  1788  
  1789  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1790  	if berr != nil {
  1791  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1792  	}
  1793  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1794  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1795  	}
  1796  
  1797  	msg, err := client.DebugLevel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1798  	return msg, metadata, err
  1799  
  1800  }
  1801  
  1802  func local_request_Lightning_DebugLevel_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1803  	var protoReq DebugLevelRequest
  1804  	var metadata runtime.ServerMetadata
  1805  
  1806  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1807  	if berr != nil {
  1808  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1809  	}
  1810  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1811  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1812  	}
  1813  
  1814  	msg, err := server.DebugLevel(ctx, &protoReq)
  1815  	return msg, metadata, err
  1816  
  1817  }
  1818  
  1819  func request_Lightning_FeeReport_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1820  	var protoReq FeeReportRequest
  1821  	var metadata runtime.ServerMetadata
  1822  
  1823  	msg, err := client.FeeReport(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1824  	return msg, metadata, err
  1825  
  1826  }
  1827  
  1828  func local_request_Lightning_FeeReport_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1829  	var protoReq FeeReportRequest
  1830  	var metadata runtime.ServerMetadata
  1831  
  1832  	msg, err := server.FeeReport(ctx, &protoReq)
  1833  	return msg, metadata, err
  1834  
  1835  }
  1836  
  1837  func request_Lightning_UpdateChannelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1838  	var protoReq PolicyUpdateRequest
  1839  	var metadata runtime.ServerMetadata
  1840  
  1841  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1842  	if berr != nil {
  1843  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1844  	}
  1845  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1846  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1847  	}
  1848  
  1849  	msg, err := client.UpdateChannelPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1850  	return msg, metadata, err
  1851  
  1852  }
  1853  
  1854  func local_request_Lightning_UpdateChannelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1855  	var protoReq PolicyUpdateRequest
  1856  	var metadata runtime.ServerMetadata
  1857  
  1858  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1859  	if berr != nil {
  1860  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1861  	}
  1862  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1863  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1864  	}
  1865  
  1866  	msg, err := server.UpdateChannelPolicy(ctx, &protoReq)
  1867  	return msg, metadata, err
  1868  
  1869  }
  1870  
  1871  func request_Lightning_ForwardingHistory_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1872  	var protoReq ForwardingHistoryRequest
  1873  	var metadata runtime.ServerMetadata
  1874  
  1875  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1876  	if berr != nil {
  1877  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1878  	}
  1879  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1880  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1881  	}
  1882  
  1883  	msg, err := client.ForwardingHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1884  	return msg, metadata, err
  1885  
  1886  }
  1887  
  1888  func local_request_Lightning_ForwardingHistory_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1889  	var protoReq ForwardingHistoryRequest
  1890  	var metadata runtime.ServerMetadata
  1891  
  1892  	newReader, berr := utilities.IOReaderFactory(req.Body)
  1893  	if berr != nil {
  1894  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  1895  	}
  1896  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  1897  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1898  	}
  1899  
  1900  	msg, err := server.ForwardingHistory(ctx, &protoReq)
  1901  	return msg, metadata, err
  1902  
  1903  }
  1904  
  1905  var (
  1906  	filter_Lightning_ExportChannelBackup_0 = &utilities.DoubleArray{Encoding: map[string]int{"chan_point": 0, "funding_txid_str": 1, "output_index": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}}
  1907  )
  1908  
  1909  func request_Lightning_ExportChannelBackup_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1910  	var protoReq ExportChannelBackupRequest
  1911  	var metadata runtime.ServerMetadata
  1912  
  1913  	var (
  1914  		val string
  1915  		ok  bool
  1916  		err error
  1917  		_   = err
  1918  	)
  1919  
  1920  	val, ok = pathParams["chan_point.funding_txid_str"]
  1921  	if !ok {
  1922  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_point.funding_txid_str")
  1923  	}
  1924  
  1925  	err = runtime.PopulateFieldFromPath(&protoReq, "chan_point.funding_txid_str", val)
  1926  	if err != nil {
  1927  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_point.funding_txid_str", err)
  1928  	}
  1929  
  1930  	val, ok = pathParams["chan_point.output_index"]
  1931  	if !ok {
  1932  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_point.output_index")
  1933  	}
  1934  
  1935  	err = runtime.PopulateFieldFromPath(&protoReq, "chan_point.output_index", val)
  1936  	if err != nil {
  1937  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_point.output_index", err)
  1938  	}
  1939  
  1940  	if err := req.ParseForm(); err != nil {
  1941  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1942  	}
  1943  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ExportChannelBackup_0); err != nil {
  1944  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1945  	}
  1946  
  1947  	msg, err := client.ExportChannelBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  1948  	return msg, metadata, err
  1949  
  1950  }
  1951  
  1952  func local_request_Lightning_ExportChannelBackup_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1953  	var protoReq ExportChannelBackupRequest
  1954  	var metadata runtime.ServerMetadata
  1955  
  1956  	var (
  1957  		val string
  1958  		ok  bool
  1959  		err error
  1960  		_   = err
  1961  	)
  1962  
  1963  	val, ok = pathParams["chan_point.funding_txid_str"]
  1964  	if !ok {
  1965  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_point.funding_txid_str")
  1966  	}
  1967  
  1968  	err = runtime.PopulateFieldFromPath(&protoReq, "chan_point.funding_txid_str", val)
  1969  	if err != nil {
  1970  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_point.funding_txid_str", err)
  1971  	}
  1972  
  1973  	val, ok = pathParams["chan_point.output_index"]
  1974  	if !ok {
  1975  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chan_point.output_index")
  1976  	}
  1977  
  1978  	err = runtime.PopulateFieldFromPath(&protoReq, "chan_point.output_index", val)
  1979  	if err != nil {
  1980  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chan_point.output_index", err)
  1981  	}
  1982  
  1983  	if err := req.ParseForm(); err != nil {
  1984  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1985  	}
  1986  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Lightning_ExportChannelBackup_0); err != nil {
  1987  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  1988  	}
  1989  
  1990  	msg, err := server.ExportChannelBackup(ctx, &protoReq)
  1991  	return msg, metadata, err
  1992  
  1993  }
  1994  
  1995  func request_Lightning_ExportAllChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  1996  	var protoReq ChanBackupExportRequest
  1997  	var metadata runtime.ServerMetadata
  1998  
  1999  	msg, err := client.ExportAllChannelBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2000  	return msg, metadata, err
  2001  
  2002  }
  2003  
  2004  func local_request_Lightning_ExportAllChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2005  	var protoReq ChanBackupExportRequest
  2006  	var metadata runtime.ServerMetadata
  2007  
  2008  	msg, err := server.ExportAllChannelBackups(ctx, &protoReq)
  2009  	return msg, metadata, err
  2010  
  2011  }
  2012  
  2013  func request_Lightning_VerifyChanBackup_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2014  	var protoReq ChanBackupSnapshot
  2015  	var metadata runtime.ServerMetadata
  2016  
  2017  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2018  	if berr != nil {
  2019  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2020  	}
  2021  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2022  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2023  	}
  2024  
  2025  	msg, err := client.VerifyChanBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2026  	return msg, metadata, err
  2027  
  2028  }
  2029  
  2030  func local_request_Lightning_VerifyChanBackup_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2031  	var protoReq ChanBackupSnapshot
  2032  	var metadata runtime.ServerMetadata
  2033  
  2034  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2035  	if berr != nil {
  2036  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2037  	}
  2038  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2039  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2040  	}
  2041  
  2042  	msg, err := server.VerifyChanBackup(ctx, &protoReq)
  2043  	return msg, metadata, err
  2044  
  2045  }
  2046  
  2047  func request_Lightning_RestoreChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2048  	var protoReq RestoreChanBackupRequest
  2049  	var metadata runtime.ServerMetadata
  2050  
  2051  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2052  	if berr != nil {
  2053  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2054  	}
  2055  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2056  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2057  	}
  2058  
  2059  	msg, err := client.RestoreChannelBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2060  	return msg, metadata, err
  2061  
  2062  }
  2063  
  2064  func local_request_Lightning_RestoreChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2065  	var protoReq RestoreChanBackupRequest
  2066  	var metadata runtime.ServerMetadata
  2067  
  2068  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2069  	if berr != nil {
  2070  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2071  	}
  2072  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2073  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2074  	}
  2075  
  2076  	msg, err := server.RestoreChannelBackups(ctx, &protoReq)
  2077  	return msg, metadata, err
  2078  
  2079  }
  2080  
  2081  func request_Lightning_SubscribeChannelBackups_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeChannelBackupsClient, runtime.ServerMetadata, error) {
  2082  	var protoReq ChannelBackupSubscription
  2083  	var metadata runtime.ServerMetadata
  2084  
  2085  	stream, err := client.SubscribeChannelBackups(ctx, &protoReq)
  2086  	if err != nil {
  2087  		return nil, metadata, err
  2088  	}
  2089  	header, err := stream.Header()
  2090  	if err != nil {
  2091  		return nil, metadata, err
  2092  	}
  2093  	metadata.HeaderMD = header
  2094  	return stream, metadata, nil
  2095  
  2096  }
  2097  
  2098  func request_Lightning_BakeMacaroon_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2099  	var protoReq BakeMacaroonRequest
  2100  	var metadata runtime.ServerMetadata
  2101  
  2102  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2103  	if berr != nil {
  2104  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2105  	}
  2106  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2107  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2108  	}
  2109  
  2110  	msg, err := client.BakeMacaroon(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2111  	return msg, metadata, err
  2112  
  2113  }
  2114  
  2115  func local_request_Lightning_BakeMacaroon_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2116  	var protoReq BakeMacaroonRequest
  2117  	var metadata runtime.ServerMetadata
  2118  
  2119  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2120  	if berr != nil {
  2121  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2122  	}
  2123  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2124  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2125  	}
  2126  
  2127  	msg, err := server.BakeMacaroon(ctx, &protoReq)
  2128  	return msg, metadata, err
  2129  
  2130  }
  2131  
  2132  func request_Lightning_ListMacaroonIDs_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2133  	var protoReq ListMacaroonIDsRequest
  2134  	var metadata runtime.ServerMetadata
  2135  
  2136  	msg, err := client.ListMacaroonIDs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2137  	return msg, metadata, err
  2138  
  2139  }
  2140  
  2141  func local_request_Lightning_ListMacaroonIDs_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2142  	var protoReq ListMacaroonIDsRequest
  2143  	var metadata runtime.ServerMetadata
  2144  
  2145  	msg, err := server.ListMacaroonIDs(ctx, &protoReq)
  2146  	return msg, metadata, err
  2147  
  2148  }
  2149  
  2150  func request_Lightning_DeleteMacaroonID_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2151  	var protoReq DeleteMacaroonIDRequest
  2152  	var metadata runtime.ServerMetadata
  2153  
  2154  	var (
  2155  		val string
  2156  		ok  bool
  2157  		err error
  2158  		_   = err
  2159  	)
  2160  
  2161  	val, ok = pathParams["root_key_id"]
  2162  	if !ok {
  2163  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "root_key_id")
  2164  	}
  2165  
  2166  	protoReq.RootKeyId, err = runtime.Uint64(val)
  2167  	if err != nil {
  2168  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "root_key_id", err)
  2169  	}
  2170  
  2171  	msg, err := client.DeleteMacaroonID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2172  	return msg, metadata, err
  2173  
  2174  }
  2175  
  2176  func local_request_Lightning_DeleteMacaroonID_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2177  	var protoReq DeleteMacaroonIDRequest
  2178  	var metadata runtime.ServerMetadata
  2179  
  2180  	var (
  2181  		val string
  2182  		ok  bool
  2183  		err error
  2184  		_   = err
  2185  	)
  2186  
  2187  	val, ok = pathParams["root_key_id"]
  2188  	if !ok {
  2189  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "root_key_id")
  2190  	}
  2191  
  2192  	protoReq.RootKeyId, err = runtime.Uint64(val)
  2193  	if err != nil {
  2194  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "root_key_id", err)
  2195  	}
  2196  
  2197  	msg, err := server.DeleteMacaroonID(ctx, &protoReq)
  2198  	return msg, metadata, err
  2199  
  2200  }
  2201  
  2202  func request_Lightning_ListPermissions_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2203  	var protoReq ListPermissionsRequest
  2204  	var metadata runtime.ServerMetadata
  2205  
  2206  	msg, err := client.ListPermissions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2207  	return msg, metadata, err
  2208  
  2209  }
  2210  
  2211  func local_request_Lightning_ListPermissions_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2212  	var protoReq ListPermissionsRequest
  2213  	var metadata runtime.ServerMetadata
  2214  
  2215  	msg, err := server.ListPermissions(ctx, &protoReq)
  2216  	return msg, metadata, err
  2217  
  2218  }
  2219  
  2220  func request_Lightning_CheckMacaroonPermissions_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2221  	var protoReq CheckMacPermRequest
  2222  	var metadata runtime.ServerMetadata
  2223  
  2224  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2225  	if berr != nil {
  2226  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2227  	}
  2228  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2229  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2230  	}
  2231  
  2232  	msg, err := client.CheckMacaroonPermissions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2233  	return msg, metadata, err
  2234  
  2235  }
  2236  
  2237  func local_request_Lightning_CheckMacaroonPermissions_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2238  	var protoReq CheckMacPermRequest
  2239  	var metadata runtime.ServerMetadata
  2240  
  2241  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2242  	if berr != nil {
  2243  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2244  	}
  2245  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2246  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2247  	}
  2248  
  2249  	msg, err := server.CheckMacaroonPermissions(ctx, &protoReq)
  2250  	return msg, metadata, err
  2251  
  2252  }
  2253  
  2254  func request_Lightning_RegisterRPCMiddleware_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_RegisterRPCMiddlewareClient, runtime.ServerMetadata, error) {
  2255  	var metadata runtime.ServerMetadata
  2256  	stream, err := client.RegisterRPCMiddleware(ctx)
  2257  	if err != nil {
  2258  		grpclog.Infof("Failed to start streaming: %v", err)
  2259  		return nil, metadata, err
  2260  	}
  2261  	dec := marshaler.NewDecoder(req.Body)
  2262  	handleSend := func() error {
  2263  		var protoReq RPCMiddlewareResponse
  2264  		err := dec.Decode(&protoReq)
  2265  		if err == io.EOF {
  2266  			return err
  2267  		}
  2268  		if err != nil {
  2269  			grpclog.Infof("Failed to decode request: %v", err)
  2270  			return err
  2271  		}
  2272  		if err := stream.Send(&protoReq); err != nil {
  2273  			grpclog.Infof("Failed to send request: %v", err)
  2274  			return err
  2275  		}
  2276  		return nil
  2277  	}
  2278  	if err := handleSend(); err != nil {
  2279  		if cerr := stream.CloseSend(); cerr != nil {
  2280  			grpclog.Infof("Failed to terminate client stream: %v", cerr)
  2281  		}
  2282  		if err == io.EOF {
  2283  			return stream, metadata, nil
  2284  		}
  2285  		return nil, metadata, err
  2286  	}
  2287  	go func() {
  2288  		for {
  2289  			if err := handleSend(); err != nil {
  2290  				break
  2291  			}
  2292  		}
  2293  		if err := stream.CloseSend(); err != nil {
  2294  			grpclog.Infof("Failed to terminate client stream: %v", err)
  2295  		}
  2296  	}()
  2297  	header, err := stream.Header()
  2298  	if err != nil {
  2299  		grpclog.Infof("Failed to get header from client: %v", err)
  2300  		return nil, metadata, err
  2301  	}
  2302  	metadata.HeaderMD = header
  2303  	return stream, metadata, nil
  2304  }
  2305  
  2306  func request_Lightning_SendCustomMessage_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2307  	var protoReq SendCustomMessageRequest
  2308  	var metadata runtime.ServerMetadata
  2309  
  2310  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2311  	if berr != nil {
  2312  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2313  	}
  2314  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2315  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2316  	}
  2317  
  2318  	msg, err := client.SendCustomMessage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  2319  	return msg, metadata, err
  2320  
  2321  }
  2322  
  2323  func local_request_Lightning_SendCustomMessage_0(ctx context.Context, marshaler runtime.Marshaler, server LightningServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  2324  	var protoReq SendCustomMessageRequest
  2325  	var metadata runtime.ServerMetadata
  2326  
  2327  	newReader, berr := utilities.IOReaderFactory(req.Body)
  2328  	if berr != nil {
  2329  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  2330  	}
  2331  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
  2332  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  2333  	}
  2334  
  2335  	msg, err := server.SendCustomMessage(ctx, &protoReq)
  2336  	return msg, metadata, err
  2337  
  2338  }
  2339  
  2340  func request_Lightning_SubscribeCustomMessages_0(ctx context.Context, marshaler runtime.Marshaler, client LightningClient, req *http.Request, pathParams map[string]string) (Lightning_SubscribeCustomMessagesClient, runtime.ServerMetadata, error) {
  2341  	var protoReq SubscribeCustomMessagesRequest
  2342  	var metadata runtime.ServerMetadata
  2343  
  2344  	stream, err := client.SubscribeCustomMessages(ctx, &protoReq)
  2345  	if err != nil {
  2346  		return nil, metadata, err
  2347  	}
  2348  	header, err := stream.Header()
  2349  	if err != nil {
  2350  		return nil, metadata, err
  2351  	}
  2352  	metadata.HeaderMD = header
  2353  	return stream, metadata, nil
  2354  
  2355  }
  2356  
  2357  // RegisterLightningHandlerServer registers the http handlers for service Lightning to "mux".
  2358  // UnaryRPC     :call LightningServer directly.
  2359  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
  2360  // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLightningHandlerFromEndpoint instead.
  2361  func RegisterLightningHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LightningServer) error {
  2362  
  2363  	mux.Handle("GET", pattern_Lightning_WalletBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2364  		ctx, cancel := context.WithCancel(req.Context())
  2365  		defer cancel()
  2366  		var stream runtime.ServerTransportStream
  2367  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2368  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2369  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/WalletBalance", runtime.WithHTTPPathPattern("/v1/balance/blockchain"))
  2370  		if err != nil {
  2371  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2372  			return
  2373  		}
  2374  		resp, md, err := local_request_Lightning_WalletBalance_0(rctx, inboundMarshaler, server, req, pathParams)
  2375  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2376  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2377  		if err != nil {
  2378  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2379  			return
  2380  		}
  2381  
  2382  		forward_Lightning_WalletBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2383  
  2384  	})
  2385  
  2386  	mux.Handle("GET", pattern_Lightning_ChannelBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2387  		ctx, cancel := context.WithCancel(req.Context())
  2388  		defer cancel()
  2389  		var stream runtime.ServerTransportStream
  2390  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2391  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2392  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ChannelBalance", runtime.WithHTTPPathPattern("/v1/balance/channels"))
  2393  		if err != nil {
  2394  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2395  			return
  2396  		}
  2397  		resp, md, err := local_request_Lightning_ChannelBalance_0(rctx, inboundMarshaler, server, req, pathParams)
  2398  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2399  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2400  		if err != nil {
  2401  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2402  			return
  2403  		}
  2404  
  2405  		forward_Lightning_ChannelBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2406  
  2407  	})
  2408  
  2409  	mux.Handle("GET", pattern_Lightning_GetTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2410  		ctx, cancel := context.WithCancel(req.Context())
  2411  		defer cancel()
  2412  		var stream runtime.ServerTransportStream
  2413  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2414  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2415  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetTransactions", runtime.WithHTTPPathPattern("/v1/transactions"))
  2416  		if err != nil {
  2417  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2418  			return
  2419  		}
  2420  		resp, md, err := local_request_Lightning_GetTransactions_0(rctx, inboundMarshaler, server, req, pathParams)
  2421  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2422  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2423  		if err != nil {
  2424  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2425  			return
  2426  		}
  2427  
  2428  		forward_Lightning_GetTransactions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2429  
  2430  	})
  2431  
  2432  	mux.Handle("GET", pattern_Lightning_EstimateFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2433  		ctx, cancel := context.WithCancel(req.Context())
  2434  		defer cancel()
  2435  		var stream runtime.ServerTransportStream
  2436  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2437  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2438  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/EstimateFee", runtime.WithHTTPPathPattern("/v1/transactions/fee"))
  2439  		if err != nil {
  2440  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2441  			return
  2442  		}
  2443  		resp, md, err := local_request_Lightning_EstimateFee_0(rctx, inboundMarshaler, server, req, pathParams)
  2444  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2445  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2446  		if err != nil {
  2447  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2448  			return
  2449  		}
  2450  
  2451  		forward_Lightning_EstimateFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2452  
  2453  	})
  2454  
  2455  	mux.Handle("POST", pattern_Lightning_SendCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2456  		ctx, cancel := context.WithCancel(req.Context())
  2457  		defer cancel()
  2458  		var stream runtime.ServerTransportStream
  2459  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2460  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2461  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendCoins", runtime.WithHTTPPathPattern("/v1/transactions"))
  2462  		if err != nil {
  2463  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2464  			return
  2465  		}
  2466  		resp, md, err := local_request_Lightning_SendCoins_0(rctx, inboundMarshaler, server, req, pathParams)
  2467  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2468  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2469  		if err != nil {
  2470  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2471  			return
  2472  		}
  2473  
  2474  		forward_Lightning_SendCoins_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2475  
  2476  	})
  2477  
  2478  	mux.Handle("GET", pattern_Lightning_ListUnspent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2479  		ctx, cancel := context.WithCancel(req.Context())
  2480  		defer cancel()
  2481  		var stream runtime.ServerTransportStream
  2482  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2483  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2484  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListUnspent", runtime.WithHTTPPathPattern("/v1/utxos"))
  2485  		if err != nil {
  2486  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2487  			return
  2488  		}
  2489  		resp, md, err := local_request_Lightning_ListUnspent_0(rctx, inboundMarshaler, server, req, pathParams)
  2490  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2491  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2492  		if err != nil {
  2493  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2494  			return
  2495  		}
  2496  
  2497  		forward_Lightning_ListUnspent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2498  
  2499  	})
  2500  
  2501  	mux.Handle("GET", pattern_Lightning_SubscribeTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2502  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2503  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2504  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2505  		return
  2506  	})
  2507  
  2508  	mux.Handle("POST", pattern_Lightning_SendMany_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2509  		ctx, cancel := context.WithCancel(req.Context())
  2510  		defer cancel()
  2511  		var stream runtime.ServerTransportStream
  2512  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2513  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2514  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendMany", runtime.WithHTTPPathPattern("/v1/transactions/many"))
  2515  		if err != nil {
  2516  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2517  			return
  2518  		}
  2519  		resp, md, err := local_request_Lightning_SendMany_0(rctx, inboundMarshaler, server, req, pathParams)
  2520  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2521  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2522  		if err != nil {
  2523  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2524  			return
  2525  		}
  2526  
  2527  		forward_Lightning_SendMany_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2528  
  2529  	})
  2530  
  2531  	mux.Handle("GET", pattern_Lightning_NewAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2532  		ctx, cancel := context.WithCancel(req.Context())
  2533  		defer cancel()
  2534  		var stream runtime.ServerTransportStream
  2535  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2536  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2537  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/NewAddress", runtime.WithHTTPPathPattern("/v1/newaddress"))
  2538  		if err != nil {
  2539  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2540  			return
  2541  		}
  2542  		resp, md, err := local_request_Lightning_NewAddress_0(rctx, inboundMarshaler, server, req, pathParams)
  2543  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2544  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2545  		if err != nil {
  2546  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2547  			return
  2548  		}
  2549  
  2550  		forward_Lightning_NewAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2551  
  2552  	})
  2553  
  2554  	mux.Handle("POST", pattern_Lightning_SignMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2555  		ctx, cancel := context.WithCancel(req.Context())
  2556  		defer cancel()
  2557  		var stream runtime.ServerTransportStream
  2558  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2559  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2560  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SignMessage", runtime.WithHTTPPathPattern("/v1/signmessage"))
  2561  		if err != nil {
  2562  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2563  			return
  2564  		}
  2565  		resp, md, err := local_request_Lightning_SignMessage_0(rctx, inboundMarshaler, server, req, pathParams)
  2566  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2567  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2568  		if err != nil {
  2569  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2570  			return
  2571  		}
  2572  
  2573  		forward_Lightning_SignMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2574  
  2575  	})
  2576  
  2577  	mux.Handle("POST", pattern_Lightning_VerifyMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2578  		ctx, cancel := context.WithCancel(req.Context())
  2579  		defer cancel()
  2580  		var stream runtime.ServerTransportStream
  2581  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2582  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2583  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/VerifyMessage", runtime.WithHTTPPathPattern("/v1/verifymessage"))
  2584  		if err != nil {
  2585  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2586  			return
  2587  		}
  2588  		resp, md, err := local_request_Lightning_VerifyMessage_0(rctx, inboundMarshaler, server, req, pathParams)
  2589  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2590  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2591  		if err != nil {
  2592  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2593  			return
  2594  		}
  2595  
  2596  		forward_Lightning_VerifyMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2597  
  2598  	})
  2599  
  2600  	mux.Handle("POST", pattern_Lightning_ConnectPeer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2601  		ctx, cancel := context.WithCancel(req.Context())
  2602  		defer cancel()
  2603  		var stream runtime.ServerTransportStream
  2604  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2605  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2606  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ConnectPeer", runtime.WithHTTPPathPattern("/v1/peers"))
  2607  		if err != nil {
  2608  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2609  			return
  2610  		}
  2611  		resp, md, err := local_request_Lightning_ConnectPeer_0(rctx, inboundMarshaler, server, req, pathParams)
  2612  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2613  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2614  		if err != nil {
  2615  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2616  			return
  2617  		}
  2618  
  2619  		forward_Lightning_ConnectPeer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2620  
  2621  	})
  2622  
  2623  	mux.Handle("DELETE", pattern_Lightning_DisconnectPeer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2624  		ctx, cancel := context.WithCancel(req.Context())
  2625  		defer cancel()
  2626  		var stream runtime.ServerTransportStream
  2627  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2628  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2629  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DisconnectPeer", runtime.WithHTTPPathPattern("/v1/peers/{pub_key}"))
  2630  		if err != nil {
  2631  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2632  			return
  2633  		}
  2634  		resp, md, err := local_request_Lightning_DisconnectPeer_0(rctx, inboundMarshaler, server, req, pathParams)
  2635  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2636  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2637  		if err != nil {
  2638  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2639  			return
  2640  		}
  2641  
  2642  		forward_Lightning_DisconnectPeer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2643  
  2644  	})
  2645  
  2646  	mux.Handle("GET", pattern_Lightning_ListPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2647  		ctx, cancel := context.WithCancel(req.Context())
  2648  		defer cancel()
  2649  		var stream runtime.ServerTransportStream
  2650  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2651  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2652  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListPeers", runtime.WithHTTPPathPattern("/v1/peers"))
  2653  		if err != nil {
  2654  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2655  			return
  2656  		}
  2657  		resp, md, err := local_request_Lightning_ListPeers_0(rctx, inboundMarshaler, server, req, pathParams)
  2658  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2659  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2660  		if err != nil {
  2661  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2662  			return
  2663  		}
  2664  
  2665  		forward_Lightning_ListPeers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2666  
  2667  	})
  2668  
  2669  	mux.Handle("GET", pattern_Lightning_SubscribePeerEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2670  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2671  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2672  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2673  		return
  2674  	})
  2675  
  2676  	mux.Handle("GET", pattern_Lightning_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2677  		ctx, cancel := context.WithCancel(req.Context())
  2678  		defer cancel()
  2679  		var stream runtime.ServerTransportStream
  2680  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2681  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2682  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetInfo", runtime.WithHTTPPathPattern("/v1/getinfo"))
  2683  		if err != nil {
  2684  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2685  			return
  2686  		}
  2687  		resp, md, err := local_request_Lightning_GetInfo_0(rctx, inboundMarshaler, server, req, pathParams)
  2688  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2689  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2690  		if err != nil {
  2691  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2692  			return
  2693  		}
  2694  
  2695  		forward_Lightning_GetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2696  
  2697  	})
  2698  
  2699  	mux.Handle("GET", pattern_Lightning_GetRecoveryInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2700  		ctx, cancel := context.WithCancel(req.Context())
  2701  		defer cancel()
  2702  		var stream runtime.ServerTransportStream
  2703  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2704  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2705  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetRecoveryInfo", runtime.WithHTTPPathPattern("/v1/getrecoveryinfo"))
  2706  		if err != nil {
  2707  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2708  			return
  2709  		}
  2710  		resp, md, err := local_request_Lightning_GetRecoveryInfo_0(rctx, inboundMarshaler, server, req, pathParams)
  2711  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2712  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2713  		if err != nil {
  2714  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2715  			return
  2716  		}
  2717  
  2718  		forward_Lightning_GetRecoveryInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2719  
  2720  	})
  2721  
  2722  	mux.Handle("GET", pattern_Lightning_PendingChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2723  		ctx, cancel := context.WithCancel(req.Context())
  2724  		defer cancel()
  2725  		var stream runtime.ServerTransportStream
  2726  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2727  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2728  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/PendingChannels", runtime.WithHTTPPathPattern("/v1/channels/pending"))
  2729  		if err != nil {
  2730  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2731  			return
  2732  		}
  2733  		resp, md, err := local_request_Lightning_PendingChannels_0(rctx, inboundMarshaler, server, req, pathParams)
  2734  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2735  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2736  		if err != nil {
  2737  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2738  			return
  2739  		}
  2740  
  2741  		forward_Lightning_PendingChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2742  
  2743  	})
  2744  
  2745  	mux.Handle("GET", pattern_Lightning_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2746  		ctx, cancel := context.WithCancel(req.Context())
  2747  		defer cancel()
  2748  		var stream runtime.ServerTransportStream
  2749  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2750  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2751  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListChannels", runtime.WithHTTPPathPattern("/v1/channels"))
  2752  		if err != nil {
  2753  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2754  			return
  2755  		}
  2756  		resp, md, err := local_request_Lightning_ListChannels_0(rctx, inboundMarshaler, server, req, pathParams)
  2757  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2758  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2759  		if err != nil {
  2760  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2761  			return
  2762  		}
  2763  
  2764  		forward_Lightning_ListChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2765  
  2766  	})
  2767  
  2768  	mux.Handle("GET", pattern_Lightning_SubscribeChannelEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2769  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2770  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2771  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2772  		return
  2773  	})
  2774  
  2775  	mux.Handle("GET", pattern_Lightning_ClosedChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2776  		ctx, cancel := context.WithCancel(req.Context())
  2777  		defer cancel()
  2778  		var stream runtime.ServerTransportStream
  2779  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2780  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2781  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ClosedChannels", runtime.WithHTTPPathPattern("/v1/channels/closed"))
  2782  		if err != nil {
  2783  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2784  			return
  2785  		}
  2786  		resp, md, err := local_request_Lightning_ClosedChannels_0(rctx, inboundMarshaler, server, req, pathParams)
  2787  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2788  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2789  		if err != nil {
  2790  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2791  			return
  2792  		}
  2793  
  2794  		forward_Lightning_ClosedChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2795  
  2796  	})
  2797  
  2798  	mux.Handle("POST", pattern_Lightning_OpenChannelSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2799  		ctx, cancel := context.WithCancel(req.Context())
  2800  		defer cancel()
  2801  		var stream runtime.ServerTransportStream
  2802  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2803  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2804  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/OpenChannelSync", runtime.WithHTTPPathPattern("/v1/channels"))
  2805  		if err != nil {
  2806  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2807  			return
  2808  		}
  2809  		resp, md, err := local_request_Lightning_OpenChannelSync_0(rctx, inboundMarshaler, server, req, pathParams)
  2810  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2811  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2812  		if err != nil {
  2813  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2814  			return
  2815  		}
  2816  
  2817  		forward_Lightning_OpenChannelSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2818  
  2819  	})
  2820  
  2821  	mux.Handle("POST", pattern_Lightning_OpenChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2822  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2823  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2824  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2825  		return
  2826  	})
  2827  
  2828  	mux.Handle("POST", pattern_Lightning_BatchOpenChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2829  		ctx, cancel := context.WithCancel(req.Context())
  2830  		defer cancel()
  2831  		var stream runtime.ServerTransportStream
  2832  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2833  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2834  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/BatchOpenChannel", runtime.WithHTTPPathPattern("/v1/channels/batch"))
  2835  		if err != nil {
  2836  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2837  			return
  2838  		}
  2839  		resp, md, err := local_request_Lightning_BatchOpenChannel_0(rctx, inboundMarshaler, server, req, pathParams)
  2840  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2841  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2842  		if err != nil {
  2843  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2844  			return
  2845  		}
  2846  
  2847  		forward_Lightning_BatchOpenChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2848  
  2849  	})
  2850  
  2851  	mux.Handle("POST", pattern_Lightning_FundingStateStep_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2852  		ctx, cancel := context.WithCancel(req.Context())
  2853  		defer cancel()
  2854  		var stream runtime.ServerTransportStream
  2855  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2856  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2857  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/FundingStateStep", runtime.WithHTTPPathPattern("/v1/funding/step"))
  2858  		if err != nil {
  2859  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2860  			return
  2861  		}
  2862  		resp, md, err := local_request_Lightning_FundingStateStep_0(rctx, inboundMarshaler, server, req, pathParams)
  2863  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2864  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2865  		if err != nil {
  2866  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2867  			return
  2868  		}
  2869  
  2870  		forward_Lightning_FundingStateStep_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2871  
  2872  	})
  2873  
  2874  	mux.Handle("POST", pattern_Lightning_ChannelAcceptor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2875  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2876  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2877  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2878  		return
  2879  	})
  2880  
  2881  	mux.Handle("DELETE", pattern_Lightning_CloseChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2882  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2883  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2884  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2885  		return
  2886  	})
  2887  
  2888  	mux.Handle("DELETE", pattern_Lightning_AbandonChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2889  		ctx, cancel := context.WithCancel(req.Context())
  2890  		defer cancel()
  2891  		var stream runtime.ServerTransportStream
  2892  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2893  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2894  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/AbandonChannel", runtime.WithHTTPPathPattern("/v1/channels/abandon/{channel_point.funding_txid_str}/{channel_point.output_index}"))
  2895  		if err != nil {
  2896  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2897  			return
  2898  		}
  2899  		resp, md, err := local_request_Lightning_AbandonChannel_0(rctx, inboundMarshaler, server, req, pathParams)
  2900  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2901  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2902  		if err != nil {
  2903  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2904  			return
  2905  		}
  2906  
  2907  		forward_Lightning_AbandonChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2908  
  2909  	})
  2910  
  2911  	mux.Handle("POST", pattern_Lightning_SendPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2912  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  2913  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2914  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2915  		return
  2916  	})
  2917  
  2918  	mux.Handle("POST", pattern_Lightning_SendPaymentSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2919  		ctx, cancel := context.WithCancel(req.Context())
  2920  		defer cancel()
  2921  		var stream runtime.ServerTransportStream
  2922  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2923  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2924  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendPaymentSync", runtime.WithHTTPPathPattern("/v1/channels/transactions"))
  2925  		if err != nil {
  2926  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2927  			return
  2928  		}
  2929  		resp, md, err := local_request_Lightning_SendPaymentSync_0(rctx, inboundMarshaler, server, req, pathParams)
  2930  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2931  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2932  		if err != nil {
  2933  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2934  			return
  2935  		}
  2936  
  2937  		forward_Lightning_SendPaymentSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2938  
  2939  	})
  2940  
  2941  	mux.Handle("POST", pattern_Lightning_SendToRouteSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2942  		ctx, cancel := context.WithCancel(req.Context())
  2943  		defer cancel()
  2944  		var stream runtime.ServerTransportStream
  2945  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2946  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2947  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendToRouteSync", runtime.WithHTTPPathPattern("/v1/channels/transactions/route"))
  2948  		if err != nil {
  2949  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2950  			return
  2951  		}
  2952  		resp, md, err := local_request_Lightning_SendToRouteSync_0(rctx, inboundMarshaler, server, req, pathParams)
  2953  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2954  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2955  		if err != nil {
  2956  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2957  			return
  2958  		}
  2959  
  2960  		forward_Lightning_SendToRouteSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2961  
  2962  	})
  2963  
  2964  	mux.Handle("POST", pattern_Lightning_AddInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2965  		ctx, cancel := context.WithCancel(req.Context())
  2966  		defer cancel()
  2967  		var stream runtime.ServerTransportStream
  2968  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2969  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2970  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/AddInvoice", runtime.WithHTTPPathPattern("/v1/invoices"))
  2971  		if err != nil {
  2972  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2973  			return
  2974  		}
  2975  		resp, md, err := local_request_Lightning_AddInvoice_0(rctx, inboundMarshaler, server, req, pathParams)
  2976  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  2977  		ctx = runtime.NewServerMetadataContext(ctx, md)
  2978  		if err != nil {
  2979  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2980  			return
  2981  		}
  2982  
  2983  		forward_Lightning_AddInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  2984  
  2985  	})
  2986  
  2987  	mux.Handle("GET", pattern_Lightning_ListInvoices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  2988  		ctx, cancel := context.WithCancel(req.Context())
  2989  		defer cancel()
  2990  		var stream runtime.ServerTransportStream
  2991  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  2992  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  2993  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListInvoices", runtime.WithHTTPPathPattern("/v1/invoices"))
  2994  		if err != nil {
  2995  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  2996  			return
  2997  		}
  2998  		resp, md, err := local_request_Lightning_ListInvoices_0(rctx, inboundMarshaler, server, req, pathParams)
  2999  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3000  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3001  		if err != nil {
  3002  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3003  			return
  3004  		}
  3005  
  3006  		forward_Lightning_ListInvoices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3007  
  3008  	})
  3009  
  3010  	mux.Handle("GET", pattern_Lightning_LookupInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3011  		ctx, cancel := context.WithCancel(req.Context())
  3012  		defer cancel()
  3013  		var stream runtime.ServerTransportStream
  3014  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3015  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3016  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/LookupInvoice", runtime.WithHTTPPathPattern("/v1/invoice/{r_hash_str}"))
  3017  		if err != nil {
  3018  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3019  			return
  3020  		}
  3021  		resp, md, err := local_request_Lightning_LookupInvoice_0(rctx, inboundMarshaler, server, req, pathParams)
  3022  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3023  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3024  		if err != nil {
  3025  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3026  			return
  3027  		}
  3028  
  3029  		forward_Lightning_LookupInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3030  
  3031  	})
  3032  
  3033  	mux.Handle("GET", pattern_Lightning_SubscribeInvoices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3034  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  3035  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3036  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3037  		return
  3038  	})
  3039  
  3040  	mux.Handle("GET", pattern_Lightning_DecodePayReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3041  		ctx, cancel := context.WithCancel(req.Context())
  3042  		defer cancel()
  3043  		var stream runtime.ServerTransportStream
  3044  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3045  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3046  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DecodePayReq", runtime.WithHTTPPathPattern("/v1/payreq/{pay_req}"))
  3047  		if err != nil {
  3048  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3049  			return
  3050  		}
  3051  		resp, md, err := local_request_Lightning_DecodePayReq_0(rctx, inboundMarshaler, server, req, pathParams)
  3052  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3053  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3054  		if err != nil {
  3055  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3056  			return
  3057  		}
  3058  
  3059  		forward_Lightning_DecodePayReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3060  
  3061  	})
  3062  
  3063  	mux.Handle("GET", pattern_Lightning_ListPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3064  		ctx, cancel := context.WithCancel(req.Context())
  3065  		defer cancel()
  3066  		var stream runtime.ServerTransportStream
  3067  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3068  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3069  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListPayments", runtime.WithHTTPPathPattern("/v1/payments"))
  3070  		if err != nil {
  3071  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3072  			return
  3073  		}
  3074  		resp, md, err := local_request_Lightning_ListPayments_0(rctx, inboundMarshaler, server, req, pathParams)
  3075  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3076  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3077  		if err != nil {
  3078  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3079  			return
  3080  		}
  3081  
  3082  		forward_Lightning_ListPayments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3083  
  3084  	})
  3085  
  3086  	mux.Handle("DELETE", pattern_Lightning_DeletePayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3087  		ctx, cancel := context.WithCancel(req.Context())
  3088  		defer cancel()
  3089  		var stream runtime.ServerTransportStream
  3090  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3091  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3092  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DeletePayment", runtime.WithHTTPPathPattern("/v1/payment"))
  3093  		if err != nil {
  3094  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3095  			return
  3096  		}
  3097  		resp, md, err := local_request_Lightning_DeletePayment_0(rctx, inboundMarshaler, server, req, pathParams)
  3098  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3099  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3100  		if err != nil {
  3101  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3102  			return
  3103  		}
  3104  
  3105  		forward_Lightning_DeletePayment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3106  
  3107  	})
  3108  
  3109  	mux.Handle("DELETE", pattern_Lightning_DeleteAllPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3110  		ctx, cancel := context.WithCancel(req.Context())
  3111  		defer cancel()
  3112  		var stream runtime.ServerTransportStream
  3113  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3114  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3115  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DeleteAllPayments", runtime.WithHTTPPathPattern("/v1/payments"))
  3116  		if err != nil {
  3117  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3118  			return
  3119  		}
  3120  		resp, md, err := local_request_Lightning_DeleteAllPayments_0(rctx, inboundMarshaler, server, req, pathParams)
  3121  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3122  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3123  		if err != nil {
  3124  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3125  			return
  3126  		}
  3127  
  3128  		forward_Lightning_DeleteAllPayments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3129  
  3130  	})
  3131  
  3132  	mux.Handle("GET", pattern_Lightning_DescribeGraph_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3133  		ctx, cancel := context.WithCancel(req.Context())
  3134  		defer cancel()
  3135  		var stream runtime.ServerTransportStream
  3136  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3137  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3138  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DescribeGraph", runtime.WithHTTPPathPattern("/v1/graph"))
  3139  		if err != nil {
  3140  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3141  			return
  3142  		}
  3143  		resp, md, err := local_request_Lightning_DescribeGraph_0(rctx, inboundMarshaler, server, req, pathParams)
  3144  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3145  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3146  		if err != nil {
  3147  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3148  			return
  3149  		}
  3150  
  3151  		forward_Lightning_DescribeGraph_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3152  
  3153  	})
  3154  
  3155  	mux.Handle("GET", pattern_Lightning_GetNodeMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3156  		ctx, cancel := context.WithCancel(req.Context())
  3157  		defer cancel()
  3158  		var stream runtime.ServerTransportStream
  3159  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3160  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3161  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetNodeMetrics", runtime.WithHTTPPathPattern("/v1/graph/nodemetrics"))
  3162  		if err != nil {
  3163  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3164  			return
  3165  		}
  3166  		resp, md, err := local_request_Lightning_GetNodeMetrics_0(rctx, inboundMarshaler, server, req, pathParams)
  3167  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3168  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3169  		if err != nil {
  3170  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3171  			return
  3172  		}
  3173  
  3174  		forward_Lightning_GetNodeMetrics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3175  
  3176  	})
  3177  
  3178  	mux.Handle("GET", pattern_Lightning_GetChanInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3179  		ctx, cancel := context.WithCancel(req.Context())
  3180  		defer cancel()
  3181  		var stream runtime.ServerTransportStream
  3182  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3183  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3184  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetChanInfo", runtime.WithHTTPPathPattern("/v1/graph/edge/{chan_id}"))
  3185  		if err != nil {
  3186  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3187  			return
  3188  		}
  3189  		resp, md, err := local_request_Lightning_GetChanInfo_0(rctx, inboundMarshaler, server, req, pathParams)
  3190  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3191  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3192  		if err != nil {
  3193  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3194  			return
  3195  		}
  3196  
  3197  		forward_Lightning_GetChanInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3198  
  3199  	})
  3200  
  3201  	mux.Handle("GET", pattern_Lightning_GetNodeInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3202  		ctx, cancel := context.WithCancel(req.Context())
  3203  		defer cancel()
  3204  		var stream runtime.ServerTransportStream
  3205  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3206  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3207  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetNodeInfo", runtime.WithHTTPPathPattern("/v1/graph/node/{pub_key}"))
  3208  		if err != nil {
  3209  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3210  			return
  3211  		}
  3212  		resp, md, err := local_request_Lightning_GetNodeInfo_0(rctx, inboundMarshaler, server, req, pathParams)
  3213  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3214  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3215  		if err != nil {
  3216  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3217  			return
  3218  		}
  3219  
  3220  		forward_Lightning_GetNodeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3221  
  3222  	})
  3223  
  3224  	mux.Handle("GET", pattern_Lightning_QueryRoutes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3225  		ctx, cancel := context.WithCancel(req.Context())
  3226  		defer cancel()
  3227  		var stream runtime.ServerTransportStream
  3228  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3229  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3230  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/QueryRoutes", runtime.WithHTTPPathPattern("/v1/graph/routes/{pub_key}/{amt}"))
  3231  		if err != nil {
  3232  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3233  			return
  3234  		}
  3235  		resp, md, err := local_request_Lightning_QueryRoutes_0(rctx, inboundMarshaler, server, req, pathParams)
  3236  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3237  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3238  		if err != nil {
  3239  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3240  			return
  3241  		}
  3242  
  3243  		forward_Lightning_QueryRoutes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3244  
  3245  	})
  3246  
  3247  	mux.Handle("GET", pattern_Lightning_GetNetworkInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3248  		ctx, cancel := context.WithCancel(req.Context())
  3249  		defer cancel()
  3250  		var stream runtime.ServerTransportStream
  3251  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3252  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3253  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/GetNetworkInfo", runtime.WithHTTPPathPattern("/v1/graph/info"))
  3254  		if err != nil {
  3255  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3256  			return
  3257  		}
  3258  		resp, md, err := local_request_Lightning_GetNetworkInfo_0(rctx, inboundMarshaler, server, req, pathParams)
  3259  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3260  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3261  		if err != nil {
  3262  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3263  			return
  3264  		}
  3265  
  3266  		forward_Lightning_GetNetworkInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3267  
  3268  	})
  3269  
  3270  	mux.Handle("POST", pattern_Lightning_StopDaemon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3271  		ctx, cancel := context.WithCancel(req.Context())
  3272  		defer cancel()
  3273  		var stream runtime.ServerTransportStream
  3274  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3275  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3276  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/StopDaemon", runtime.WithHTTPPathPattern("/v1/stop"))
  3277  		if err != nil {
  3278  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3279  			return
  3280  		}
  3281  		resp, md, err := local_request_Lightning_StopDaemon_0(rctx, inboundMarshaler, server, req, pathParams)
  3282  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3283  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3284  		if err != nil {
  3285  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3286  			return
  3287  		}
  3288  
  3289  		forward_Lightning_StopDaemon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3290  
  3291  	})
  3292  
  3293  	mux.Handle("GET", pattern_Lightning_SubscribeChannelGraph_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3294  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  3295  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3296  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3297  		return
  3298  	})
  3299  
  3300  	mux.Handle("POST", pattern_Lightning_DebugLevel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3301  		ctx, cancel := context.WithCancel(req.Context())
  3302  		defer cancel()
  3303  		var stream runtime.ServerTransportStream
  3304  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3305  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3306  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DebugLevel", runtime.WithHTTPPathPattern("/v1/debuglevel"))
  3307  		if err != nil {
  3308  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3309  			return
  3310  		}
  3311  		resp, md, err := local_request_Lightning_DebugLevel_0(rctx, inboundMarshaler, server, req, pathParams)
  3312  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3313  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3314  		if err != nil {
  3315  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3316  			return
  3317  		}
  3318  
  3319  		forward_Lightning_DebugLevel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3320  
  3321  	})
  3322  
  3323  	mux.Handle("GET", pattern_Lightning_FeeReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3324  		ctx, cancel := context.WithCancel(req.Context())
  3325  		defer cancel()
  3326  		var stream runtime.ServerTransportStream
  3327  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3328  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3329  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/FeeReport", runtime.WithHTTPPathPattern("/v1/fees"))
  3330  		if err != nil {
  3331  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3332  			return
  3333  		}
  3334  		resp, md, err := local_request_Lightning_FeeReport_0(rctx, inboundMarshaler, server, req, pathParams)
  3335  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3336  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3337  		if err != nil {
  3338  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3339  			return
  3340  		}
  3341  
  3342  		forward_Lightning_FeeReport_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3343  
  3344  	})
  3345  
  3346  	mux.Handle("POST", pattern_Lightning_UpdateChannelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3347  		ctx, cancel := context.WithCancel(req.Context())
  3348  		defer cancel()
  3349  		var stream runtime.ServerTransportStream
  3350  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3351  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3352  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/UpdateChannelPolicy", runtime.WithHTTPPathPattern("/v1/chanpolicy"))
  3353  		if err != nil {
  3354  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3355  			return
  3356  		}
  3357  		resp, md, err := local_request_Lightning_UpdateChannelPolicy_0(rctx, inboundMarshaler, server, req, pathParams)
  3358  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3359  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3360  		if err != nil {
  3361  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3362  			return
  3363  		}
  3364  
  3365  		forward_Lightning_UpdateChannelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3366  
  3367  	})
  3368  
  3369  	mux.Handle("POST", pattern_Lightning_ForwardingHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3370  		ctx, cancel := context.WithCancel(req.Context())
  3371  		defer cancel()
  3372  		var stream runtime.ServerTransportStream
  3373  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3374  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3375  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ForwardingHistory", runtime.WithHTTPPathPattern("/v1/switch"))
  3376  		if err != nil {
  3377  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3378  			return
  3379  		}
  3380  		resp, md, err := local_request_Lightning_ForwardingHistory_0(rctx, inboundMarshaler, server, req, pathParams)
  3381  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3382  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3383  		if err != nil {
  3384  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3385  			return
  3386  		}
  3387  
  3388  		forward_Lightning_ForwardingHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3389  
  3390  	})
  3391  
  3392  	mux.Handle("GET", pattern_Lightning_ExportChannelBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3393  		ctx, cancel := context.WithCancel(req.Context())
  3394  		defer cancel()
  3395  		var stream runtime.ServerTransportStream
  3396  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3397  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3398  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ExportChannelBackup", runtime.WithHTTPPathPattern("/v1/channels/backup/{chan_point.funding_txid_str}/{chan_point.output_index}"))
  3399  		if err != nil {
  3400  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3401  			return
  3402  		}
  3403  		resp, md, err := local_request_Lightning_ExportChannelBackup_0(rctx, inboundMarshaler, server, req, pathParams)
  3404  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3405  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3406  		if err != nil {
  3407  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3408  			return
  3409  		}
  3410  
  3411  		forward_Lightning_ExportChannelBackup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3412  
  3413  	})
  3414  
  3415  	mux.Handle("GET", pattern_Lightning_ExportAllChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3416  		ctx, cancel := context.WithCancel(req.Context())
  3417  		defer cancel()
  3418  		var stream runtime.ServerTransportStream
  3419  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3420  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3421  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ExportAllChannelBackups", runtime.WithHTTPPathPattern("/v1/channels/backup"))
  3422  		if err != nil {
  3423  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3424  			return
  3425  		}
  3426  		resp, md, err := local_request_Lightning_ExportAllChannelBackups_0(rctx, inboundMarshaler, server, req, pathParams)
  3427  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3428  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3429  		if err != nil {
  3430  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3431  			return
  3432  		}
  3433  
  3434  		forward_Lightning_ExportAllChannelBackups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3435  
  3436  	})
  3437  
  3438  	mux.Handle("POST", pattern_Lightning_VerifyChanBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3439  		ctx, cancel := context.WithCancel(req.Context())
  3440  		defer cancel()
  3441  		var stream runtime.ServerTransportStream
  3442  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3443  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3444  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/VerifyChanBackup", runtime.WithHTTPPathPattern("/v1/channels/backup/verify"))
  3445  		if err != nil {
  3446  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3447  			return
  3448  		}
  3449  		resp, md, err := local_request_Lightning_VerifyChanBackup_0(rctx, inboundMarshaler, server, req, pathParams)
  3450  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3451  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3452  		if err != nil {
  3453  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3454  			return
  3455  		}
  3456  
  3457  		forward_Lightning_VerifyChanBackup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3458  
  3459  	})
  3460  
  3461  	mux.Handle("POST", pattern_Lightning_RestoreChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3462  		ctx, cancel := context.WithCancel(req.Context())
  3463  		defer cancel()
  3464  		var stream runtime.ServerTransportStream
  3465  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3466  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3467  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/RestoreChannelBackups", runtime.WithHTTPPathPattern("/v1/channels/backup/restore"))
  3468  		if err != nil {
  3469  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3470  			return
  3471  		}
  3472  		resp, md, err := local_request_Lightning_RestoreChannelBackups_0(rctx, inboundMarshaler, server, req, pathParams)
  3473  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3474  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3475  		if err != nil {
  3476  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3477  			return
  3478  		}
  3479  
  3480  		forward_Lightning_RestoreChannelBackups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3481  
  3482  	})
  3483  
  3484  	mux.Handle("GET", pattern_Lightning_SubscribeChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3485  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  3486  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3487  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3488  		return
  3489  	})
  3490  
  3491  	mux.Handle("POST", pattern_Lightning_BakeMacaroon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3492  		ctx, cancel := context.WithCancel(req.Context())
  3493  		defer cancel()
  3494  		var stream runtime.ServerTransportStream
  3495  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3496  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3497  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/BakeMacaroon", runtime.WithHTTPPathPattern("/v1/macaroon"))
  3498  		if err != nil {
  3499  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3500  			return
  3501  		}
  3502  		resp, md, err := local_request_Lightning_BakeMacaroon_0(rctx, inboundMarshaler, server, req, pathParams)
  3503  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3504  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3505  		if err != nil {
  3506  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3507  			return
  3508  		}
  3509  
  3510  		forward_Lightning_BakeMacaroon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3511  
  3512  	})
  3513  
  3514  	mux.Handle("GET", pattern_Lightning_ListMacaroonIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3515  		ctx, cancel := context.WithCancel(req.Context())
  3516  		defer cancel()
  3517  		var stream runtime.ServerTransportStream
  3518  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3519  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3520  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListMacaroonIDs", runtime.WithHTTPPathPattern("/v1/macaroon/ids"))
  3521  		if err != nil {
  3522  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3523  			return
  3524  		}
  3525  		resp, md, err := local_request_Lightning_ListMacaroonIDs_0(rctx, inboundMarshaler, server, req, pathParams)
  3526  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3527  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3528  		if err != nil {
  3529  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3530  			return
  3531  		}
  3532  
  3533  		forward_Lightning_ListMacaroonIDs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3534  
  3535  	})
  3536  
  3537  	mux.Handle("DELETE", pattern_Lightning_DeleteMacaroonID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3538  		ctx, cancel := context.WithCancel(req.Context())
  3539  		defer cancel()
  3540  		var stream runtime.ServerTransportStream
  3541  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3542  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3543  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/DeleteMacaroonID", runtime.WithHTTPPathPattern("/v1/macaroon/{root_key_id}"))
  3544  		if err != nil {
  3545  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3546  			return
  3547  		}
  3548  		resp, md, err := local_request_Lightning_DeleteMacaroonID_0(rctx, inboundMarshaler, server, req, pathParams)
  3549  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3550  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3551  		if err != nil {
  3552  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3553  			return
  3554  		}
  3555  
  3556  		forward_Lightning_DeleteMacaroonID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3557  
  3558  	})
  3559  
  3560  	mux.Handle("GET", pattern_Lightning_ListPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3561  		ctx, cancel := context.WithCancel(req.Context())
  3562  		defer cancel()
  3563  		var stream runtime.ServerTransportStream
  3564  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3565  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3566  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/ListPermissions", runtime.WithHTTPPathPattern("/v1/macaroon/permissions"))
  3567  		if err != nil {
  3568  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3569  			return
  3570  		}
  3571  		resp, md, err := local_request_Lightning_ListPermissions_0(rctx, inboundMarshaler, server, req, pathParams)
  3572  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3573  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3574  		if err != nil {
  3575  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3576  			return
  3577  		}
  3578  
  3579  		forward_Lightning_ListPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3580  
  3581  	})
  3582  
  3583  	mux.Handle("POST", pattern_Lightning_CheckMacaroonPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3584  		ctx, cancel := context.WithCancel(req.Context())
  3585  		defer cancel()
  3586  		var stream runtime.ServerTransportStream
  3587  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3588  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3589  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/CheckMacaroonPermissions", runtime.WithHTTPPathPattern("/v1/macaroon/checkpermissions"))
  3590  		if err != nil {
  3591  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3592  			return
  3593  		}
  3594  		resp, md, err := local_request_Lightning_CheckMacaroonPermissions_0(rctx, inboundMarshaler, server, req, pathParams)
  3595  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3596  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3597  		if err != nil {
  3598  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3599  			return
  3600  		}
  3601  
  3602  		forward_Lightning_CheckMacaroonPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3603  
  3604  	})
  3605  
  3606  	mux.Handle("POST", pattern_Lightning_RegisterRPCMiddleware_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3607  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  3608  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3609  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3610  		return
  3611  	})
  3612  
  3613  	mux.Handle("POST", pattern_Lightning_SendCustomMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3614  		ctx, cancel := context.WithCancel(req.Context())
  3615  		defer cancel()
  3616  		var stream runtime.ServerTransportStream
  3617  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  3618  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3619  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/lnrpc.Lightning/SendCustomMessage", runtime.WithHTTPPathPattern("/v1/custommessage"))
  3620  		if err != nil {
  3621  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3622  			return
  3623  		}
  3624  		resp, md, err := local_request_Lightning_SendCustomMessage_0(rctx, inboundMarshaler, server, req, pathParams)
  3625  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  3626  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3627  		if err != nil {
  3628  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3629  			return
  3630  		}
  3631  
  3632  		forward_Lightning_SendCustomMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3633  
  3634  	})
  3635  
  3636  	mux.Handle("GET", pattern_Lightning_SubscribeCustomMessages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3637  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
  3638  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3639  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3640  		return
  3641  	})
  3642  
  3643  	return nil
  3644  }
  3645  
  3646  // RegisterLightningHandlerFromEndpoint is same as RegisterLightningHandler but
  3647  // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
  3648  func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
  3649  	conn, err := grpc.Dial(endpoint, opts...)
  3650  	if err != nil {
  3651  		return err
  3652  	}
  3653  	defer func() {
  3654  		if err != nil {
  3655  			if cerr := conn.Close(); cerr != nil {
  3656  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
  3657  			}
  3658  			return
  3659  		}
  3660  		go func() {
  3661  			<-ctx.Done()
  3662  			if cerr := conn.Close(); cerr != nil {
  3663  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
  3664  			}
  3665  		}()
  3666  	}()
  3667  
  3668  	return RegisterLightningHandler(ctx, mux, conn)
  3669  }
  3670  
  3671  // RegisterLightningHandler registers the http handlers for service Lightning to "mux".
  3672  // The handlers forward requests to the grpc endpoint over "conn".
  3673  func RegisterLightningHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
  3674  	return RegisterLightningHandlerClient(ctx, mux, NewLightningClient(conn))
  3675  }
  3676  
  3677  // RegisterLightningHandlerClient registers the http handlers for service Lightning
  3678  // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LightningClient".
  3679  // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LightningClient"
  3680  // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
  3681  // "LightningClient" to call the correct interceptors.
  3682  func RegisterLightningHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LightningClient) error {
  3683  
  3684  	mux.Handle("GET", pattern_Lightning_WalletBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3685  		ctx, cancel := context.WithCancel(req.Context())
  3686  		defer cancel()
  3687  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3688  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/WalletBalance", runtime.WithHTTPPathPattern("/v1/balance/blockchain"))
  3689  		if err != nil {
  3690  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3691  			return
  3692  		}
  3693  		resp, md, err := request_Lightning_WalletBalance_0(rctx, inboundMarshaler, client, req, pathParams)
  3694  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3695  		if err != nil {
  3696  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3697  			return
  3698  		}
  3699  
  3700  		forward_Lightning_WalletBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3701  
  3702  	})
  3703  
  3704  	mux.Handle("GET", pattern_Lightning_ChannelBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3705  		ctx, cancel := context.WithCancel(req.Context())
  3706  		defer cancel()
  3707  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3708  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ChannelBalance", runtime.WithHTTPPathPattern("/v1/balance/channels"))
  3709  		if err != nil {
  3710  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3711  			return
  3712  		}
  3713  		resp, md, err := request_Lightning_ChannelBalance_0(rctx, inboundMarshaler, client, req, pathParams)
  3714  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3715  		if err != nil {
  3716  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3717  			return
  3718  		}
  3719  
  3720  		forward_Lightning_ChannelBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3721  
  3722  	})
  3723  
  3724  	mux.Handle("GET", pattern_Lightning_GetTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3725  		ctx, cancel := context.WithCancel(req.Context())
  3726  		defer cancel()
  3727  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3728  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetTransactions", runtime.WithHTTPPathPattern("/v1/transactions"))
  3729  		if err != nil {
  3730  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3731  			return
  3732  		}
  3733  		resp, md, err := request_Lightning_GetTransactions_0(rctx, inboundMarshaler, client, req, pathParams)
  3734  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3735  		if err != nil {
  3736  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3737  			return
  3738  		}
  3739  
  3740  		forward_Lightning_GetTransactions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3741  
  3742  	})
  3743  
  3744  	mux.Handle("GET", pattern_Lightning_EstimateFee_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3745  		ctx, cancel := context.WithCancel(req.Context())
  3746  		defer cancel()
  3747  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3748  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/EstimateFee", runtime.WithHTTPPathPattern("/v1/transactions/fee"))
  3749  		if err != nil {
  3750  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3751  			return
  3752  		}
  3753  		resp, md, err := request_Lightning_EstimateFee_0(rctx, inboundMarshaler, client, req, pathParams)
  3754  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3755  		if err != nil {
  3756  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3757  			return
  3758  		}
  3759  
  3760  		forward_Lightning_EstimateFee_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3761  
  3762  	})
  3763  
  3764  	mux.Handle("POST", pattern_Lightning_SendCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3765  		ctx, cancel := context.WithCancel(req.Context())
  3766  		defer cancel()
  3767  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3768  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendCoins", runtime.WithHTTPPathPattern("/v1/transactions"))
  3769  		if err != nil {
  3770  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3771  			return
  3772  		}
  3773  		resp, md, err := request_Lightning_SendCoins_0(rctx, inboundMarshaler, client, req, pathParams)
  3774  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3775  		if err != nil {
  3776  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3777  			return
  3778  		}
  3779  
  3780  		forward_Lightning_SendCoins_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3781  
  3782  	})
  3783  
  3784  	mux.Handle("GET", pattern_Lightning_ListUnspent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3785  		ctx, cancel := context.WithCancel(req.Context())
  3786  		defer cancel()
  3787  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3788  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListUnspent", runtime.WithHTTPPathPattern("/v1/utxos"))
  3789  		if err != nil {
  3790  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3791  			return
  3792  		}
  3793  		resp, md, err := request_Lightning_ListUnspent_0(rctx, inboundMarshaler, client, req, pathParams)
  3794  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3795  		if err != nil {
  3796  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3797  			return
  3798  		}
  3799  
  3800  		forward_Lightning_ListUnspent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3801  
  3802  	})
  3803  
  3804  	mux.Handle("GET", pattern_Lightning_SubscribeTransactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3805  		ctx, cancel := context.WithCancel(req.Context())
  3806  		defer cancel()
  3807  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3808  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribeTransactions", runtime.WithHTTPPathPattern("/v1/transactions/subscribe"))
  3809  		if err != nil {
  3810  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3811  			return
  3812  		}
  3813  		resp, md, err := request_Lightning_SubscribeTransactions_0(rctx, inboundMarshaler, client, req, pathParams)
  3814  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3815  		if err != nil {
  3816  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3817  			return
  3818  		}
  3819  
  3820  		forward_Lightning_SubscribeTransactions_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  3821  
  3822  	})
  3823  
  3824  	mux.Handle("POST", pattern_Lightning_SendMany_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3825  		ctx, cancel := context.WithCancel(req.Context())
  3826  		defer cancel()
  3827  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3828  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendMany", runtime.WithHTTPPathPattern("/v1/transactions/many"))
  3829  		if err != nil {
  3830  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3831  			return
  3832  		}
  3833  		resp, md, err := request_Lightning_SendMany_0(rctx, inboundMarshaler, client, req, pathParams)
  3834  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3835  		if err != nil {
  3836  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3837  			return
  3838  		}
  3839  
  3840  		forward_Lightning_SendMany_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3841  
  3842  	})
  3843  
  3844  	mux.Handle("GET", pattern_Lightning_NewAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3845  		ctx, cancel := context.WithCancel(req.Context())
  3846  		defer cancel()
  3847  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3848  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/NewAddress", runtime.WithHTTPPathPattern("/v1/newaddress"))
  3849  		if err != nil {
  3850  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3851  			return
  3852  		}
  3853  		resp, md, err := request_Lightning_NewAddress_0(rctx, inboundMarshaler, client, req, pathParams)
  3854  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3855  		if err != nil {
  3856  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3857  			return
  3858  		}
  3859  
  3860  		forward_Lightning_NewAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3861  
  3862  	})
  3863  
  3864  	mux.Handle("POST", pattern_Lightning_SignMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3865  		ctx, cancel := context.WithCancel(req.Context())
  3866  		defer cancel()
  3867  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3868  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SignMessage", runtime.WithHTTPPathPattern("/v1/signmessage"))
  3869  		if err != nil {
  3870  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3871  			return
  3872  		}
  3873  		resp, md, err := request_Lightning_SignMessage_0(rctx, inboundMarshaler, client, req, pathParams)
  3874  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3875  		if err != nil {
  3876  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3877  			return
  3878  		}
  3879  
  3880  		forward_Lightning_SignMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3881  
  3882  	})
  3883  
  3884  	mux.Handle("POST", pattern_Lightning_VerifyMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3885  		ctx, cancel := context.WithCancel(req.Context())
  3886  		defer cancel()
  3887  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3888  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/VerifyMessage", runtime.WithHTTPPathPattern("/v1/verifymessage"))
  3889  		if err != nil {
  3890  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3891  			return
  3892  		}
  3893  		resp, md, err := request_Lightning_VerifyMessage_0(rctx, inboundMarshaler, client, req, pathParams)
  3894  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3895  		if err != nil {
  3896  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3897  			return
  3898  		}
  3899  
  3900  		forward_Lightning_VerifyMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3901  
  3902  	})
  3903  
  3904  	mux.Handle("POST", pattern_Lightning_ConnectPeer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3905  		ctx, cancel := context.WithCancel(req.Context())
  3906  		defer cancel()
  3907  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3908  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ConnectPeer", runtime.WithHTTPPathPattern("/v1/peers"))
  3909  		if err != nil {
  3910  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3911  			return
  3912  		}
  3913  		resp, md, err := request_Lightning_ConnectPeer_0(rctx, inboundMarshaler, client, req, pathParams)
  3914  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3915  		if err != nil {
  3916  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3917  			return
  3918  		}
  3919  
  3920  		forward_Lightning_ConnectPeer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3921  
  3922  	})
  3923  
  3924  	mux.Handle("DELETE", pattern_Lightning_DisconnectPeer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3925  		ctx, cancel := context.WithCancel(req.Context())
  3926  		defer cancel()
  3927  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3928  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DisconnectPeer", runtime.WithHTTPPathPattern("/v1/peers/{pub_key}"))
  3929  		if err != nil {
  3930  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3931  			return
  3932  		}
  3933  		resp, md, err := request_Lightning_DisconnectPeer_0(rctx, inboundMarshaler, client, req, pathParams)
  3934  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3935  		if err != nil {
  3936  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3937  			return
  3938  		}
  3939  
  3940  		forward_Lightning_DisconnectPeer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3941  
  3942  	})
  3943  
  3944  	mux.Handle("GET", pattern_Lightning_ListPeers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3945  		ctx, cancel := context.WithCancel(req.Context())
  3946  		defer cancel()
  3947  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3948  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListPeers", runtime.WithHTTPPathPattern("/v1/peers"))
  3949  		if err != nil {
  3950  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3951  			return
  3952  		}
  3953  		resp, md, err := request_Lightning_ListPeers_0(rctx, inboundMarshaler, client, req, pathParams)
  3954  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3955  		if err != nil {
  3956  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3957  			return
  3958  		}
  3959  
  3960  		forward_Lightning_ListPeers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  3961  
  3962  	})
  3963  
  3964  	mux.Handle("GET", pattern_Lightning_SubscribePeerEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3965  		ctx, cancel := context.WithCancel(req.Context())
  3966  		defer cancel()
  3967  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3968  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribePeerEvents", runtime.WithHTTPPathPattern("/v1/peers/subscribe"))
  3969  		if err != nil {
  3970  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3971  			return
  3972  		}
  3973  		resp, md, err := request_Lightning_SubscribePeerEvents_0(rctx, inboundMarshaler, client, req, pathParams)
  3974  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3975  		if err != nil {
  3976  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3977  			return
  3978  		}
  3979  
  3980  		forward_Lightning_SubscribePeerEvents_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  3981  
  3982  	})
  3983  
  3984  	mux.Handle("GET", pattern_Lightning_GetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  3985  		ctx, cancel := context.WithCancel(req.Context())
  3986  		defer cancel()
  3987  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  3988  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetInfo", runtime.WithHTTPPathPattern("/v1/getinfo"))
  3989  		if err != nil {
  3990  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3991  			return
  3992  		}
  3993  		resp, md, err := request_Lightning_GetInfo_0(rctx, inboundMarshaler, client, req, pathParams)
  3994  		ctx = runtime.NewServerMetadataContext(ctx, md)
  3995  		if err != nil {
  3996  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  3997  			return
  3998  		}
  3999  
  4000  		forward_Lightning_GetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4001  
  4002  	})
  4003  
  4004  	mux.Handle("GET", pattern_Lightning_GetRecoveryInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4005  		ctx, cancel := context.WithCancel(req.Context())
  4006  		defer cancel()
  4007  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4008  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetRecoveryInfo", runtime.WithHTTPPathPattern("/v1/getrecoveryinfo"))
  4009  		if err != nil {
  4010  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4011  			return
  4012  		}
  4013  		resp, md, err := request_Lightning_GetRecoveryInfo_0(rctx, inboundMarshaler, client, req, pathParams)
  4014  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4015  		if err != nil {
  4016  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4017  			return
  4018  		}
  4019  
  4020  		forward_Lightning_GetRecoveryInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4021  
  4022  	})
  4023  
  4024  	mux.Handle("GET", pattern_Lightning_PendingChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4025  		ctx, cancel := context.WithCancel(req.Context())
  4026  		defer cancel()
  4027  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4028  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/PendingChannels", runtime.WithHTTPPathPattern("/v1/channels/pending"))
  4029  		if err != nil {
  4030  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4031  			return
  4032  		}
  4033  		resp, md, err := request_Lightning_PendingChannels_0(rctx, inboundMarshaler, client, req, pathParams)
  4034  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4035  		if err != nil {
  4036  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4037  			return
  4038  		}
  4039  
  4040  		forward_Lightning_PendingChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4041  
  4042  	})
  4043  
  4044  	mux.Handle("GET", pattern_Lightning_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4045  		ctx, cancel := context.WithCancel(req.Context())
  4046  		defer cancel()
  4047  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4048  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListChannels", runtime.WithHTTPPathPattern("/v1/channels"))
  4049  		if err != nil {
  4050  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4051  			return
  4052  		}
  4053  		resp, md, err := request_Lightning_ListChannels_0(rctx, inboundMarshaler, client, req, pathParams)
  4054  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4055  		if err != nil {
  4056  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4057  			return
  4058  		}
  4059  
  4060  		forward_Lightning_ListChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4061  
  4062  	})
  4063  
  4064  	mux.Handle("GET", pattern_Lightning_SubscribeChannelEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4065  		ctx, cancel := context.WithCancel(req.Context())
  4066  		defer cancel()
  4067  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4068  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribeChannelEvents", runtime.WithHTTPPathPattern("/v1/channels/subscribe"))
  4069  		if err != nil {
  4070  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4071  			return
  4072  		}
  4073  		resp, md, err := request_Lightning_SubscribeChannelEvents_0(rctx, inboundMarshaler, client, req, pathParams)
  4074  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4075  		if err != nil {
  4076  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4077  			return
  4078  		}
  4079  
  4080  		forward_Lightning_SubscribeChannelEvents_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4081  
  4082  	})
  4083  
  4084  	mux.Handle("GET", pattern_Lightning_ClosedChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4085  		ctx, cancel := context.WithCancel(req.Context())
  4086  		defer cancel()
  4087  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4088  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ClosedChannels", runtime.WithHTTPPathPattern("/v1/channels/closed"))
  4089  		if err != nil {
  4090  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4091  			return
  4092  		}
  4093  		resp, md, err := request_Lightning_ClosedChannels_0(rctx, inboundMarshaler, client, req, pathParams)
  4094  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4095  		if err != nil {
  4096  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4097  			return
  4098  		}
  4099  
  4100  		forward_Lightning_ClosedChannels_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4101  
  4102  	})
  4103  
  4104  	mux.Handle("POST", pattern_Lightning_OpenChannelSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4105  		ctx, cancel := context.WithCancel(req.Context())
  4106  		defer cancel()
  4107  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4108  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/OpenChannelSync", runtime.WithHTTPPathPattern("/v1/channels"))
  4109  		if err != nil {
  4110  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4111  			return
  4112  		}
  4113  		resp, md, err := request_Lightning_OpenChannelSync_0(rctx, inboundMarshaler, client, req, pathParams)
  4114  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4115  		if err != nil {
  4116  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4117  			return
  4118  		}
  4119  
  4120  		forward_Lightning_OpenChannelSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4121  
  4122  	})
  4123  
  4124  	mux.Handle("POST", pattern_Lightning_OpenChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4125  		ctx, cancel := context.WithCancel(req.Context())
  4126  		defer cancel()
  4127  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4128  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/OpenChannel", runtime.WithHTTPPathPattern("/v1/channels/stream"))
  4129  		if err != nil {
  4130  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4131  			return
  4132  		}
  4133  		resp, md, err := request_Lightning_OpenChannel_0(rctx, inboundMarshaler, client, req, pathParams)
  4134  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4135  		if err != nil {
  4136  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4137  			return
  4138  		}
  4139  
  4140  		forward_Lightning_OpenChannel_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4141  
  4142  	})
  4143  
  4144  	mux.Handle("POST", pattern_Lightning_BatchOpenChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4145  		ctx, cancel := context.WithCancel(req.Context())
  4146  		defer cancel()
  4147  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4148  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/BatchOpenChannel", runtime.WithHTTPPathPattern("/v1/channels/batch"))
  4149  		if err != nil {
  4150  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4151  			return
  4152  		}
  4153  		resp, md, err := request_Lightning_BatchOpenChannel_0(rctx, inboundMarshaler, client, req, pathParams)
  4154  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4155  		if err != nil {
  4156  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4157  			return
  4158  		}
  4159  
  4160  		forward_Lightning_BatchOpenChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4161  
  4162  	})
  4163  
  4164  	mux.Handle("POST", pattern_Lightning_FundingStateStep_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4165  		ctx, cancel := context.WithCancel(req.Context())
  4166  		defer cancel()
  4167  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4168  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/FundingStateStep", runtime.WithHTTPPathPattern("/v1/funding/step"))
  4169  		if err != nil {
  4170  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4171  			return
  4172  		}
  4173  		resp, md, err := request_Lightning_FundingStateStep_0(rctx, inboundMarshaler, client, req, pathParams)
  4174  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4175  		if err != nil {
  4176  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4177  			return
  4178  		}
  4179  
  4180  		forward_Lightning_FundingStateStep_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4181  
  4182  	})
  4183  
  4184  	mux.Handle("POST", pattern_Lightning_ChannelAcceptor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4185  		ctx, cancel := context.WithCancel(req.Context())
  4186  		defer cancel()
  4187  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4188  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ChannelAcceptor", runtime.WithHTTPPathPattern("/v1/channels/acceptor"))
  4189  		if err != nil {
  4190  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4191  			return
  4192  		}
  4193  		resp, md, err := request_Lightning_ChannelAcceptor_0(rctx, inboundMarshaler, client, req, pathParams)
  4194  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4195  		if err != nil {
  4196  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4197  			return
  4198  		}
  4199  
  4200  		forward_Lightning_ChannelAcceptor_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4201  
  4202  	})
  4203  
  4204  	mux.Handle("DELETE", pattern_Lightning_CloseChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4205  		ctx, cancel := context.WithCancel(req.Context())
  4206  		defer cancel()
  4207  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4208  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/CloseChannel", runtime.WithHTTPPathPattern("/v1/channels/{channel_point.funding_txid_str}/{channel_point.output_index}"))
  4209  		if err != nil {
  4210  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4211  			return
  4212  		}
  4213  		resp, md, err := request_Lightning_CloseChannel_0(rctx, inboundMarshaler, client, req, pathParams)
  4214  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4215  		if err != nil {
  4216  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4217  			return
  4218  		}
  4219  
  4220  		forward_Lightning_CloseChannel_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4221  
  4222  	})
  4223  
  4224  	mux.Handle("DELETE", pattern_Lightning_AbandonChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4225  		ctx, cancel := context.WithCancel(req.Context())
  4226  		defer cancel()
  4227  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4228  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/AbandonChannel", runtime.WithHTTPPathPattern("/v1/channels/abandon/{channel_point.funding_txid_str}/{channel_point.output_index}"))
  4229  		if err != nil {
  4230  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4231  			return
  4232  		}
  4233  		resp, md, err := request_Lightning_AbandonChannel_0(rctx, inboundMarshaler, client, req, pathParams)
  4234  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4235  		if err != nil {
  4236  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4237  			return
  4238  		}
  4239  
  4240  		forward_Lightning_AbandonChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4241  
  4242  	})
  4243  
  4244  	mux.Handle("POST", pattern_Lightning_SendPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4245  		ctx, cancel := context.WithCancel(req.Context())
  4246  		defer cancel()
  4247  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4248  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendPayment", runtime.WithHTTPPathPattern("/v1/channels/transaction-stream"))
  4249  		if err != nil {
  4250  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4251  			return
  4252  		}
  4253  		resp, md, err := request_Lightning_SendPayment_0(rctx, inboundMarshaler, client, req, pathParams)
  4254  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4255  		if err != nil {
  4256  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4257  			return
  4258  		}
  4259  
  4260  		forward_Lightning_SendPayment_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4261  
  4262  	})
  4263  
  4264  	mux.Handle("POST", pattern_Lightning_SendPaymentSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4265  		ctx, cancel := context.WithCancel(req.Context())
  4266  		defer cancel()
  4267  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4268  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendPaymentSync", runtime.WithHTTPPathPattern("/v1/channels/transactions"))
  4269  		if err != nil {
  4270  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4271  			return
  4272  		}
  4273  		resp, md, err := request_Lightning_SendPaymentSync_0(rctx, inboundMarshaler, client, req, pathParams)
  4274  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4275  		if err != nil {
  4276  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4277  			return
  4278  		}
  4279  
  4280  		forward_Lightning_SendPaymentSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4281  
  4282  	})
  4283  
  4284  	mux.Handle("POST", pattern_Lightning_SendToRouteSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4285  		ctx, cancel := context.WithCancel(req.Context())
  4286  		defer cancel()
  4287  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4288  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendToRouteSync", runtime.WithHTTPPathPattern("/v1/channels/transactions/route"))
  4289  		if err != nil {
  4290  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4291  			return
  4292  		}
  4293  		resp, md, err := request_Lightning_SendToRouteSync_0(rctx, inboundMarshaler, client, req, pathParams)
  4294  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4295  		if err != nil {
  4296  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4297  			return
  4298  		}
  4299  
  4300  		forward_Lightning_SendToRouteSync_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4301  
  4302  	})
  4303  
  4304  	mux.Handle("POST", pattern_Lightning_AddInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4305  		ctx, cancel := context.WithCancel(req.Context())
  4306  		defer cancel()
  4307  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4308  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/AddInvoice", runtime.WithHTTPPathPattern("/v1/invoices"))
  4309  		if err != nil {
  4310  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4311  			return
  4312  		}
  4313  		resp, md, err := request_Lightning_AddInvoice_0(rctx, inboundMarshaler, client, req, pathParams)
  4314  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4315  		if err != nil {
  4316  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4317  			return
  4318  		}
  4319  
  4320  		forward_Lightning_AddInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4321  
  4322  	})
  4323  
  4324  	mux.Handle("GET", pattern_Lightning_ListInvoices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4325  		ctx, cancel := context.WithCancel(req.Context())
  4326  		defer cancel()
  4327  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4328  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListInvoices", runtime.WithHTTPPathPattern("/v1/invoices"))
  4329  		if err != nil {
  4330  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4331  			return
  4332  		}
  4333  		resp, md, err := request_Lightning_ListInvoices_0(rctx, inboundMarshaler, client, req, pathParams)
  4334  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4335  		if err != nil {
  4336  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4337  			return
  4338  		}
  4339  
  4340  		forward_Lightning_ListInvoices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4341  
  4342  	})
  4343  
  4344  	mux.Handle("GET", pattern_Lightning_LookupInvoice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4345  		ctx, cancel := context.WithCancel(req.Context())
  4346  		defer cancel()
  4347  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4348  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/LookupInvoice", runtime.WithHTTPPathPattern("/v1/invoice/{r_hash_str}"))
  4349  		if err != nil {
  4350  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4351  			return
  4352  		}
  4353  		resp, md, err := request_Lightning_LookupInvoice_0(rctx, inboundMarshaler, client, req, pathParams)
  4354  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4355  		if err != nil {
  4356  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4357  			return
  4358  		}
  4359  
  4360  		forward_Lightning_LookupInvoice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4361  
  4362  	})
  4363  
  4364  	mux.Handle("GET", pattern_Lightning_SubscribeInvoices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4365  		ctx, cancel := context.WithCancel(req.Context())
  4366  		defer cancel()
  4367  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4368  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribeInvoices", runtime.WithHTTPPathPattern("/v1/invoices/subscribe"))
  4369  		if err != nil {
  4370  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4371  			return
  4372  		}
  4373  		resp, md, err := request_Lightning_SubscribeInvoices_0(rctx, inboundMarshaler, client, req, pathParams)
  4374  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4375  		if err != nil {
  4376  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4377  			return
  4378  		}
  4379  
  4380  		forward_Lightning_SubscribeInvoices_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4381  
  4382  	})
  4383  
  4384  	mux.Handle("GET", pattern_Lightning_DecodePayReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4385  		ctx, cancel := context.WithCancel(req.Context())
  4386  		defer cancel()
  4387  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4388  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DecodePayReq", runtime.WithHTTPPathPattern("/v1/payreq/{pay_req}"))
  4389  		if err != nil {
  4390  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4391  			return
  4392  		}
  4393  		resp, md, err := request_Lightning_DecodePayReq_0(rctx, inboundMarshaler, client, req, pathParams)
  4394  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4395  		if err != nil {
  4396  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4397  			return
  4398  		}
  4399  
  4400  		forward_Lightning_DecodePayReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4401  
  4402  	})
  4403  
  4404  	mux.Handle("GET", pattern_Lightning_ListPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4405  		ctx, cancel := context.WithCancel(req.Context())
  4406  		defer cancel()
  4407  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4408  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListPayments", runtime.WithHTTPPathPattern("/v1/payments"))
  4409  		if err != nil {
  4410  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4411  			return
  4412  		}
  4413  		resp, md, err := request_Lightning_ListPayments_0(rctx, inboundMarshaler, client, req, pathParams)
  4414  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4415  		if err != nil {
  4416  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4417  			return
  4418  		}
  4419  
  4420  		forward_Lightning_ListPayments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4421  
  4422  	})
  4423  
  4424  	mux.Handle("DELETE", pattern_Lightning_DeletePayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4425  		ctx, cancel := context.WithCancel(req.Context())
  4426  		defer cancel()
  4427  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4428  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DeletePayment", runtime.WithHTTPPathPattern("/v1/payment"))
  4429  		if err != nil {
  4430  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4431  			return
  4432  		}
  4433  		resp, md, err := request_Lightning_DeletePayment_0(rctx, inboundMarshaler, client, req, pathParams)
  4434  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4435  		if err != nil {
  4436  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4437  			return
  4438  		}
  4439  
  4440  		forward_Lightning_DeletePayment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4441  
  4442  	})
  4443  
  4444  	mux.Handle("DELETE", pattern_Lightning_DeleteAllPayments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4445  		ctx, cancel := context.WithCancel(req.Context())
  4446  		defer cancel()
  4447  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4448  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DeleteAllPayments", runtime.WithHTTPPathPattern("/v1/payments"))
  4449  		if err != nil {
  4450  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4451  			return
  4452  		}
  4453  		resp, md, err := request_Lightning_DeleteAllPayments_0(rctx, inboundMarshaler, client, req, pathParams)
  4454  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4455  		if err != nil {
  4456  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4457  			return
  4458  		}
  4459  
  4460  		forward_Lightning_DeleteAllPayments_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4461  
  4462  	})
  4463  
  4464  	mux.Handle("GET", pattern_Lightning_DescribeGraph_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4465  		ctx, cancel := context.WithCancel(req.Context())
  4466  		defer cancel()
  4467  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4468  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DescribeGraph", runtime.WithHTTPPathPattern("/v1/graph"))
  4469  		if err != nil {
  4470  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4471  			return
  4472  		}
  4473  		resp, md, err := request_Lightning_DescribeGraph_0(rctx, inboundMarshaler, client, req, pathParams)
  4474  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4475  		if err != nil {
  4476  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4477  			return
  4478  		}
  4479  
  4480  		forward_Lightning_DescribeGraph_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4481  
  4482  	})
  4483  
  4484  	mux.Handle("GET", pattern_Lightning_GetNodeMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4485  		ctx, cancel := context.WithCancel(req.Context())
  4486  		defer cancel()
  4487  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4488  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetNodeMetrics", runtime.WithHTTPPathPattern("/v1/graph/nodemetrics"))
  4489  		if err != nil {
  4490  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4491  			return
  4492  		}
  4493  		resp, md, err := request_Lightning_GetNodeMetrics_0(rctx, inboundMarshaler, client, req, pathParams)
  4494  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4495  		if err != nil {
  4496  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4497  			return
  4498  		}
  4499  
  4500  		forward_Lightning_GetNodeMetrics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4501  
  4502  	})
  4503  
  4504  	mux.Handle("GET", pattern_Lightning_GetChanInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4505  		ctx, cancel := context.WithCancel(req.Context())
  4506  		defer cancel()
  4507  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4508  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetChanInfo", runtime.WithHTTPPathPattern("/v1/graph/edge/{chan_id}"))
  4509  		if err != nil {
  4510  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4511  			return
  4512  		}
  4513  		resp, md, err := request_Lightning_GetChanInfo_0(rctx, inboundMarshaler, client, req, pathParams)
  4514  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4515  		if err != nil {
  4516  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4517  			return
  4518  		}
  4519  
  4520  		forward_Lightning_GetChanInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4521  
  4522  	})
  4523  
  4524  	mux.Handle("GET", pattern_Lightning_GetNodeInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4525  		ctx, cancel := context.WithCancel(req.Context())
  4526  		defer cancel()
  4527  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4528  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetNodeInfo", runtime.WithHTTPPathPattern("/v1/graph/node/{pub_key}"))
  4529  		if err != nil {
  4530  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4531  			return
  4532  		}
  4533  		resp, md, err := request_Lightning_GetNodeInfo_0(rctx, inboundMarshaler, client, req, pathParams)
  4534  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4535  		if err != nil {
  4536  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4537  			return
  4538  		}
  4539  
  4540  		forward_Lightning_GetNodeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4541  
  4542  	})
  4543  
  4544  	mux.Handle("GET", pattern_Lightning_QueryRoutes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4545  		ctx, cancel := context.WithCancel(req.Context())
  4546  		defer cancel()
  4547  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4548  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/QueryRoutes", runtime.WithHTTPPathPattern("/v1/graph/routes/{pub_key}/{amt}"))
  4549  		if err != nil {
  4550  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4551  			return
  4552  		}
  4553  		resp, md, err := request_Lightning_QueryRoutes_0(rctx, inboundMarshaler, client, req, pathParams)
  4554  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4555  		if err != nil {
  4556  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4557  			return
  4558  		}
  4559  
  4560  		forward_Lightning_QueryRoutes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4561  
  4562  	})
  4563  
  4564  	mux.Handle("GET", pattern_Lightning_GetNetworkInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4565  		ctx, cancel := context.WithCancel(req.Context())
  4566  		defer cancel()
  4567  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4568  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/GetNetworkInfo", runtime.WithHTTPPathPattern("/v1/graph/info"))
  4569  		if err != nil {
  4570  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4571  			return
  4572  		}
  4573  		resp, md, err := request_Lightning_GetNetworkInfo_0(rctx, inboundMarshaler, client, req, pathParams)
  4574  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4575  		if err != nil {
  4576  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4577  			return
  4578  		}
  4579  
  4580  		forward_Lightning_GetNetworkInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4581  
  4582  	})
  4583  
  4584  	mux.Handle("POST", pattern_Lightning_StopDaemon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4585  		ctx, cancel := context.WithCancel(req.Context())
  4586  		defer cancel()
  4587  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4588  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/StopDaemon", runtime.WithHTTPPathPattern("/v1/stop"))
  4589  		if err != nil {
  4590  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4591  			return
  4592  		}
  4593  		resp, md, err := request_Lightning_StopDaemon_0(rctx, inboundMarshaler, client, req, pathParams)
  4594  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4595  		if err != nil {
  4596  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4597  			return
  4598  		}
  4599  
  4600  		forward_Lightning_StopDaemon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4601  
  4602  	})
  4603  
  4604  	mux.Handle("GET", pattern_Lightning_SubscribeChannelGraph_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4605  		ctx, cancel := context.WithCancel(req.Context())
  4606  		defer cancel()
  4607  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4608  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribeChannelGraph", runtime.WithHTTPPathPattern("/v1/graph/subscribe"))
  4609  		if err != nil {
  4610  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4611  			return
  4612  		}
  4613  		resp, md, err := request_Lightning_SubscribeChannelGraph_0(rctx, inboundMarshaler, client, req, pathParams)
  4614  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4615  		if err != nil {
  4616  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4617  			return
  4618  		}
  4619  
  4620  		forward_Lightning_SubscribeChannelGraph_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4621  
  4622  	})
  4623  
  4624  	mux.Handle("POST", pattern_Lightning_DebugLevel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4625  		ctx, cancel := context.WithCancel(req.Context())
  4626  		defer cancel()
  4627  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4628  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DebugLevel", runtime.WithHTTPPathPattern("/v1/debuglevel"))
  4629  		if err != nil {
  4630  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4631  			return
  4632  		}
  4633  		resp, md, err := request_Lightning_DebugLevel_0(rctx, inboundMarshaler, client, req, pathParams)
  4634  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4635  		if err != nil {
  4636  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4637  			return
  4638  		}
  4639  
  4640  		forward_Lightning_DebugLevel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4641  
  4642  	})
  4643  
  4644  	mux.Handle("GET", pattern_Lightning_FeeReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4645  		ctx, cancel := context.WithCancel(req.Context())
  4646  		defer cancel()
  4647  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4648  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/FeeReport", runtime.WithHTTPPathPattern("/v1/fees"))
  4649  		if err != nil {
  4650  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4651  			return
  4652  		}
  4653  		resp, md, err := request_Lightning_FeeReport_0(rctx, inboundMarshaler, client, req, pathParams)
  4654  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4655  		if err != nil {
  4656  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4657  			return
  4658  		}
  4659  
  4660  		forward_Lightning_FeeReport_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4661  
  4662  	})
  4663  
  4664  	mux.Handle("POST", pattern_Lightning_UpdateChannelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4665  		ctx, cancel := context.WithCancel(req.Context())
  4666  		defer cancel()
  4667  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4668  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/UpdateChannelPolicy", runtime.WithHTTPPathPattern("/v1/chanpolicy"))
  4669  		if err != nil {
  4670  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4671  			return
  4672  		}
  4673  		resp, md, err := request_Lightning_UpdateChannelPolicy_0(rctx, inboundMarshaler, client, req, pathParams)
  4674  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4675  		if err != nil {
  4676  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4677  			return
  4678  		}
  4679  
  4680  		forward_Lightning_UpdateChannelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4681  
  4682  	})
  4683  
  4684  	mux.Handle("POST", pattern_Lightning_ForwardingHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4685  		ctx, cancel := context.WithCancel(req.Context())
  4686  		defer cancel()
  4687  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4688  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ForwardingHistory", runtime.WithHTTPPathPattern("/v1/switch"))
  4689  		if err != nil {
  4690  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4691  			return
  4692  		}
  4693  		resp, md, err := request_Lightning_ForwardingHistory_0(rctx, inboundMarshaler, client, req, pathParams)
  4694  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4695  		if err != nil {
  4696  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4697  			return
  4698  		}
  4699  
  4700  		forward_Lightning_ForwardingHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4701  
  4702  	})
  4703  
  4704  	mux.Handle("GET", pattern_Lightning_ExportChannelBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4705  		ctx, cancel := context.WithCancel(req.Context())
  4706  		defer cancel()
  4707  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4708  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ExportChannelBackup", runtime.WithHTTPPathPattern("/v1/channels/backup/{chan_point.funding_txid_str}/{chan_point.output_index}"))
  4709  		if err != nil {
  4710  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4711  			return
  4712  		}
  4713  		resp, md, err := request_Lightning_ExportChannelBackup_0(rctx, inboundMarshaler, client, req, pathParams)
  4714  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4715  		if err != nil {
  4716  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4717  			return
  4718  		}
  4719  
  4720  		forward_Lightning_ExportChannelBackup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4721  
  4722  	})
  4723  
  4724  	mux.Handle("GET", pattern_Lightning_ExportAllChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4725  		ctx, cancel := context.WithCancel(req.Context())
  4726  		defer cancel()
  4727  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4728  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ExportAllChannelBackups", runtime.WithHTTPPathPattern("/v1/channels/backup"))
  4729  		if err != nil {
  4730  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4731  			return
  4732  		}
  4733  		resp, md, err := request_Lightning_ExportAllChannelBackups_0(rctx, inboundMarshaler, client, req, pathParams)
  4734  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4735  		if err != nil {
  4736  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4737  			return
  4738  		}
  4739  
  4740  		forward_Lightning_ExportAllChannelBackups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4741  
  4742  	})
  4743  
  4744  	mux.Handle("POST", pattern_Lightning_VerifyChanBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4745  		ctx, cancel := context.WithCancel(req.Context())
  4746  		defer cancel()
  4747  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4748  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/VerifyChanBackup", runtime.WithHTTPPathPattern("/v1/channels/backup/verify"))
  4749  		if err != nil {
  4750  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4751  			return
  4752  		}
  4753  		resp, md, err := request_Lightning_VerifyChanBackup_0(rctx, inboundMarshaler, client, req, pathParams)
  4754  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4755  		if err != nil {
  4756  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4757  			return
  4758  		}
  4759  
  4760  		forward_Lightning_VerifyChanBackup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4761  
  4762  	})
  4763  
  4764  	mux.Handle("POST", pattern_Lightning_RestoreChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4765  		ctx, cancel := context.WithCancel(req.Context())
  4766  		defer cancel()
  4767  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4768  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/RestoreChannelBackups", runtime.WithHTTPPathPattern("/v1/channels/backup/restore"))
  4769  		if err != nil {
  4770  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4771  			return
  4772  		}
  4773  		resp, md, err := request_Lightning_RestoreChannelBackups_0(rctx, inboundMarshaler, client, req, pathParams)
  4774  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4775  		if err != nil {
  4776  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4777  			return
  4778  		}
  4779  
  4780  		forward_Lightning_RestoreChannelBackups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4781  
  4782  	})
  4783  
  4784  	mux.Handle("GET", pattern_Lightning_SubscribeChannelBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4785  		ctx, cancel := context.WithCancel(req.Context())
  4786  		defer cancel()
  4787  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4788  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribeChannelBackups", runtime.WithHTTPPathPattern("/v1/channels/backup/subscribe"))
  4789  		if err != nil {
  4790  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4791  			return
  4792  		}
  4793  		resp, md, err := request_Lightning_SubscribeChannelBackups_0(rctx, inboundMarshaler, client, req, pathParams)
  4794  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4795  		if err != nil {
  4796  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4797  			return
  4798  		}
  4799  
  4800  		forward_Lightning_SubscribeChannelBackups_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4801  
  4802  	})
  4803  
  4804  	mux.Handle("POST", pattern_Lightning_BakeMacaroon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4805  		ctx, cancel := context.WithCancel(req.Context())
  4806  		defer cancel()
  4807  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4808  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/BakeMacaroon", runtime.WithHTTPPathPattern("/v1/macaroon"))
  4809  		if err != nil {
  4810  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4811  			return
  4812  		}
  4813  		resp, md, err := request_Lightning_BakeMacaroon_0(rctx, inboundMarshaler, client, req, pathParams)
  4814  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4815  		if err != nil {
  4816  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4817  			return
  4818  		}
  4819  
  4820  		forward_Lightning_BakeMacaroon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4821  
  4822  	})
  4823  
  4824  	mux.Handle("GET", pattern_Lightning_ListMacaroonIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4825  		ctx, cancel := context.WithCancel(req.Context())
  4826  		defer cancel()
  4827  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4828  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListMacaroonIDs", runtime.WithHTTPPathPattern("/v1/macaroon/ids"))
  4829  		if err != nil {
  4830  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4831  			return
  4832  		}
  4833  		resp, md, err := request_Lightning_ListMacaroonIDs_0(rctx, inboundMarshaler, client, req, pathParams)
  4834  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4835  		if err != nil {
  4836  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4837  			return
  4838  		}
  4839  
  4840  		forward_Lightning_ListMacaroonIDs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4841  
  4842  	})
  4843  
  4844  	mux.Handle("DELETE", pattern_Lightning_DeleteMacaroonID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4845  		ctx, cancel := context.WithCancel(req.Context())
  4846  		defer cancel()
  4847  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4848  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/DeleteMacaroonID", runtime.WithHTTPPathPattern("/v1/macaroon/{root_key_id}"))
  4849  		if err != nil {
  4850  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4851  			return
  4852  		}
  4853  		resp, md, err := request_Lightning_DeleteMacaroonID_0(rctx, inboundMarshaler, client, req, pathParams)
  4854  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4855  		if err != nil {
  4856  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4857  			return
  4858  		}
  4859  
  4860  		forward_Lightning_DeleteMacaroonID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4861  
  4862  	})
  4863  
  4864  	mux.Handle("GET", pattern_Lightning_ListPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4865  		ctx, cancel := context.WithCancel(req.Context())
  4866  		defer cancel()
  4867  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4868  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/ListPermissions", runtime.WithHTTPPathPattern("/v1/macaroon/permissions"))
  4869  		if err != nil {
  4870  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4871  			return
  4872  		}
  4873  		resp, md, err := request_Lightning_ListPermissions_0(rctx, inboundMarshaler, client, req, pathParams)
  4874  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4875  		if err != nil {
  4876  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4877  			return
  4878  		}
  4879  
  4880  		forward_Lightning_ListPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4881  
  4882  	})
  4883  
  4884  	mux.Handle("POST", pattern_Lightning_CheckMacaroonPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4885  		ctx, cancel := context.WithCancel(req.Context())
  4886  		defer cancel()
  4887  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4888  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/CheckMacaroonPermissions", runtime.WithHTTPPathPattern("/v1/macaroon/checkpermissions"))
  4889  		if err != nil {
  4890  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4891  			return
  4892  		}
  4893  		resp, md, err := request_Lightning_CheckMacaroonPermissions_0(rctx, inboundMarshaler, client, req, pathParams)
  4894  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4895  		if err != nil {
  4896  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4897  			return
  4898  		}
  4899  
  4900  		forward_Lightning_CheckMacaroonPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4901  
  4902  	})
  4903  
  4904  	mux.Handle("POST", pattern_Lightning_RegisterRPCMiddleware_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4905  		ctx, cancel := context.WithCancel(req.Context())
  4906  		defer cancel()
  4907  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4908  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/RegisterRPCMiddleware", runtime.WithHTTPPathPattern("/v1/middleware"))
  4909  		if err != nil {
  4910  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4911  			return
  4912  		}
  4913  		resp, md, err := request_Lightning_RegisterRPCMiddleware_0(rctx, inboundMarshaler, client, req, pathParams)
  4914  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4915  		if err != nil {
  4916  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4917  			return
  4918  		}
  4919  
  4920  		forward_Lightning_RegisterRPCMiddleware_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4921  
  4922  	})
  4923  
  4924  	mux.Handle("POST", pattern_Lightning_SendCustomMessage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4925  		ctx, cancel := context.WithCancel(req.Context())
  4926  		defer cancel()
  4927  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4928  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SendCustomMessage", runtime.WithHTTPPathPattern("/v1/custommessage"))
  4929  		if err != nil {
  4930  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4931  			return
  4932  		}
  4933  		resp, md, err := request_Lightning_SendCustomMessage_0(rctx, inboundMarshaler, client, req, pathParams)
  4934  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4935  		if err != nil {
  4936  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4937  			return
  4938  		}
  4939  
  4940  		forward_Lightning_SendCustomMessage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  4941  
  4942  	})
  4943  
  4944  	mux.Handle("GET", pattern_Lightning_SubscribeCustomMessages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  4945  		ctx, cancel := context.WithCancel(req.Context())
  4946  		defer cancel()
  4947  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  4948  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/lnrpc.Lightning/SubscribeCustomMessages", runtime.WithHTTPPathPattern("/v1/custommessage/subscribe"))
  4949  		if err != nil {
  4950  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4951  			return
  4952  		}
  4953  		resp, md, err := request_Lightning_SubscribeCustomMessages_0(rctx, inboundMarshaler, client, req, pathParams)
  4954  		ctx = runtime.NewServerMetadataContext(ctx, md)
  4955  		if err != nil {
  4956  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  4957  			return
  4958  		}
  4959  
  4960  		forward_Lightning_SubscribeCustomMessages_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  4961  
  4962  	})
  4963  
  4964  	return nil
  4965  }
  4966  
  4967  var (
  4968  	pattern_Lightning_WalletBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "balance", "blockchain"}, ""))
  4969  
  4970  	pattern_Lightning_ChannelBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "balance", "channels"}, ""))
  4971  
  4972  	pattern_Lightning_GetTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "transactions"}, ""))
  4973  
  4974  	pattern_Lightning_EstimateFee_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "transactions", "fee"}, ""))
  4975  
  4976  	pattern_Lightning_SendCoins_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "transactions"}, ""))
  4977  
  4978  	pattern_Lightning_ListUnspent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "utxos"}, ""))
  4979  
  4980  	pattern_Lightning_SubscribeTransactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "transactions", "subscribe"}, ""))
  4981  
  4982  	pattern_Lightning_SendMany_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "transactions", "many"}, ""))
  4983  
  4984  	pattern_Lightning_NewAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "newaddress"}, ""))
  4985  
  4986  	pattern_Lightning_SignMessage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "signmessage"}, ""))
  4987  
  4988  	pattern_Lightning_VerifyMessage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "verifymessage"}, ""))
  4989  
  4990  	pattern_Lightning_ConnectPeer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "peers"}, ""))
  4991  
  4992  	pattern_Lightning_DisconnectPeer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "peers", "pub_key"}, ""))
  4993  
  4994  	pattern_Lightning_ListPeers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "peers"}, ""))
  4995  
  4996  	pattern_Lightning_SubscribePeerEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "peers", "subscribe"}, ""))
  4997  
  4998  	pattern_Lightning_GetInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "getinfo"}, ""))
  4999  
  5000  	pattern_Lightning_GetRecoveryInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "getrecoveryinfo"}, ""))
  5001  
  5002  	pattern_Lightning_PendingChannels_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "pending"}, ""))
  5003  
  5004  	pattern_Lightning_ListChannels_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "channels"}, ""))
  5005  
  5006  	pattern_Lightning_SubscribeChannelEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "subscribe"}, ""))
  5007  
  5008  	pattern_Lightning_ClosedChannels_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "closed"}, ""))
  5009  
  5010  	pattern_Lightning_OpenChannelSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "channels"}, ""))
  5011  
  5012  	pattern_Lightning_OpenChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "stream"}, ""))
  5013  
  5014  	pattern_Lightning_BatchOpenChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "batch"}, ""))
  5015  
  5016  	pattern_Lightning_FundingStateStep_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "funding", "step"}, ""))
  5017  
  5018  	pattern_Lightning_ChannelAcceptor_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "acceptor"}, ""))
  5019  
  5020  	pattern_Lightning_CloseChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "channels", "channel_point.funding_txid_str", "channel_point.output_index"}, ""))
  5021  
  5022  	pattern_Lightning_AbandonChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "channels", "abandon", "channel_point.funding_txid_str", "channel_point.output_index"}, ""))
  5023  
  5024  	pattern_Lightning_SendPayment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "transaction-stream"}, ""))
  5025  
  5026  	pattern_Lightning_SendPaymentSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "transactions"}, ""))
  5027  
  5028  	pattern_Lightning_SendToRouteSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "transactions", "route"}, ""))
  5029  
  5030  	pattern_Lightning_AddInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "invoices"}, ""))
  5031  
  5032  	pattern_Lightning_ListInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "invoices"}, ""))
  5033  
  5034  	pattern_Lightning_LookupInvoice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "invoice", "r_hash_str"}, ""))
  5035  
  5036  	pattern_Lightning_SubscribeInvoices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "invoices", "subscribe"}, ""))
  5037  
  5038  	pattern_Lightning_DecodePayReq_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "payreq", "pay_req"}, ""))
  5039  
  5040  	pattern_Lightning_ListPayments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payments"}, ""))
  5041  
  5042  	pattern_Lightning_DeletePayment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payment"}, ""))
  5043  
  5044  	pattern_Lightning_DeleteAllPayments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "payments"}, ""))
  5045  
  5046  	pattern_Lightning_DescribeGraph_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "graph"}, ""))
  5047  
  5048  	pattern_Lightning_GetNodeMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "graph", "nodemetrics"}, ""))
  5049  
  5050  	pattern_Lightning_GetChanInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "graph", "edge", "chan_id"}, ""))
  5051  
  5052  	pattern_Lightning_GetNodeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "graph", "node", "pub_key"}, ""))
  5053  
  5054  	pattern_Lightning_QueryRoutes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "graph", "routes", "pub_key", "amt"}, ""))
  5055  
  5056  	pattern_Lightning_GetNetworkInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "graph", "info"}, ""))
  5057  
  5058  	pattern_Lightning_StopDaemon_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "stop"}, ""))
  5059  
  5060  	pattern_Lightning_SubscribeChannelGraph_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "graph", "subscribe"}, ""))
  5061  
  5062  	pattern_Lightning_DebugLevel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "debuglevel"}, ""))
  5063  
  5064  	pattern_Lightning_FeeReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "fees"}, ""))
  5065  
  5066  	pattern_Lightning_UpdateChannelPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "chanpolicy"}, ""))
  5067  
  5068  	pattern_Lightning_ForwardingHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "switch"}, ""))
  5069  
  5070  	pattern_Lightning_ExportChannelBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "channels", "backup", "chan_point.funding_txid_str", "chan_point.output_index"}, ""))
  5071  
  5072  	pattern_Lightning_ExportAllChannelBackups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "channels", "backup"}, ""))
  5073  
  5074  	pattern_Lightning_VerifyChanBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "backup", "verify"}, ""))
  5075  
  5076  	pattern_Lightning_RestoreChannelBackups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "backup", "restore"}, ""))
  5077  
  5078  	pattern_Lightning_SubscribeChannelBackups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "channels", "backup", "subscribe"}, ""))
  5079  
  5080  	pattern_Lightning_BakeMacaroon_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "macaroon"}, ""))
  5081  
  5082  	pattern_Lightning_ListMacaroonIDs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "macaroon", "ids"}, ""))
  5083  
  5084  	pattern_Lightning_DeleteMacaroonID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "macaroon", "root_key_id"}, ""))
  5085  
  5086  	pattern_Lightning_ListPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "macaroon", "permissions"}, ""))
  5087  
  5088  	pattern_Lightning_CheckMacaroonPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "macaroon", "checkpermissions"}, ""))
  5089  
  5090  	pattern_Lightning_RegisterRPCMiddleware_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "middleware"}, ""))
  5091  
  5092  	pattern_Lightning_SendCustomMessage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "custommessage"}, ""))
  5093  
  5094  	pattern_Lightning_SubscribeCustomMessages_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "custommessage", "subscribe"}, ""))
  5095  )
  5096  
  5097  var (
  5098  	forward_Lightning_WalletBalance_0 = runtime.ForwardResponseMessage
  5099  
  5100  	forward_Lightning_ChannelBalance_0 = runtime.ForwardResponseMessage
  5101  
  5102  	forward_Lightning_GetTransactions_0 = runtime.ForwardResponseMessage
  5103  
  5104  	forward_Lightning_EstimateFee_0 = runtime.ForwardResponseMessage
  5105  
  5106  	forward_Lightning_SendCoins_0 = runtime.ForwardResponseMessage
  5107  
  5108  	forward_Lightning_ListUnspent_0 = runtime.ForwardResponseMessage
  5109  
  5110  	forward_Lightning_SubscribeTransactions_0 = runtime.ForwardResponseStream
  5111  
  5112  	forward_Lightning_SendMany_0 = runtime.ForwardResponseMessage
  5113  
  5114  	forward_Lightning_NewAddress_0 = runtime.ForwardResponseMessage
  5115  
  5116  	forward_Lightning_SignMessage_0 = runtime.ForwardResponseMessage
  5117  
  5118  	forward_Lightning_VerifyMessage_0 = runtime.ForwardResponseMessage
  5119  
  5120  	forward_Lightning_ConnectPeer_0 = runtime.ForwardResponseMessage
  5121  
  5122  	forward_Lightning_DisconnectPeer_0 = runtime.ForwardResponseMessage
  5123  
  5124  	forward_Lightning_ListPeers_0 = runtime.ForwardResponseMessage
  5125  
  5126  	forward_Lightning_SubscribePeerEvents_0 = runtime.ForwardResponseStream
  5127  
  5128  	forward_Lightning_GetInfo_0 = runtime.ForwardResponseMessage
  5129  
  5130  	forward_Lightning_GetRecoveryInfo_0 = runtime.ForwardResponseMessage
  5131  
  5132  	forward_Lightning_PendingChannels_0 = runtime.ForwardResponseMessage
  5133  
  5134  	forward_Lightning_ListChannels_0 = runtime.ForwardResponseMessage
  5135  
  5136  	forward_Lightning_SubscribeChannelEvents_0 = runtime.ForwardResponseStream
  5137  
  5138  	forward_Lightning_ClosedChannels_0 = runtime.ForwardResponseMessage
  5139  
  5140  	forward_Lightning_OpenChannelSync_0 = runtime.ForwardResponseMessage
  5141  
  5142  	forward_Lightning_OpenChannel_0 = runtime.ForwardResponseStream
  5143  
  5144  	forward_Lightning_BatchOpenChannel_0 = runtime.ForwardResponseMessage
  5145  
  5146  	forward_Lightning_FundingStateStep_0 = runtime.ForwardResponseMessage
  5147  
  5148  	forward_Lightning_ChannelAcceptor_0 = runtime.ForwardResponseStream
  5149  
  5150  	forward_Lightning_CloseChannel_0 = runtime.ForwardResponseStream
  5151  
  5152  	forward_Lightning_AbandonChannel_0 = runtime.ForwardResponseMessage
  5153  
  5154  	forward_Lightning_SendPayment_0 = runtime.ForwardResponseStream
  5155  
  5156  	forward_Lightning_SendPaymentSync_0 = runtime.ForwardResponseMessage
  5157  
  5158  	forward_Lightning_SendToRouteSync_0 = runtime.ForwardResponseMessage
  5159  
  5160  	forward_Lightning_AddInvoice_0 = runtime.ForwardResponseMessage
  5161  
  5162  	forward_Lightning_ListInvoices_0 = runtime.ForwardResponseMessage
  5163  
  5164  	forward_Lightning_LookupInvoice_0 = runtime.ForwardResponseMessage
  5165  
  5166  	forward_Lightning_SubscribeInvoices_0 = runtime.ForwardResponseStream
  5167  
  5168  	forward_Lightning_DecodePayReq_0 = runtime.ForwardResponseMessage
  5169  
  5170  	forward_Lightning_ListPayments_0 = runtime.ForwardResponseMessage
  5171  
  5172  	forward_Lightning_DeletePayment_0 = runtime.ForwardResponseMessage
  5173  
  5174  	forward_Lightning_DeleteAllPayments_0 = runtime.ForwardResponseMessage
  5175  
  5176  	forward_Lightning_DescribeGraph_0 = runtime.ForwardResponseMessage
  5177  
  5178  	forward_Lightning_GetNodeMetrics_0 = runtime.ForwardResponseMessage
  5179  
  5180  	forward_Lightning_GetChanInfo_0 = runtime.ForwardResponseMessage
  5181  
  5182  	forward_Lightning_GetNodeInfo_0 = runtime.ForwardResponseMessage
  5183  
  5184  	forward_Lightning_QueryRoutes_0 = runtime.ForwardResponseMessage
  5185  
  5186  	forward_Lightning_GetNetworkInfo_0 = runtime.ForwardResponseMessage
  5187  
  5188  	forward_Lightning_StopDaemon_0 = runtime.ForwardResponseMessage
  5189  
  5190  	forward_Lightning_SubscribeChannelGraph_0 = runtime.ForwardResponseStream
  5191  
  5192  	forward_Lightning_DebugLevel_0 = runtime.ForwardResponseMessage
  5193  
  5194  	forward_Lightning_FeeReport_0 = runtime.ForwardResponseMessage
  5195  
  5196  	forward_Lightning_UpdateChannelPolicy_0 = runtime.ForwardResponseMessage
  5197  
  5198  	forward_Lightning_ForwardingHistory_0 = runtime.ForwardResponseMessage
  5199  
  5200  	forward_Lightning_ExportChannelBackup_0 = runtime.ForwardResponseMessage
  5201  
  5202  	forward_Lightning_ExportAllChannelBackups_0 = runtime.ForwardResponseMessage
  5203  
  5204  	forward_Lightning_VerifyChanBackup_0 = runtime.ForwardResponseMessage
  5205  
  5206  	forward_Lightning_RestoreChannelBackups_0 = runtime.ForwardResponseMessage
  5207  
  5208  	forward_Lightning_SubscribeChannelBackups_0 = runtime.ForwardResponseStream
  5209  
  5210  	forward_Lightning_BakeMacaroon_0 = runtime.ForwardResponseMessage
  5211  
  5212  	forward_Lightning_ListMacaroonIDs_0 = runtime.ForwardResponseMessage
  5213  
  5214  	forward_Lightning_DeleteMacaroonID_0 = runtime.ForwardResponseMessage
  5215  
  5216  	forward_Lightning_ListPermissions_0 = runtime.ForwardResponseMessage
  5217  
  5218  	forward_Lightning_CheckMacaroonPermissions_0 = runtime.ForwardResponseMessage
  5219  
  5220  	forward_Lightning_RegisterRPCMiddleware_0 = runtime.ForwardResponseStream
  5221  
  5222  	forward_Lightning_SendCustomMessage_0 = runtime.ForwardResponseMessage
  5223  
  5224  	forward_Lightning_SubscribeCustomMessages_0 = runtime.ForwardResponseStream
  5225  )