Skip to main content

Transaction

Struct Transaction 

Source
pub struct Transaction {
Show 31 fields pub id: String, pub state: TransactionState, pub blockchain: Blockchain, pub transaction_type: TransactionType, pub create_date: String, pub update_date: String, pub abi_function_signature: Option<String>, pub abi_parameters: Option<Vec<Value>>, pub amounts: Option<Vec<String>>, pub amount_in_usd: Option<String>, pub block_hash: Option<String>, pub block_height: Option<i64>, pub contract_address: Option<String>, pub custody_type: Option<CustodyType>, pub destination_address: Option<String>, pub error_reason: Option<String>, pub error_details: Option<String>, pub estimated_fee: Option<TransactionFee>, pub fee_level: Option<FeeLevel>, pub first_confirm_date: Option<String>, pub network_fee: Option<String>, pub network_fee_in_usd: Option<String>, pub nfts: Option<Vec<Nft>>, pub operation: Option<Operation>, pub ref_id: Option<String>, pub source_address: Option<String>, pub token_id: Option<String>, pub tx_hash: Option<String>, pub user_id: Option<String>, pub wallet_id: Option<String>, pub transaction_screening_evaluation: Option<TransactionScreeningDecision>,
}
Expand description

A user-controlled wallet transaction.

Fields§

§id: String

Circle-assigned transaction ID.

§state: TransactionState

Current on-chain state.

§blockchain: Blockchain

Blockchain this transaction is on.

§transaction_type: TransactionType

Direction of the transaction.

§create_date: String

ISO 8601 creation timestamp.

§update_date: String

ISO 8601 last-updated timestamp.

§abi_function_signature: Option<String>

ABI function signature for contract calls.

§abi_parameters: Option<Vec<Value>>

ABI parameters for contract calls.

§amounts: Option<Vec<String>>

Token amounts transferred (decimal strings).

§amount_in_usd: Option<String>

USD equivalent of the transferred amount.

§block_hash: Option<String>

Block hash for the confirmed transaction.

§block_height: Option<i64>

Block height for the confirmed transaction.

§contract_address: Option<String>

Target contract address.

§custody_type: Option<CustodyType>

Custody type of the source wallet.

§destination_address: Option<String>

Recipient address.

§error_reason: Option<String>

Short reason string for failures.

§error_details: Option<String>

Extended error information.

§estimated_fee: Option<TransactionFee>

Estimated fee at submission time.

§fee_level: Option<FeeLevel>

Requested fee level.

§first_confirm_date: Option<String>

ISO 8601 timestamp of the first on-chain confirmation.

§network_fee: Option<String>

Actual network fee paid (decimal string).

§network_fee_in_usd: Option<String>

Network fee expressed in USD.

§nfts: Option<Vec<Nft>>

NFTs transferred in this transaction.

§operation: Option<Operation>

High-level operation type.

§ref_id: Option<String>

Application-defined reference identifier.

§source_address: Option<String>

Source address.

§token_id: Option<String>

Circle token ID transferred.

§tx_hash: Option<String>

On-chain transaction hash.

§user_id: Option<String>

ID of the end-user who initiated this transaction.

§wallet_id: Option<String>

ID of the source wallet.

§transaction_screening_evaluation: Option<TransactionScreeningDecision>

Compliance screening evaluation.

Trait Implementations§

Source§

impl Clone for Transaction

Source§

fn clone(&self) -> Transaction

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 Transaction

Source§

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

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

impl<'de> Deserialize<'de> for Transaction

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 Serialize for Transaction

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

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, 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> 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,