Class SmartContractDeployWrapper
- java.lang.Object
-
- com.klaytn.caver.transaction.type.wrapper.SmartContractDeployWrapper
-
public class SmartContractDeployWrapper extends java.lang.Object
Represents a SmartContractDeployWrapper 1. This class wraps all of static methods of SmartContractDeploy 2. This class should be accessed via `caver.transaction.smartContractDeploy`
-
-
Constructor Summary
Constructors Constructor Description SmartContractDeployWrapper(Klay klaytnCall)
Creates a SmartContractDeployWrapper instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmartContractDeploy
create(byte[] rlpEncoded)
Creates a SmartContractDeploy instance derived from a RLP-encoded SmartContractDeploy byte array.SmartContractDeploy
create(SmartContractDeploy.Builder builder)
Creates a SmartContractDeploy instance using SmartContractDeploy.BuilderSmartContractDeploy
create(java.lang.String rlpEncoded)
Creates a SmartContractDeploy instance derived from a RLP-encoded SmartContractDeploy string.SmartContractDeploy
create(java.lang.String from, java.lang.String nonce, java.lang.String gas, java.lang.String gasPrice, java.lang.String chainId, java.util.List<SignatureData> signatures, java.lang.String to, java.lang.String value, java.lang.String input, boolean humanReadable, java.lang.String codeFormat)
Creates a SmartContractDeploy instance.SmartContractDeploy
decode(byte[] rlpEncoded)
Decodes a RLP-encoded SmartContractDeploy byte array.SmartContractDeploy
decode(java.lang.String rlpEncoded)
Decodes a RLP-encoded SmartContractDeploy string.
-
-
-
Constructor Detail
-
SmartContractDeployWrapper
public SmartContractDeployWrapper(Klay klaytnCall)
Creates a SmartContractDeployWrapper instance.- Parameters:
klaytnCall
- Klay RPC instance
-
-
Method Detail
-
create
public SmartContractDeploy create(java.lang.String rlpEncoded)
Creates a SmartContractDeploy instance derived from a RLP-encoded SmartContractDeploy string.- Parameters:
rlpEncoded
- RLP-encoded SmartContractDeploy string- Returns:
- SmartContractDeploy
-
create
public SmartContractDeploy create(byte[] rlpEncoded)
Creates a SmartContractDeploy instance derived from a RLP-encoded SmartContractDeploy byte array.- Parameters:
rlpEncoded
- RLP-encoded SmartContractDeploy byte array.- Returns:
- SmartContractDeploy
-
create
public SmartContractDeploy create(SmartContractDeploy.Builder builder)
Creates a SmartContractDeploy instance using SmartContractDeploy.Builder- Parameters:
builder
- SmartContractDeploy.Builder- Returns:
- SmartContractDeploy
-
create
public SmartContractDeploy create(java.lang.String from, java.lang.String nonce, java.lang.String gas, java.lang.String gasPrice, java.lang.String chainId, java.util.List<SignatureData> signatures, java.lang.String to, java.lang.String value, java.lang.String input, boolean humanReadable, java.lang.String codeFormat)
Creates a SmartContractDeploy instance.- Parameters:
from
- The address of the sender.nonce
- A value used to uniquely identify a sender’s transaction.gas
- The maximum amount of gas the transaction is allowed to use.gasPrice
- A unit price of gas in peb the sender will pay for a transaction fee.chainId
- Network IDsignatures
- A Signature listto
- The account address that will receive the transferred value.value
- The amount of KLAY in peb to be transferred.input
- The message data attached to the transaction.humanReadable
- Is human-readable address.codeFormat
- The code format of smart contract code- Returns:
- SmartContractDeploy
-
decode
public SmartContractDeploy decode(java.lang.String rlpEncoded)
Decodes a RLP-encoded SmartContractDeploy string.- Parameters:
rlpEncoded
- RLP-encoded SmartContractDeploy string- Returns:
- SmartContractDeploy
-
decode
public SmartContractDeploy decode(byte[] rlpEncoded)
Decodes a RLP-encoded SmartContractDeploy byte array.- Parameters:
rlpEncoded
- RLP-encoded SmartContractDeploy byte array.- Returns:
- SmartContractDeploy
-
-