pub(crate) async fn mpool_get_sequence<DB, KS, B>(
    data: Data<RpcState<DB, KS, B>>,
    Params(params): Params<(String,)>,
) -> Result<u64, JsonRpcError>
where
    DB: BlockStore + Send + Sync + 'static,
    KS: KeyStore + Send + Sync + 'static,
    B: Beacon + Send + Sync + 'static,
{
    let (addr_str,) = params;
    let address = Address::from_str(&addr_str)?;
    let sequence = data.mpool.get_sequence(&address).await?;
    Ok(sequence)
}
/// get the sequence of given address in mpool
get the sequence of given address in mpool
get the sequence of given address in mpool
pub(crate) async fn mpool_get_sequence<DB, KS, B>(
    data: Data<RpcState<DB, KS, B>>,
    Params(params): Params<(String,)>,
) -> Result<u64, JsonRpcError>
where
    DB: BlockStore + Send + Sync + 'static,
    KS: KeyStore + Send + Sync + 'static,
    B: Beacon + Send + Sync + 'static,
{
    let (addr_str,) = params;
    let address = Address::from_str(&addr_str)?;
    let sequence = data.mpool.get_sequence(&address).await?;
    Ok(sequence)
}
pub ( crate ) async fn mpool_get_sequence < DB , KS , B > ( data : Data < RpcState < DB , KS , B > > , Params ( params ) : Params < ( String , ) > , ) -> Result < u64 , JsonRpcError > where DB : BlockStore + Send + Sync + ' static , KS : KeyStore + Send + Sync + ' static , B : Beacon + Send + Sync + ' static , { let ( addr_str , ) = params ; let address = Address :: from_str ( & addr_str ) ? ; let sequence = data . mpool . get_sequence ( & address ) . await ? ; Ok ( sequence ) }
get the sequence of given address in mpool
get the sequence of given address in mpool
data
Params<(String,)>