Struct BlockchainsAssetsApiClient

Source
pub struct BlockchainsAssetsApiClient { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl BlockchainsAssetsApi for BlockchainsAssetsApiClient

Source§

fn estimate_network_fee<'life0, 'async_trait>( &'life0 self, params: EstimateNetworkFeeParams, ) -> Pin<Box<dyn Future<Output = Result<EstimatedNetworkFeeResponse, Error<EstimateNetworkFeeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the estimated required fee for an asset. Fireblocks fetches, calculates and caches the result every 30 seconds. Customers should query this API while taking the caching interval into consideration. Notes: - The networkFee parameter is the gasPrice with a given delta added, multiplied by the gasLimit plus the delta. - The estimation provided depends on the asset type. - For UTXO-based assets, the response contains the feePerByte parameter - For ETH-based and all EVM based assets, the response will contain gasPrice parameter. This is calculated by adding the baseFee to the actualPriority based on the latest 12 blocks. The response for ETH-based contains the baseFee, gasPrice, and priorityFee parameters. - For ADA-based assets, the response will contain the parameter networkFee and feePerByte parameters. - For XRP and XLM, the response will contain the transaction fee. - For other assets, the response will contain the networkFee parameter. Learn more about Fireblocks Fee Management in the following guide.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source§

fn get_asset<'life0, 'async_trait>( &'life0 self, params: GetAssetParams, ) -> Pin<Box<dyn Future<Output = Result<Asset, Error<GetAssetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns an asset by ID or legacyID.
Note: - We will continue displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use only the legacy ID until further notice.

Source§

fn get_blockchain<'life0, 'async_trait>( &'life0 self, params: GetBlockchainParams, ) -> Pin<Box<dyn Future<Output = Result<BlockchainResponse, Error<GetBlockchainError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a blockchain by ID or legacyID.

Source§

fn get_supported_assets<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<AssetTypeResponse>, Error<GetSupportedAssetsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Legacy Endpoint – Retrieves all assets supported by Fireblocks in your workspace without extended information.
Note: - This endpoint will remain available for the foreseeable future and is not deprecated.
- The List assets endpoint provides more detailed asset information and improved performance.
- We recommend transitioning to the List assets endpoint for better results.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source§

fn list_assets<'life0, 'async_trait>( &'life0 self, params: ListAssetsParams, ) -> Pin<Box<dyn Future<Output = Result<ListAssetsResponse, Error<ListAssetsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves all assets supported by Fireblocks in your workspace, providing extended information and enhanced performance compared to the legacy supported_assets endpoint.
Note: - We will continue displaying and supporting the legacy ID (API ID). Since not all Fireblocks services fully support the new Assets UUID, please use only the legacy ID until further notice.

Source§

fn list_blockchains<'life0, 'async_trait>( &'life0 self, params: ListBlockchainsParams, ) -> Pin<Box<dyn Future<Output = Result<ListBlockchainsResponse, Error<ListBlockchainsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns all blockchains supported by Fireblocks.

Source§

fn register_new_asset<'life0, 'async_trait>( &'life0 self, params: RegisterNewAssetParams, ) -> Pin<Box<dyn Future<Output = Result<AssetResponse, Error<RegisterNewAssetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register a new asset to a workspace and return the newly created asset’s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - Solana Learn more about Supporting Additional Assets in Fireblocks in the following guide.
Endpoint Permission: Owner, Admin, Non-Signing Admin, NCW Admin, Editor, and Signer.

Source§

fn set_asset_price<'life0, 'async_trait>( &'life0 self, params: SetAssetPriceParams, ) -> Pin<Box<dyn Future<Output = Result<AssetPriceResponse, Error<SetAssetPriceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Set asset price for the given asset id. Returns the asset price response.

Source§

fn validate_address<'life0, 'async_trait>( &'life0 self, params: ValidateAddressParams, ) -> Pin<Box<dyn Future<Output = Result<ValidateAddressResponse, Error<ValidateAddressError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Checks if an address is valid and active (for XRP, DOT, XLM, and EOS).
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,