Struct TransactionResponse

Source
pub struct TransactionResponse {
Show 48 fields pub id: String, pub external_tx_id: Option<String>, pub status: TransactionStatus, pub sub_status: Option<TransactionSubStatus>, pub tx_hash: Option<String>, pub operation: GetTransactionOperation, pub note: Option<String>, pub asset_id: Option<String>, pub source: Option<SourceTransferPeerPathResponse>, pub source_address: Option<String>, pub tag: Option<String>, pub destination: Option<DestinationTransferPeerPathResponse>, pub destinations: Option<Vec<TransactionResponseDestination>>, pub destination_address: Option<String>, pub destination_address_description: Option<String>, pub destination_tag: Option<String>, pub contract_call_decoded_data: Option<TransactionResponseContractCallDecodedData>, pub amount_info: Option<AmountInfo>, pub treat_as_gross_amount: Option<bool>, pub fee_info: Option<FeeInfo>, pub fee_currency: Option<String>, pub network_records: Option<Vec<NetworkRecord>>, pub created_at: Option<f64>, pub last_updated: Option<f64>, pub created_by: Option<String>, pub signed_by: Option<Vec<String>>, pub rejected_by: Option<String>, pub authorization_info: Option<AuthorizationInfo>, pub exchange_tx_id: Option<String>, pub customer_ref_id: Option<String>, pub aml_screening_result: Option<AmlScreeningResult>, pub compliance_result: Option<ComplianceResult>, pub extra_parameters: Option<ExtraParameters>, pub signed_messages: Option<Vec<SignedMessage>>, pub num_of_confirmations: Option<f64>, pub block_info: Option<BlockInfo>, pub index: Option<f64>, pub reward_info: Option<RewardInfo>, pub system_messages: Option<SystemMessageInfo>, pub address_type: Option<AddressType>, pub requested_amount: Option<f64>, pub amount: Option<f64>, pub net_amount: Option<f64>, pub amount_usd: Option<Option<f64>>, pub service_fee: Option<f64>, pub fee: Option<f64>, pub network_fee: Option<f64>, pub error_description: Option<String>,
}

Fields§

§id: String

Fireblocks Transaction ID

§external_tx_id: Option<String>

Unique externbal transaction identifier provided by the user. Fireblocks highly recommends setting an externalTxId for every transaction created, to avoid submitting the same transaction twice.

§status: TransactionStatus§sub_status: Option<TransactionSubStatus>§tx_hash: Option<String>

The hash of the transaction on the blockchain. * This parameter exists if at least one of the following conditions is met: 1. The transaction’s source type is UNKNOWN, WHITELISTED_ADDRESS, NETWORK_CONNECTION, ONE_TIME_ADDRESS, FIAT_ACCOUNT or GAS_STATION. 2. The transaction’s source type is VAULT and the status is either: CONFIRMING, COMPLETED, or was in any of these statuses prior to changing to FAILED or REJECTED. In some instances, transactions in status BROADCASTING will include the txHash as well. 3. The transaction’s source type is EXCHANGE_ACCOUNT and the transaction’s destination type is VAULT, and the status is either: CONFIRMING, COMPLETED, or was in any of these status prior to changing to FAILED. * In addition, the following conditions must be met: 1. The asset is a crypto asset (not fiat). 2. The transaction operation is not RAW or TYPED_MESSAGE.

§operation: GetTransactionOperation§note: Option<String>

Custom note, not sent to the blockchain, that describes the transaction at your Fireblocks workspace.

§asset_id: Option<String>

The ID of the asset for TRANSFER, MINT, BURN, ENABLE_ASSET,STAKE ,UNSTAKE or WITHDRAW operations. See the list of supported assets and their IDs on Fireblocks.

§source: Option<SourceTransferPeerPathResponse>§source_address: Option<String>

For account based assets only, the source address of the transaction. Note: If the status is CONFIRMING, COMPLETED, or has been CONFIRMING; then moved forward to FAILED or REJECTED, then this parameter will contain the source address. In any other case, this parameter will be empty.

§tag: Option<String>

Source address tag for Tag/Memo supporting assets, or Bank Transfer Description for the fiat provider BLINC (by BCB Group).

