Struct block::UnsignedTransaction
[−]
[src]
pub struct UnsignedTransaction {
pub nonce: U256,
pub gas_price: Gas,
pub gas_limit: Gas,
pub action: TransactionAction,
pub value: U256,
pub input: Vec<u8>,
pub network_id: Option<u8>,
}Fields
nonce: U256
gas_price: Gas
gas_limit: Gas
action: TransactionAction
value: U256
input: Vec<u8>
network_id: Option<u8>
Methods
impl UnsignedTransaction[src]
fn sign(self, key: &SecretKey) -> Transaction
Trait Implementations
impl Encodable for UnsignedTransaction[src]
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl From<Transaction> for UnsignedTransaction[src]
fn from(val: Transaction) -> UnsignedTransaction
Performs the conversion.