pub struct TransactionBody { /* private fields */ }

Implementations§

source§

impl TransactionBody

source

pub fn to_bytes(&self) -> Vec<u8>

source§

impl TransactionBody

source§

impl TransactionBody

source

pub fn to_hex(&self) -> String

source§

impl TransactionBody

source§

impl TransactionBody

source§

impl TransactionBody

source

pub fn inputs(&self) -> TransactionInputs

source

pub fn outputs(&self) -> TransactionOutputs

source

pub fn fee(&self) -> Coin

source

pub fn ttl(&self) -> Result<Option<u32>, JsError>

👎Deprecated since 10.1.0: Possible boundary error. Use ttl_bignum instead

!!! DEPRECATED !!! Returns a Slot32 (u32) value in case the underlying original BigNum (u64) value is within the limits. Otherwise will just raise an error.

source

pub fn ttl_bignum(&self) -> Option<BigNum>

source

pub fn set_ttl(&mut self, ttl: &BigNum)

source

pub fn remove_ttl(&mut self)

source

pub fn set_certs(&mut self, certs: &Certificates)

source

pub fn certs(&self) -> Option<Certificates>

source

pub fn set_withdrawals(&mut self, withdrawals: &Withdrawals)

source

pub fn withdrawals(&self) -> Option<Withdrawals>

source

pub fn set_update(&mut self, update: &Update)

source

pub fn update(&self) -> Option<Update>

source

pub fn set_auxiliary_data_hash( &mut self, auxiliary_data_hash: &AuxiliaryDataHash )

source

pub fn auxiliary_data_hash(&self) -> Option<AuxiliaryDataHash>

source

pub fn set_validity_start_interval(&mut self, validity_start_interval: u32)

👎Deprecated since 10.1.0: Underlying value capacity of slot (BigNum u64) bigger then Slot32. Use set_validity_start_interval_bignum instead.

!!! DEPRECATED !!! Uses outdated slot number format.

source

pub fn set_validity_start_interval_bignum( &mut self, validity_start_interval: BigNum )

source

pub fn validity_start_interval_bignum(&self) -> Option<BigNum>

source

pub fn validity_start_interval(&self) -> Result<Option<u32>, JsError>

👎Deprecated since 10.1.0: Possible boundary error. Use validity_start_interval_bignum instead

!!! DEPRECATED !!! Returns a Option (u32) value in case the underlying original Option (u64) value is within the limits. Otherwise will just raise an error. Use .validity_start_interval_bignum instead.

source

pub fn set_mint(&mut self, mint: &Mint)

source

pub fn mint(&self) -> Option<Mint>

source

pub fn multiassets(&self) -> Option<Mint>

👎Deprecated since 10.0.0: Weird naming. Use .mint()

This function returns the mint value of the transaction Use .mint() instead.

source

pub fn set_reference_inputs(&mut self, reference_inputs: &TransactionInputs)

source

pub fn reference_inputs(&self) -> Option<TransactionInputs>

source

pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash)

source

pub fn script_data_hash(&self) -> Option<ScriptDataHash>

source

pub fn set_collateral(&mut self, collateral: &TransactionInputs)

source

pub fn collateral(&self) -> Option<TransactionInputs>

source

pub fn set_required_signers(&mut self, required_signers: &RequiredSigners)

source

pub fn required_signers(&self) -> Option<RequiredSigners>

source

pub fn set_network_id(&mut self, network_id: &NetworkId)

source

pub fn network_id(&self) -> Option<NetworkId>

source

pub fn set_collateral_return(&mut self, collateral_return: &TransactionOutput)

source

pub fn collateral_return(&self) -> Option<TransactionOutput>

source

pub fn set_total_collateral(&mut self, total_collateral: &Coin)

source

pub fn total_collateral(&self) -> Option<Coin>

source

pub fn set_voting_procedures(&mut self, voting_procedures: &VotingProcedures)

source

pub fn voting_procedures(&self) -> Option<VotingProcedures>

source

pub fn new( inputs: &TransactionInputs, outputs: &TransactionOutputs, fee: &Coin, ttl: Option<u32> ) -> Self

👎Deprecated since 10.1.0: Underlying value capacity of ttl (BigNum u64) bigger then Slot32. Use new_tx_body instead.

!!! DEPRECATED !!! This constructor uses outdated slot number format for the ttl value. Use .new_tx_body and then .set_ttl instead

source

pub fn new_tx_body( inputs: &TransactionInputs, outputs: &TransactionOutputs, fee: &Coin ) -> Self

Returns a new TransactionBody. In the new version of “new” we removed optional ttl for support it by wasm_bingen. Your can use “set_ttl” and “remove_ttl” to set a new value for ttl or set it as None.

Trait Implementations§

source§

impl Clone for TransactionBody

source§

fn clone(&self) -> TransactionBody

Returns a copy 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 TransactionBody

source§

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

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

impl<'de> Deserialize<'de> for TransactionBody

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 JsonSchema for TransactionBody

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl PartialEq<TransactionBody> for TransactionBody

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for TransactionBody

source§

fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W> ) -> Result<&'se mut Serializer<W>>

source§

impl Serialize for TransactionBody

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 Eq for TransactionBody

source§

impl StructuralEq for TransactionBody

source§

impl StructuralPartialEq for TransactionBody

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

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

§

fn vzip(self) -> V

source§

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