[][src]Struct komodo_rpc_client::SerializedRawTransaction

pub struct SerializedRawTransaction(pub String);

Methods

impl SerializedRawTransaction[src]

pub fn set_locktime(&mut self)[src]

This method sets the locktime of a transaction. A SerializedRawTransaction upon creation does not have a set locktime. To earn KMD rewards, it must be set to the current time - 777 seconds in little endian hex. The first 8 chars of the last 38 chars of the hex string is the place to set the locktime. NOTE: this only applies to KMD, not its assetchains.

pub fn from_hex(hex: String) -> Self[src]

Trait Implementations

impl Debug for SerializedRawTransaction[src]

impl<'de> Deserialize<'de> for SerializedRawTransaction[src]

impl Serialize for SerializedRawTransaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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