fireblocks_sdk/models/
transaction_request_priority_fee.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14/// TransactionRequestPriorityFee : **For Ethereum-based blockchains only.** The
15/// fee (in Gwei) for EIP-1559 transaction pricing mechanism.  Note: -
16/// Fireblocks recommends using a numeric string for more precision. Although a
17/// number input exists, it is deprecated. **For Ethereum-based blockchains
18/// only.** The fee (in Gwei) for EIP-1559 transaction pricing mechanism.  Note:
19/// - Fireblocks recommends using a numeric string for more precision. Although
20/// a number input exists, it is deprecated.
21#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
22#[serde(untagged)]
23pub enum TransactionRequestPriorityFee {
24    /// Numeric string (recommended)
25    String(String),
26    /// Number (deprecated)
27    Number(f64),
28}
29
30impl Default for TransactionRequestPriorityFee {
31    fn default() -> Self {
32        Self::String(Default::default())
33    }
34}