pub async fn mq_next_sequence(
    client: &XtClient,
    sender: &MessageOrigin,
) -> Result<u64, subxt::Error> {
    let sender_scl = sender.encode();
    let sender_hex = hex::encode(sender_scl);
    let seq: u64 = client
        .rpc
        .client
        .request("pha_getMqNextSequence", &[to_value(sender_hex)?])
        .await?;
    Ok(seq)
}
/// Fetch best next sequence for given sender considering the txpool
Fetch best next sequence for given sender considering the txpool
Fetch best next sequence for given sender considering the txpool
pub async fn mq_next_sequence(
    client: &XtClient,
    sender: &MessageOrigin,
) -> Result<u64, subxt::Error> {
    let sender_scl = sender.encode();
    let sender_hex = hex::encode(sender_scl);
    let seq: u64 = client
        .rpc
        .client
        .request("pha_getMqNextSequence", &[to_value(sender_hex)?])
        .await?;
    Ok(seq)
}
pub async fn mq_next_sequence ( client : & XtClient , sender : & MessageOrigin , ) -> Result < u64 , subxt :: Error > { let sender_scl = sender . encode ( ) ; let sender_hex = hex :: encode ( sender_scl ) ; let seq : u64 = client . rpc . client . request ( " " , & [ to_value ( sender_hex ) ? ] ) . await ? ; Ok ( seq ) }
Fetch best next sequence for given sender considering the txpool
Fetch best next sequence for given sender considering the txpool
client
&XtClient
sender
&MessageOrigin
client
&XtClient
sender
&MessageOrigin