"""
getSuggestedFee
Retrieve the suggested fee for given coins. You can either check the cached fees (which returns the same
result as last time getSuggestedFee was run), or check the current state of the blockchain.
Checking the cache is faster while checking the chain is more accurate. We recommend always checking the chain
directly for currencies with more volatile fees, such as ETH.
This endpoint is part of the transaction flow detailed at
https://docs.gk8.io/api-v19/sending-transactions-from-the-api. See the linked article for output example.
use_cache: Boolean, indicating whether to use cached data or not.
-
True: Use cached data for faster response.
-
False: Check the current state of the blockchain for more accurate information.
use_cache: bool
coin_type: List of coin symbols for which to retrieve suggested fees (e.g., ["BTC"]).
- Send "ALL_COINS" in the list to query all supported coins.
coin_type: list of str
staking_operation: (Optional) The type of staking operation to consider when calculating the suggested fee.
staking_operation: (Optional) Staking_Operation Enum str
:return: JSON detailing the suggested fee for the given coins.
:rtype: dict
-------------------- Request --------------------
``getSuggestedFee(
"use_cache"="True",
"coin_type"=["ETH"]
)``
-------------------- Response --------------------
{
"FunctionData": {
"CurrenciesSuggestedFee": [
{
"Currency": "ETH",
"SuggestedFee": "1000000000",
"SuggestedPriorityFee": "1140838",
"SuggestedStorageLimit": ""
}
]
},
"Meta": {
"AccessToken": "8ca6934f...",
"Destination": "045bd19d...",
"Source": "6f8fd2e8...",
"Time": "2024-09-29 20:21:39.274"
}
}
Response Structure:
- **FunctionData**: Contains the fee information for the requested currencies. \n
- **CurrenciesSuggestedFee**: A list of objects detailing the suggested fee for a specific currency. \n
* **Currency**: The symbol of the currency (e.g., "ETH").
* **SuggestedFee**: The suggested base fee for the currency.
* **SuggestedPriorityFee**: The suggested priority fee for faster transaction processing.
* **SuggestedStorageLimit**: Storage limit information (may be empty).
- **Meta**: Metadata about the response. \n
- **AccessToken**: A token used for accessing the API.
- **Destination**: The destination identifier for the request.
- **Source**: The source identifier for the request.
- **Time**: The timestamp of when the response was generated.
"""
Retrieve the suggested fee for given coins. You can either check the cached fees (which returns the same
result as last time getSuggestedFee was run), or check the current state of the blockchain.
Checking the cache is faster while checking the chain is more accurate. We recommend always checking the chain
directly for currencies with more volatile fees, such as ETH.
This endpoint is part of the transaction flow detailed at
https://docs.gk8.io/api-v19/sending-transactions-from-the-api. See the linked article for output example.
return: JSON detailing the suggested fee for the given coins.
coin_typearray<p>List of coin symbols for which to retrieve suggested fees (e.g., ["BTC"]), Send "ALL_COINS" in the list to query all supported coins.</p>
use_cacheboolean<p>Boolean, indicating whether to use cached data or not.</p>
staking_operationstring<p>Boolean, indicating whether to use cached data or not.</p>