Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ethereum transaction, packet struct #30

Closed
luhuimao opened this issue Oct 10, 2018 · 1 comment
Closed

Ethereum transaction, packet struct #30

luhuimao opened this issue Oct 10, 2018 · 1 comment
Assignees

Comments

@luhuimao
Copy link
Contributor

Packet {
	/// Packet data
	data: Vec<u8>,
	/// Packet protocol ID
	protocol: [u8; 3],
	/// Zero based packet ID
	packet_id: u8,
}
@luhuimao
Copy link
Contributor Author

pub struct Transaction {
    /// Nonce.
    pub nonce: U256,
    /// Gas price.
    pub gas_price: U256,
    /// Gas paid up front for transaction execution.
    pub gas: U256,
    /// Action, can be either call or contract create.
    pub action: Action,
    /// Transfered value.
    pub value: U256,
    /// Transaction data.
    pub data: Bytes,
}

@lsf1001 lsf1001 closed this as completed Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants