fireblocks_sdk/models/network_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NetworkFee {
16 /// The fee per byte value for UTXO based assets
17 #[serde(rename = "feePerByte", skip_serializing_if = "Option::is_none")]
18 pub fee_per_byte: Option<String>,
19 /// Gas price in gwei units for EVM based networks
20 #[serde(rename = "gasPrice", skip_serializing_if = "Option::is_none")]
21 pub gas_price: Option<String>,
22 /// The full network fee for non EVM and UTXO based assets (in the base
23 /// asset units)
24 #[serde(rename = "networkFee", skip_serializing_if = "Option::is_none")]
25 pub network_fee: Option<String>,
26 /// (optional) Base Fee according to EIP-1559 (ETH assets)
27 #[serde(rename = "baseFee", skip_serializing_if = "Option::is_none")]
28 pub base_fee: Option<String>,
29 /// (optional) Priority Fee according to EIP-1559 (ETH assets)
30 #[serde(rename = "priorityFee", skip_serializing_if = "Option::is_none")]
31 pub priority_fee: Option<String>,
32}
33
34impl NetworkFee {
35 pub fn new() -> NetworkFee {
36 NetworkFee {
37 fee_per_byte: None,
38 gas_price: None,
39 network_fee: None,
40 base_fee: None,
41 priority_fee: None,
42 }
43 }
44}