pub struct TransactionRequest {Show 26 fields
pub operation: Option<TransactionOperation>,
pub note: Option<String>,
pub external_tx_id: Option<String>,
pub asset_id: Option<String>,
pub source: Option<SourceTransferPeerPath>,
pub destination: Option<DestinationTransferPeerPath>,
pub destinations: Option<Vec<TransactionRequestDestination>>,
pub amount: Option<TransactionRequestAmount>,
pub treat_as_gross_amount: Option<bool>,
pub force_sweep: Option<bool>,
pub fee_level: Option<FeeLevel>,
pub fee: Option<TransactionRequestFee>,
pub priority_fee: Option<TransactionRequestPriorityFee>,
pub fail_on_low_fee: Option<bool>,
pub max_fee: Option<String>,
pub gas_limit: Option<TransactionRequestGasLimit>,
pub gas_price: Option<TransactionRequestGasPrice>,
pub network_fee: Option<TransactionRequestNetworkFee>,
pub replace_tx_by_hash: Option<String>,
pub extra_parameters: Option<ExtraParameters>,
pub customer_ref_id: Option<String>,
pub travel_rule_message: Option<TravelRuleCreateTransactionRequest>,
pub auto_staking: Option<bool>,
pub network_staking: Option<TransactionRequestNetworkStaking>,
pub cpu_staking: Option<TransactionRequestNetworkStaking>,
pub use_gasless: Option<bool>,
}Fields§
§operation: Option<TransactionOperation>§note: Option<String>Custom note, not sent to the blockchain, to describe the transaction at your Fireblocks workspace.
external_tx_id: Option<String>This parameter will become required for the Create a new transaction endpoint on March 1, 2026. This parameter allows you to add a unique ID of your own to help prevent duplicate transactions. No specific format is required for this parameter. After you submit a transaction with an external ID, Fireblocks will automatically reject all future transactions with the same ID. Using an external ID primarily helps in situations where, even though a submitted transaction responds with an error due to an internet outage, the transaction was still sent to and processed on the blockchain. Use the Get a specific transaction by external transaction ID to validate whether these transactions have been processed.
asset_id: Option<String>The ID of the asset to transfer; used for TRANSFER, MINT, or BURN operations. See the list of supported assets and their IDs.
source: Option<SourceTransferPeerPath>§destination: Option<DestinationTransferPeerPath>§destinations: Option<Vec<TransactionRequestDestination>>For UTXO based blockchains, you can send a single transaction to multiple destinations.
amount: Option<TransactionRequestAmount>§treat_as_gross_amount: Option<bool>"When set to true, the fee will be deducted from the requested
amount." Note: This parameter can only be considered if a
transaction’s asset is a base asset, such as ETH or MATIC. If the asset
can’t be used for transaction fees, like USDC, this parameter is ignored
and the fee is deducted from the relevant base asset wallet in the
source account.
force_sweep: Option<bool>For Polkadot, TON, Kusama and Westend transactions only. When set to true, Fireblocks will empty the asset wallet. Note: If set to true when the source account is exactly 1 DOT, the transaction will fail. Any amount more or less than 1 DOT succeeds. This is a Polkadot blockchain limitation.
fee_level: Option<FeeLevel>For UTXO or EVM-based blockchains only. Defines the blockchain fee level which will be payed for the transaction. Alternatively, specific fee estimation parameters exist below.
fee: Option<TransactionRequestFee>§priority_fee: Option<TransactionRequestPriorityFee>§fail_on_low_fee: Option<bool>When set to true, in case the current MEDIUM fee level is higher
than the one specified in the transaction, the transaction will fail to
avoid getting stuck with no confirmations.
max_fee: Option<String>The maximum fee (gas price or fee per byte) that should be paid for the
transaction. In case the current value of the requested feeLevel is
higher than this requested maximum fee. Represented by a numeric string
for more precision.
gas_limit: Option<TransactionRequestGasLimit>§gas_price: Option<TransactionRequestGasPrice>§network_fee: Option<TransactionRequestNetworkFee>§replace_tx_by_hash: Option<String>For EVM-based blockchains only. Notes: - To replace a transaction,
create another transaction using the stuck transaction’s hash and
specify a higher fee. - To drop a transaction, create another
transaction using the stuck transaction’s hash and change the amount
field to 0.
extra_parameters: Option<ExtraParameters>§customer_ref_id: Option<String>The ID for AML providers to associate the owner of funds with transactions.
travel_rule_message: Option<TravelRuleCreateTransactionRequest>§auto_staking: Option<bool>This feature is no longer supported.
network_staking: Option<TransactionRequestNetworkStaking>§cpu_staking: Option<TransactionRequestNetworkStaking>§use_gasless: Option<bool>- Override the default gasless configuration by sending true\false
Implementations§
Source§impl TransactionRequest
impl TransactionRequest
pub fn new() -> TransactionRequest
Trait Implementations§
Source§impl Clone for TransactionRequest
impl Clone for TransactionRequest
Source§fn clone(&self) -> TransactionRequest
fn clone(&self) -> TransactionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more