Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class EthereumTransactionDataLegacy
java.lang.Object
com.hedera.hashgraph.sdk.EthereumTransactionData
com.hedera.hashgraph.sdk.EthereumTransactionDataLegacy
The ethereum transaction data, in the legacy format
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]ID of the chainbyte[]The amount of gas available for the transactionbyte[]The price for 1 gasbyte[]Transaction's noncebyte[]The R value of the signatureintrecovery parameter used to ease the signature verificationbyte[]The S value of the signaturebyte[]The receiver of the transactionbyte[]The V value of the signaturebyte[]The transaction valueFields inherited from class com.hedera.hashgraph.sdk.EthereumTransactionData
callData -
Constructor Summary
ConstructorsConstructorDescriptionEthereumTransactionDataLegacy(byte[] nonce, byte[] gasPrice, byte[] gasLimit, byte[] to, byte[] value, byte[] callData, byte[] v, byte[] r, byte[] s) -
Method Summary
-
Field Details
-
chainId
public byte[] chainIdID of the chain -
nonce
public byte[] nonceTransaction's nonce -
gasPrice
public byte[] gasPriceThe price for 1 gas -
gasLimit
public byte[] gasLimitThe amount of gas available for the transaction -
to
public byte[] toThe receiver of the transaction -
value
public byte[] valueThe transaction value -
v
public byte[] vThe V value of the signature -
recoveryId
public int recoveryIdrecovery parameter used to ease the signature verification -
r
public byte[] rThe R value of the signature -
s
public byte[] sThe S value of the signature
-
-
Constructor Details
-
EthereumTransactionDataLegacy
EthereumTransactionDataLegacy(byte[] nonce, byte[] gasPrice, byte[] gasLimit, byte[] to, byte[] value, byte[] callData, byte[] v, byte[] r, byte[] s)
-
-
Method Details
-
fromBytes
Convert a byte array to an ethereum transaction data.- Parameters:
bytes- the byte array- Returns:
- the ethereum transaction data
-
toBytes
public byte[] toBytes()Description copied from class:EthereumTransactionDataSerialize the ethereum transaction data into bytes using RLP- Specified by:
toBytesin classEthereumTransactionData- Returns:
- the serialized transaction as a byte array
-
toString
Description copied from class:EthereumTransactionDataSerialize the ethereum transaction data into a string- Specified by:
toStringin classEthereumTransactionData- Returns:
- the serialized transaction as a string
-