Trait GasStationApi

Source
pub trait GasStationApi: Send + Sync {
    // Required methods
    fn get_gas_station_by_asset_id<'life0, 'async_trait>(
        &'life0 self,
        params: GetGasStationByAssetIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<GasStationPropertiesResponse, Error<GetGasStationByAssetIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_gas_station_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<GasStationPropertiesResponse, Error<GetGasStationInfoError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_gas_station_configuration<'life0, 'async_trait>(
        &'life0 self,
        params: UpdateGasStationConfigurationParams,
    ) -> Pin<Box<dyn Future<Output = Result<EditGasStationConfigurationResponse, Error<UpdateGasStationConfigurationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_gas_station_configuration_by_asset_id<'life0, 'async_trait>(
        &'life0 self,
        params: UpdateGasStationConfigurationByAssetIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<EditGasStationConfigurationResponse, Error<UpdateGasStationConfigurationByAssetIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_gas_station_by_asset_id<'life0, 'async_trait>( &'life0 self, params: GetGasStationByAssetIdParams, ) -> Pin<Box<dyn Future<Output = Result<GasStationPropertiesResponse, Error<GetGasStationByAssetIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /gas_station/{assetId}

Returns gas station settings and balances for a requested asset.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

fn get_gas_station_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<GasStationPropertiesResponse, Error<GetGasStationInfoError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /gas_station

Returns gas station settings and ETH balance.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

fn update_gas_station_configuration<'life0, 'async_trait>( &'life0 self, params: UpdateGasStationConfigurationParams, ) -> Pin<Box<dyn Future<Output = Result<EditGasStationConfigurationResponse, Error<UpdateGasStationConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

PUT /gas_station/configuration

Configures gas station settings for ETH. Learn more about the Fireblocks Gas Station in the following guide.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

fn update_gas_station_configuration_by_asset_id<'life0, 'async_trait>( &'life0 self, params: UpdateGasStationConfigurationByAssetIdParams, ) -> Pin<Box<dyn Future<Output = Result<EditGasStationConfigurationResponse, Error<UpdateGasStationConfigurationByAssetIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

PUT /gas_station/configuration/{assetId}

Configures gas station settings for a requested asset. Learn more about the Fireblocks Gas Station in the following guide.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Implementors§