pub trait BlockchainsAssetsApi: Send + Sync {
// Required methods
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;
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;
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;
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;
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;
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;
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;
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;
fn update_asset_user_metadata<'life0, 'async_trait>(
&'life0 self,
params: UpdateAssetUserMetadataParams,
) -> Pin<Box<dyn Future<Output = Result<Asset, Error<UpdateAssetUserMetadataError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
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;
}Required Methods§
Sourcefn 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,
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,
GET /estimate_network_fee
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.
Sourcefn 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,
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,
GET /assets/{id}
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.
Sourcefn 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,
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,
GET /blockchains/{id}
Returns a blockchain by ID or legacyID.
Sourcefn 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,
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,
GET /supported_assets
This legacy endpoint has not been deprecated but it should not be used in your operations. Instead, use the new List assets endpoint for better performance and to retrieve more detailed asset information. Retrieves all assets supported by Fireblocks in your workspace. Endpoint Permissions: Admin, Non-Signing Admin, Signer, Approver, Editor.
Sourcefn 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,
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,
GET /assets
Retrieves a paginated list of all assets supported by Fireblocks in your workspace. Note: We will continue to support and display 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.
Sourcefn 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,
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,
GET /blockchains
Returns all blockchains supported by Fireblocks.
Sourcefn 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,
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,
POST /assets
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.
Sourcefn 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,
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,
POST /assets/prices/{id}
Set asset price for the given asset id. Returns the asset price response.
Sourcefn update_asset_user_metadata<'life0, 'async_trait>(
&'life0 self,
params: UpdateAssetUserMetadataParams,
) -> Pin<Box<dyn Future<Output = Result<Asset, Error<UpdateAssetUserMetadataError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_asset_user_metadata<'life0, 'async_trait>(
&'life0 self,
params: UpdateAssetUserMetadataParams,
) -> Pin<Box<dyn Future<Output = Result<Asset, Error<UpdateAssetUserMetadataError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
PATCH /assets/{id}
Update the user’s metadata for an asset. Endpoint Permissions: Owner, Admin, Non-Signing Admin, NCW Admin, Signer, Editor.
Sourcefn 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,
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,
GET /transactions/validate_address/{assetId}/{address}
Checks if an address is valid and active (for XRP, DOT, XLM, and EOS). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.