Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class EthereumTransactionDataEip7702
java.lang.Object
com.hedera.hashgraph.sdk.EthereumTransactionData
com.hedera.hashgraph.sdk.EthereumTransactionDataEip7702
The ethereum transaction data, in the format defined in
EIP-7702
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA tuple describing an authorization entry for EIP-7702 transactions.(package private) static classA helper class to hold core transaction fields for EIP-7702 transactions.(package private) static classA helper class to hold signature data for EIP-7702 transactions. -
Field Summary
FieldsModifier and TypeFieldDescriptionList<byte[]> Specifies an array of addresses and storage keys that the transaction plans to access.The list of delegation authorizations.byte[]ID of the chain.byte[]The amount of gas available for the transaction.byte[]The maximum amount, in tinybars, that the payer of the hedera transaction is willing to pay to complete the transaction.byte[]An 'optional' additional fee in Ethereum that is paid directly to miners in order to incentivize them to include your transaction in a block.byte[]Transaction's nonce.byte[]The R value of the signature.byte[]Recovery parameter used to ease the signature verification.byte[]The S value of the signature.byte[]The receiver of the transaction.byte[]The transaction value.Fields inherited from class com.hedera.hashgraph.sdk.EthereumTransactionData
callData -
Constructor Summary
ConstructorsConstructorDescriptionEthereumTransactionDataEip7702(EthereumTransactionDataEip7702.HeaderData headerData, byte[] callData, List<byte[]> accessList, List<EthereumTransactionDataEip7702.AuthorizationTuple> authorizationList, EthereumTransactionDataEip7702.SignatureData signatureData) -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(byte[] bytes) Convert a byte array to an ethereum transaction data.byte[]sign(PrivateKey privateKey) Sign this transaction body with the given ECDSA private key, populating the signature fields (r, s and the recovery id / v), and return the resulting signed RLP encoding.byte[]toBytes()Serialize the ethereum transaction data into bytes using RLPtoString()Serialize the ethereum transaction data into a string(package private) byte[]RLP-encode the unsigned payload (9 fields through the access list).Methods inherited from class com.hedera.hashgraph.sdk.EthereumTransactionData
ethereumBodyIsSigned, signMessage, signTypedTransaction
-
Field Details
-
chainId
public byte[] chainIdID of the chain. -
nonce
public byte[] nonceTransaction's nonce. -
maxPriorityGas
public byte[] maxPriorityGasAn 'optional' additional fee in Ethereum that is paid directly to miners in order to incentivize them to include your transaction in a block. Not used in Hedera. -
maxGas
public byte[] maxGasThe maximum amount, in tinybars, that the payer of the hedera transaction is willing to pay to complete the transaction. -
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. -
accessList
Specifies an array of addresses and storage keys that the transaction plans to access. -
authorizationList
The list of delegation authorizations. -
recoveryId
public byte[] 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
-
EthereumTransactionDataEip7702
EthereumTransactionDataEip7702(EthereumTransactionDataEip7702.HeaderData headerData, byte[] callData, List<byte[]> accessList, List<EthereumTransactionDataEip7702.AuthorizationTuple> authorizationList, EthereumTransactionDataEip7702.SignatureData signatureData)
-
-
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
-
sign
Description copied from class:EthereumTransactionDataSign this transaction body with the given ECDSA private key, populating the signature fields (r, s and the recovery id / v), and return the resulting signed RLP encoding.- Specified by:
signin classEthereumTransactionData- Parameters:
privateKey- the ECDSA secp256k1 key to sign with- Returns:
- the signed RLP-encoded transaction
-
toUnsignedRlp
byte[] toUnsignedRlp()RLP-encode the unsigned payload (9 fields through the access list).
-