public class TxTypeLegacyTransaction extends AbstractTxType
TxType.Type
Modifier | Constructor and Description |
---|---|
protected |
TxTypeLegacyTransaction(java.math.BigInteger nonce,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.math.BigInteger value,
java.lang.String data) |
Modifier and Type | Method and Description |
---|---|
static TxTypeLegacyTransaction |
createTransaction(java.math.BigInteger nonce,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit,
java.lang.String to,
java.math.BigInteger value,
java.lang.String data) |
java.lang.String |
getData() |
KlaySignatureData |
getSignatureData(KlayCredentials credentials,
int chainId)
rlp encoding for signature(SigRLP)
|
TxType.Type |
getType()
This method is overridden as LEGACY type.
|
KlayRawTransaction |
sign(KlayCredentials credentials,
int chainId)
rlp encoding for transaction hash(TxHash)
|
getEncodedTransactionNoSig, getFrom, getGasLimit, getGasPrice, getNonce, getSenderSignatureData, getTo, getValue, rlpValues, setSenderSignatureData
protected TxTypeLegacyTransaction(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)
public static TxTypeLegacyTransaction createTransaction(java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)
public java.lang.String getData()
public TxType.Type getType()
public KlaySignatureData getSignatureData(KlayCredentials credentials, int chainId)
getSignatureData
in interface TxType
getSignatureData
in class AbstractTxType
credentials
- credential info of a signerchainId
- chain IDpublic KlayRawTransaction sign(KlayCredentials credentials, int chainId)
sign
in interface TxType
sign
in class AbstractTxType
credentials
- credential info of a signerchainId
- chain ID