pub trait Node: Send + Sync + 'static {
Show 64 methods
// Required methods
fn getinfo<'life0, 'async_trait>(
&'life0 self,
request: Request<GetinfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetinfoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_peers<'life0, 'async_trait>(
&'life0 self,
request: Request<ListpeersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListpeersResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_funds<'life0, 'async_trait>(
&'life0 self,
request: Request<ListfundsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListfundsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn send_pay<'life0, 'async_trait>(
&'life0 self,
request: Request<SendpayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SendpayResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<ListchannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListchannelsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn add_gossip<'life0, 'async_trait>(
&'life0 self,
request: Request<AddgossipRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AddgossipResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn auto_clean_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<AutocleaninvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AutocleaninvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn check_message<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckmessageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CheckmessageResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 self,
request: Request<CloseRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CloseResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn connect_peer<'life0, 'async_trait>(
&'life0 self,
request: Request<ConnectRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConnectResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn create_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn datastore<'life0, 'async_trait>(
&'life0 self,
request: Request<DatastoreRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DatastoreResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn datastore_usage<'life0, 'async_trait>(
&'life0 self,
request: Request<DatastoreusageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DatastoreusageResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn create_onion<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateonionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateonionResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn del_datastore<'life0, 'async_trait>(
&'life0 self,
request: Request<DeldatastoreRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeldatastoreResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn del_expired_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<DelexpiredinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DelexpiredinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn del_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<DelinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DelinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<InvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_datastore<'life0, 'async_trait>(
&'life0 self,
request: Request<ListdatastoreRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListdatastoreResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_invoices<'life0, 'async_trait>(
&'life0 self,
request: Request<ListinvoicesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListinvoicesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn send_onion<'life0, 'async_trait>(
&'life0 self,
request: Request<SendonionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SendonionResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_send_pays<'life0, 'async_trait>(
&'life0 self,
request: Request<ListsendpaysRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListsendpaysResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_transactions<'life0, 'async_trait>(
&'life0 self,
request: Request<ListtransactionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListtransactionsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn pay<'life0, 'async_trait>(
&'life0 self,
request: Request<PayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PayResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_nodes<'life0, 'async_trait>(
&'life0 self,
request: Request<ListnodesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListnodesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn wait_any_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<WaitanyinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WaitanyinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn wait_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<WaitinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WaitinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn wait_send_pay<'life0, 'async_trait>(
&'life0 self,
request: Request<WaitsendpayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WaitsendpayResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn new_addr<'life0, 'async_trait>(
&'life0 self,
request: Request<NewaddrRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<NewaddrResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn withdraw<'life0, 'async_trait>(
&'life0 self,
request: Request<WithdrawRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WithdrawResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn key_send<'life0, 'async_trait>(
&'life0 self,
request: Request<KeysendRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<KeysendResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn fund_psbt<'life0, 'async_trait>(
&'life0 self,
request: Request<FundpsbtRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FundpsbtResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn send_psbt<'life0, 'async_trait>(
&'life0 self,
request: Request<SendpsbtRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SendpsbtResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn sign_psbt<'life0, 'async_trait>(
&'life0 self,
request: Request<SignpsbtRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SignpsbtResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn utxo_psbt<'life0, 'async_trait>(
&'life0 self,
request: Request<UtxopsbtRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UtxopsbtResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_discard<'life0, 'async_trait>(
&'life0 self,
request: Request<TxdiscardRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxdiscardResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_prepare<'life0, 'async_trait>(
&'life0 self,
request: Request<TxprepareRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxprepareResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn tx_send<'life0, 'async_trait>(
&'life0 self,
request: Request<TxsendRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TxsendResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_peer_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<ListpeerchannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListpeerchannelsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_closed_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<ListclosedchannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListclosedchannelsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn decode_pay<'life0, 'async_trait>(
&'life0 self,
request: Request<DecodepayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DecodepayResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn decode<'life0, 'async_trait>(
&'life0 self,
request: Request<DecodeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DecodeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn disconnect<'life0, 'async_trait>(
&'life0 self,
request: Request<DisconnectRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DisconnectResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn feerates<'life0, 'async_trait>(
&'life0 self,
request: Request<FeeratesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FeeratesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn fetch_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<FetchinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FetchinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn fund_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<FundchannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FundchannelResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_route<'life0, 'async_trait>(
&'life0 self,
request: Request<GetrouteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetrouteResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_forwards<'life0, 'async_trait>(
&'life0 self,
request: Request<ListforwardsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListforwardsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_offers<'life0, 'async_trait>(
&'life0 self,
request: Request<ListoffersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListoffersResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_pays<'life0, 'async_trait>(
&'life0 self,
request: Request<ListpaysRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListpaysResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_htlcs<'life0, 'async_trait>(
&'life0 self,
request: Request<ListhtlcsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListhtlcsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn offer<'life0, 'async_trait>(
&'life0 self,
request: Request<OfferRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OfferResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn ping<'life0, 'async_trait>(
&'life0 self,
request: Request<PingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PingResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn send_custom_msg<'life0, 'async_trait>(
&'life0 self,
request: Request<SendcustommsgRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SendcustommsgResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn set_channel<'life0, 'async_trait>(
&'life0 self,
request: Request<SetchannelRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetchannelResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn sign_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<SigninvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SigninvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn sign_message<'life0, 'async_trait>(
&'life0 self,
request: Request<SignmessageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SignmessageResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn wait_block_height<'life0, 'async_trait>(
&'life0 self,
request: Request<WaitblockheightRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WaitblockheightResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn wait<'life0, 'async_trait>(
&'life0 self,
request: Request<WaitRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WaitResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn stop<'life0, 'async_trait>(
&'life0 self,
request: Request<StopRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StopResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn pre_approve_keysend<'life0, 'async_trait>(
&'life0 self,
request: Request<PreapprovekeysendRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PreapprovekeysendResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn pre_approve_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<PreapproveinvoiceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PreapproveinvoiceResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn static_backup<'life0, 'async_trait>(
&'life0 self,
request: Request<StaticbackupRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StaticbackupResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn bkpr_list_income<'life0, 'async_trait>(
&'life0 self,
request: Request<BkprlistincomeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BkprlistincomeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with NodeServer.