public class DeployContractTransactionBuilder extends java.lang.Object implements DeployContractTransaction.WithNothing, DeployContractTransaction.WithChainIdHash, DeployContractTransaction.WithChainIdHashAndSender, DeployContractTransaction.WithChainIdHashAndSenderAndNonce, DeployContractTransaction.WithReady
Modifier and Type | Field and Description |
---|---|
protected ContractDefinition |
contractDefinition |
protected PlainTransactionBuilder |
delegate |
Constructor and Description |
---|
DeployContractTransactionBuilder() |
Modifier and Type | Method and Description |
---|---|
RawTransaction |
build()
Build raw transaction with provided values.
|
DeployContractTransaction.WithChainIdHash |
chainIdHash(ChainIdHash chainIdHash)
Accept
chainIdHash to be used in transaction. |
DeployContractTransaction.WithReady |
definition(ContractDefinition contractDefinition)
Accept contract definition.
|
DeployContractTransaction.WithReady |
fee(Fee fee)
Accept
fee to be used in transaction. |
DeployContractTransaction.WithChainIdHashAndSender |
from(Identity sender)
Accept transaction sender.
|
DeployContractTransaction.WithChainIdHashAndSender |
from(java.lang.String sender)
Accept transaction sender as an account address or an name.
|
DeployContractTransaction.WithChainIdHashAndSenderAndNonce |
nonce(long nonce)
Accept
nonce to be used in transaction. |
protected ContractDefinition contractDefinition
protected final PlainTransactionBuilder delegate
public DeployContractTransaction.WithChainIdHash chainIdHash(ChainIdHash chainIdHash)
NeedChainIdHash
chainIdHash
to be used in transaction.chainIdHash
in interface NeedChainIdHash<DeployContractTransaction.WithChainIdHash>
chainIdHash
- a chain id hashpublic DeployContractTransaction.WithChainIdHashAndSender from(java.lang.String sender)
NeedSender
from
in interface NeedSender<DeployContractTransaction.WithChainIdHashAndSender>
sender
- a senderpublic DeployContractTransaction.WithChainIdHashAndSender from(Identity sender)
NeedSender
from
in interface NeedSender<DeployContractTransaction.WithChainIdHashAndSender>
sender
- a senderpublic DeployContractTransaction.WithChainIdHashAndSenderAndNonce nonce(long nonce)
NeedNonce
nonce
to be used in transaction.nonce
in interface NeedNonce<DeployContractTransaction.WithChainIdHashAndSenderAndNonce>
nonce
- a noncepublic DeployContractTransaction.WithReady definition(ContractDefinition contractDefinition)
DeployContractTransaction.WithChainIdHashAndSenderAndNonce
definition
in interface DeployContractTransaction.WithChainIdHashAndSenderAndNonce
contractDefinition
- a contract definitionpublic DeployContractTransaction.WithReady fee(Fee fee)
NeedFee
fee
to be used in transaction.fee
in interface NeedFee<DeployContractTransaction.WithReady>
fee
- a feepublic RawTransaction build()
BuildReady
build
in interface BuildReady