Class TransactionWrapper
- java.lang.Object
-
- com.klaytn.caver.transaction.wrapper.TransactionWrapper
-
public class TransactionWrapper extends java.lang.Object
Represents a TransactionWrapper 1. This class contains all types of transaction wrapper classes as member variables 2. This class should be accessed via `caver.transaction`
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TransactionWrapper(Klay klaytnCall)
Creates a Transaction instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractTransaction
decode(java.lang.String rlpEncoded)
Decodes a RLP-encoded transaction and returns it with matching type of transactionAbstractTransaction
getTransactionByHash(java.lang.String transactionHash)
Query transaction from Klaytn and converts to a caver transaction instance.java.util.List<java.lang.String>
recoverFeePayerPublicKeys(java.lang.String rawTx)
Recovers the public keys from "feePayerSignatures" filed in raw transaction string.java.util.List<java.lang.String>
recoverPublicKeys(java.lang.String rawTx)
Recovers the public keys from "signatures" filed in raw transaction string.
-
-
-
Field Detail
-
legacyTransaction
public LegacyTransactionWrapper legacyTransaction
LegacyTransactionWrapper instance
-
ethereumAccessList
public EthereumAccessListWrapper ethereumAccessList
EthereumAccessListWrapper instance
-
ethereumDynamicFee
public EthereumDynamicFeeWrapper ethereumDynamicFee
EthereumDynamicFeeWrapper instance
-
valueTransfer
public ValueTransferWrapper valueTransfer
ValueTransferWrapper instance
-
feeDelegatedValueTransfer
public FeeDelegatedValueTransferWrapper feeDelegatedValueTransfer
FeeDelegatedValueTransferWrapper instance
-
feeDelegatedValueTransferWithRatio
public FeeDelegatedValueTransferWithRatioWrapper feeDelegatedValueTransferWithRatio
FeeDelegatedValueTransferWithRatioWrapper instance
-
valueTransferMemo
public ValueTransferMemoWrapper valueTransferMemo
ValueTransferMemoWrapper instance
-
feeDelegatedValueTransferMemo
public FeeDelegatedValueTransferMemoWrapper feeDelegatedValueTransferMemo
FeeDelegatedValueTransferMemoWrapper instance
-
feeDelegatedValueTransferMemoWithRatio
public FeeDelegatedValueTransferMemoWithRatioWrapper feeDelegatedValueTransferMemoWithRatio
FeeDelegatedValueTransferMemoWithRatioWrapper instance
-
accountUpdate
public AccountUpdateWrapper accountUpdate
AccountUpdateWrapper instance
-
feeDelegatedAccountUpdate
public FeeDelegatedAccountUpdateWrapper feeDelegatedAccountUpdate
FeeDelegatedAccountUpdateWrapper instance
-
feeDelegatedAccountUpdateWithRatio
public FeeDelegatedAccountUpdateWithRatioWrapper feeDelegatedAccountUpdateWithRatio
FeeDelegatedAccountUpdateWithRatioWrapper instance
-
smartContractDeploy
public SmartContractDeployWrapper smartContractDeploy
SmartContractDeployWrapper instance
-
feeDelegatedSmartContractDeploy
public FeeDelegatedSmartContractDeployWrapper feeDelegatedSmartContractDeploy
FeeDelegatedSmartContractDeployWrapper instance
-
feeDelegatedSmartContractDeployWithRatio
public FeeDelegatedSmartContractDeployWithRatioWrapper feeDelegatedSmartContractDeployWithRatio
FeeDelegatedSmartContractDeployWithRatioWrapper instance
-
smartContractExecution
public SmartContractExecutionWrapper smartContractExecution
SmartContractExecutionWrapper instance
-
feeDelegatedSmartContractExecution
public FeeDelegatedSmartContractExecutionWrapper feeDelegatedSmartContractExecution
FeeDelegatedSmartContractExecutionWrapper instance
-
feeDelegatedSmartContractExecutionWithRatio
public FeeDelegatedSmartContractExecutionWithRatioWrapper feeDelegatedSmartContractExecutionWithRatio
FeeDelegatedSmartContractExecutionWithRatioWrapper instance
-
cancel
public CancelWrapper cancel
CancelWrapper instance
-
feeDelegatedCancel
public FeeDelegatedCancelWrapper feeDelegatedCancel
FeeDelegatedCancelWrapper instance
-
feeDelegatedCancelWithRatio
public FeeDelegatedCancelWithRatioWrapper feeDelegatedCancelWithRatio
FeeDelegatedCancelWithRatioWrapper instance
-
chainDataAnchoring
public ChainDataAnchoringWrapper chainDataAnchoring
ChainDataAnchoringWrapper instance
-
feeDelegatedChainDataAnchoring
public FeeDelegatedChainDataAnchoringWrapper feeDelegatedChainDataAnchoring
FeeDelegatedChainDataAnchoringWrapper instance
-
feeDelegatedChainDataAnchoringWithRatio
public FeeDelegatedChainDataAnchoringWithRatioWrapper feeDelegatedChainDataAnchoringWithRatio
FeeDelegatedChainDataAnchoringWithRatioWrapper instance
-
utils
public TransactionUtilsWrapper utils
TransactionUtils instance
-
-
Constructor Detail
-
TransactionWrapper
public TransactionWrapper(Klay klaytnCall)
Creates a Transaction instance- Parameters:
klaytnCall
- Klay RPC instance
-
-
Method Detail
-
decode
public AbstractTransaction decode(java.lang.String rlpEncoded)
Decodes a RLP-encoded transaction and returns it with matching type of transaction- Parameters:
rlpEncoded
- RLP-encoded transaction- Returns:
- AbstractTransaction
-
getTransactionByHash
public AbstractTransaction getTransactionByHash(java.lang.String transactionHash)
Query transaction from Klaytn and converts to a caver transaction instance.Example :
AbstractTransaction tx = caver.transaction.getTransactionByHash("0x{txHash}");
- Parameters:
transactionHash
- The transaction hash string to query from Klaytn.- Returns:
- AbstractTransaction
-
recoverPublicKeys
public java.util.List<java.lang.String> recoverPublicKeys(java.lang.String rawTx)
Recovers the public keys from "signatures" filed in raw transaction string.If you want to derive an address from public key, please use
Utils.publicKeyToAddress(String)
Example :
List<String> publicKeys = caver.transaction.recoverPublicKeys("0x{RLP-encoded transaction string}");
- Parameters:
rawTx
- The RLP-encoded transaction string to recover public keys from "signatures".- Returns:
- List<String>
-
recoverFeePayerPublicKeys
public java.util.List<java.lang.String> recoverFeePayerPublicKeys(java.lang.String rawTx)
Recovers the public keys from "feePayerSignatures" filed in raw transaction string.If you want to derive an address from public key, please use
Utils.publicKeyToAddress(String)
Example :
List<String> publicKeys = caver.transaction.recoverFeePayerPublicKeys("0x{RLP-encoded transaction string}");
- Parameters:
rawTx
- The RLP-encoded transaction string to recover public keys from "signatures".- Returns:
- List<String>
-
-