§destination: Option<DestinationTransferPeerPathResponse>§destinations: Option<Vec<TransactionResponseDestination>>

The transaction’s destinations. Note: In case the transaction is sent to a single destination, the destination parameter is used instead of this.

§destination_address: Option<String>

Address where the asset were transferred. Notes: - For Multi destination transactions, this parameter will be empty. In this case, you should refer to the destinations field. - If the status is CONFIRMING, COMPLETED, or has been CONFIRMING; then moved forward to FAILED or REJECTED, then this parameter will contain the destination address. In any other case, this parameter will be empty.

§destination_address_description: Option<String>

Description of the destination address.

§destination_tag: Option<String>

Destination address tag for Tag/Memo supporting assets, or Bank Transfer Description for the fiat provider BLINC (by BCB Group).

§contract_call_decoded_data: Option<TransactionResponseContractCallDecodedData>§amount_info: Option<AmountInfo>§treat_as_gross_amount: Option<bool>

For transactions initiated via this Fireblocks workspace, when set to true, the fee is 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.

§fee_info: Option<FeeInfo>§fee_currency: Option<String>

The asset which was withdrawn to pay the transaction fee, for example ETH for EVM-based blockchains, BTC for Tether Omni.

§network_records: Option<Vec<NetworkRecord>>

In case a single transaction resulted with multiple transfers, for example a result of a contract call, then this parameter specifies each transfer that took place on the blockchain.

§created_at: Option<f64>

The transaction’s creation date and time, in unix timestamp.

§last_updated: Option<f64>

The transaction’s last update date and time, in unix timestamp.

§created_by: Option<String>

User ID of the initiator of the transaction.

§signed_by: Option<Vec<String>>

User ID’s of the signers of the transaction.

§rejected_by: Option<String>

User ID of the user that rejected the transaction (in case it was rejected).

§authorization_info: Option<AuthorizationInfo>§exchange_tx_id: Option<String>

If the transaction originated from an exchange, this is the ID of this transaction at the exchange.

§customer_ref_id: Option<String>

The ID for AML providers to associate the owner of funds with transactions.

§aml_screening_result: Option<AmlScreeningResult>§compliance_result: Option<ComplianceResult>§extra_parameters: Option<ExtraParameters>§signed_messages: Option<Vec<SignedMessage>>

An array of signed messages

§num_of_confirmations: Option<f64>

The number of confirmations of the transaction. The number will increase until the transaction will be considered completed according to the confirmation policy.

§block_info: Option<BlockInfo>§index: Option<f64>

For UTXO based assets this is the vOut, for Ethereum based, this is the index of the event of the contract call. Note: This field is not returned if a transaction uses the destinations object with more than one value.

§reward_info: Option<RewardInfo>§system_messages: Option<SystemMessageInfo>§address_type: Option<AddressType>§requested_amount: Option<f64>

The amount requested by the user. Deprecated - please use the amountInfo field for accuracy.

§amount: Option<f64>

If the transfer is a withdrawal from an exchange, the actual amount that was requested to be transferred. Otherwise, the requested amount. Deprecated - please use the amountInfo field for accuracy.

§net_amount: Option<f64>

The net amount of the transaction, after fee deduction. Deprecated - please use the amountInfo field for accuracy.

§amount_usd: Option<Option<f64>>

The USD value of the requested amount. Deprecated - please use the amountInfo field for accuracy.

§service_fee: Option<f64>

The total fee deducted by the exchange from the actual requested amount (serviceFee = amount - netAmount). Deprecated - please use the feeInfo field for accuracy.

§fee: Option<f64>

Deprecated - please use the feeInfo field for accuracy.

§network_fee: Option<f64>

The fee paid to the network. Deprecated - please use the feeInfo field for accuracy.

§error_description: Option<String>

The transaction’s revert reason. This field will be returned when subStatus = ‘SMART_CONTRACT_EXECUTION_FAILED’.

Implementations§

Trait Implementations§

Source§

impl Clone for TransactionResponse

Source§

fn clone(&self) -> TransactionResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransactionResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TransactionResponse

Source§

fn default() -> TransactionResponse

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TransactionResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for TransactionResponse

Source§

fn eq(&self, other: &TransactionResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TransactionResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TransactionResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,