pub(crate) async fn store_transactions(
    client: &Client,
    uri: &str,
    trytes: &[String],
) -> Result<Response, Error> {
    let body = json!({
        "command": "storeTransactions",
        "trytes": trytes,
    });

    client
        .post(uri)
        .header("ContentType", "application/json")
        .header("X-IOTA-API-Version", "1")
        .body(body.to_string())
        .send()
        .await
}
/// Store transactions into the local storage.
/// The trytes to be used for this call are
/// returned by attachToTangle.
Store transactions into the local storage.
The trytes to be used for this call are
returned by attachToTangle.
Store transactions into the local storage . The trytes to be used for this call are returned by attachToTangle .
pub(crate) async fn store_transactions(
    client: &Client,
    uri: &str,
    trytes: &[String],
) -> Result<Response, Error> {
    let body = json!({
        "command": "storeTransactions",
        "trytes": trytes,
    });
    client
        .post(uri)
        .header("ContentType", "application/json")
        .header("X-IOTA-API-Version", "1")
        .body(body.to_string())
        .send()
        .await
}
pub ( crate ) async fn store_transactions ( client : & Client , uri : & str , trytes : & [ String ] , ) -> Result < Response , Error > { let body = json ! ( { " " " " " " trytes } ) ; client . post ( uri ) . header ( " " , " " ) . header ( " " , " " ) . body ( body . to_string ( ) ) . send ( ) . await }
Store transactions into the local storage.
Store transactions into the local storage .
client
&Client
uri
&str
trytes
&[String]