pub(crate) async fn estimate_gas_premium<DB, KS, B>(
    data: Data<RpcState<DB, KS, B>>,
    Params(params): Params<(u64, String, u64, TipsetKeys)>,
) -> Result<String, JsonRpcError>
where
    DB: BlockStore + Send + Sync + 'static,
    KS: KeyStore + Send + Sync + 'static,
    B: Beacon + Send + Sync + 'static,
{
    let (nblocks, sender_str, gas_limit, tsk) = params;
    let sender = Address::from_str(&sender_str)?;
    let price = data
        .mpool
        .estimate_gas_premium(nblocks, sender, gas_limit, tsk)?;
    Ok(price.to_string())
}
/// Estimate the gas price for an Address
Estimate the gas price for an Address
Estimate the gas price for an Address
pub(crate) async fn estimate_gas_premium<DB, KS, B>(
    data: Data<RpcState<DB, KS, B>>,
    Params(params): Params<(u64, String, u64, TipsetKeys)>,
) -> Result<String, JsonRpcError>
where
    DB: BlockStore + Send + Sync + 'static,
    KS: KeyStore + Send + Sync + 'static,
    B: Beacon + Send + Sync + 'static,
{
    let (nblocks, sender_str, gas_limit, tsk) = params;
    let sender = Address::from_str(&sender_str)?;
    let price = data
        .mpool
        .estimate_gas_premium(nblocks, sender, gas_limit, tsk)?;
    Ok(price.to_string())
}
pub ( crate ) async fn estimate_gas_premium < DB , KS , B > ( data : Data < RpcState < DB , KS , B > > , Params ( params ) : Params < ( u64 , String , u64 , TipsetKeys ) > , ) -> Result < String , JsonRpcError > where DB : BlockStore + Send + Sync + ' static , KS : KeyStore + Send + Sync + ' static , B : Beacon + Send + Sync + ' static , { let ( nblocks , sender_str , gas_limit , tsk ) = params ; let sender = Address :: from_str ( & sender_str ) ? ; let price = data . mpool . estimate_gas_premium ( nblocks , sender , gas_limit , tsk ) ? ; Ok ( price . to_string ( ) ) }
Estimate the gas price for an Address
Estimate the gas price for an Address
data
Params<(u64, String, u64, TipsetKeys)>