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