public class UpdateNameTransactionBuilder extends java.lang.Object implements UpdateNameTransaction.WithNothing, UpdateNameTransaction.WithChainIdHash, UpdateNameTransaction.WithChainIdHashAndSender, UpdateNameTransaction.WithChainIdHashAndSenderAndNonce, UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName, UpdateNameTransaction.WithReady
Modifier and Type | Field and Description |
---|---|
protected PlainTransactionBuilder |
delegate |
protected Name |
name |
protected AccountAddress |
newOwner |
Constructor and Description |
---|
UpdateNameTransactionBuilder() |
Modifier and Type | Method and Description |
---|---|
RawTransaction |
build()
Build raw transaction with provided values.
|
UpdateNameTransaction.WithChainIdHash |
chainIdHash(ChainIdHash chainIdHash)
Accept
chainIdHash to be used in transaction. |
UpdateNameTransaction.WithChainIdHashAndSender |
from(Identity sender)
Accept transaction sender.
|
UpdateNameTransaction.WithChainIdHashAndSender |
from(java.lang.String sender)
Accept transaction sender as an account address or an name.
|
UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName |
name(Name name)
Accept name which is supposed to be owned by other account.
|
UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName |
name(java.lang.String name)
Accept name which is supposed to be owned by other account.
|
UpdateNameTransaction.WithReady |
newOwner(AccountAddress newOwner)
Accept new owner of name.
|
UpdateNameTransaction.WithChainIdHashAndSenderAndNonce |
nonce(long nonce)
Accept
nonce to be used in transaction. |
protected Name name
protected AccountAddress newOwner
protected final PlainTransactionBuilder delegate
public UpdateNameTransaction.WithChainIdHash chainIdHash(ChainIdHash chainIdHash)
NeedChainIdHash
chainIdHash
to be used in transaction.chainIdHash
in interface NeedChainIdHash<UpdateNameTransaction.WithChainIdHash>
chainIdHash
- a chain id hashpublic UpdateNameTransaction.WithChainIdHashAndSender from(java.lang.String sender)
NeedSender
from
in interface NeedSender<UpdateNameTransaction.WithChainIdHashAndSender>
sender
- a senderpublic UpdateNameTransaction.WithChainIdHashAndSender from(Identity sender)
NeedSender
from
in interface NeedSender<UpdateNameTransaction.WithChainIdHashAndSender>
sender
- a senderpublic UpdateNameTransaction.WithChainIdHashAndSenderAndNonce nonce(long nonce)
NeedNonce
nonce
to be used in transaction.nonce
in interface NeedNonce<UpdateNameTransaction.WithChainIdHashAndSenderAndNonce>
nonce
- a noncepublic UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName name(java.lang.String name)
UpdateNameTransaction.WithChainIdHashAndSenderAndNonce
name
in interface UpdateNameTransaction.WithChainIdHashAndSenderAndNonce
name
- an name which is supposed to be owned by other accountpublic UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName name(Name name)
UpdateNameTransaction.WithChainIdHashAndSenderAndNonce
name
in interface UpdateNameTransaction.WithChainIdHashAndSenderAndNonce
name
- an name which is supposed to be owned by other accountpublic UpdateNameTransaction.WithReady newOwner(AccountAddress newOwner)
UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName
newOwner
in interface UpdateNameTransaction.WithChainIdHashAndSenderAndNonceAndName
newOwner
- an new owner of namepublic RawTransaction build()
BuildReady
build
in interface BuildReady