(
&self,
peer: &PublicKey,
token: Option<String>,
)
| 37 | // LSPS2 Implementation |
| 38 | impl<T: Transport> LspsClient<T> { |
| 39 | pub async fn get_info( |
| 40 | &self, |
| 41 | peer: &PublicKey, |
| 42 | token: Option<String>, |
| 43 | ) -> Result<JsonRpcResponse<Lsps2GetInfoResponse>, transport::Error> { |
| 44 | self.transport |
| 45 | .request(peer, &Lsps2GetInfoRequest { token }.into_request()) |
| 46 | .await |
| 47 | } |
| 48 | |
| 49 | pub async fn buy( |
| 50 | &self, |
no test coverage detected