Package org.symbol.sdk.symbol
Interface BaseTransaction
- All Superinterfaces:
Serializer
- All Known Implementing Classes:
AccountAddressRestrictionTransactionV1,AccountKeyLinkTransactionV1,AccountMetadataTransactionV1,AccountMosaicRestrictionTransactionV1,AccountOperationRestrictionTransactionV1,AddressAliasTransactionV1,AggregateBondedTransactionV1,AggregateBondedTransactionV2,AggregateBondedTransactionV3,AggregateCompleteTransactionV1,AggregateCompleteTransactionV2,AggregateCompleteTransactionV3,EmbeddedAccountAddressRestrictionTransactionV1,EmbeddedAccountKeyLinkTransactionV1,EmbeddedAccountMetadataTransactionV1,EmbeddedAccountMosaicRestrictionTransactionV1,EmbeddedAccountOperationRestrictionTransactionV1,EmbeddedAddressAliasTransactionV1,EmbeddedHashLockTransactionV1,EmbeddedMosaicAddressRestrictionTransactionV1,EmbeddedMosaicAliasTransactionV1,EmbeddedMosaicDefinitionTransactionV1,EmbeddedMosaicGlobalRestrictionTransactionV1,EmbeddedMosaicMetadataTransactionV1,EmbeddedMosaicSupplyChangeTransactionV1,EmbeddedMosaicSupplyRevocationTransactionV1,EmbeddedMultisigAccountModificationTransactionV1,EmbeddedNamespaceMetadataTransactionV1,EmbeddedNamespaceRegistrationTransactionV1,EmbeddedNodeKeyLinkTransactionV1,EmbeddedSecretLockTransactionV1,EmbeddedSecretProofTransactionV1,EmbeddedTransaction,EmbeddedTransferTransactionV1,EmbeddedVotingKeyLinkTransactionV1,EmbeddedVrfKeyLinkTransactionV1,HashLockTransactionV1,MosaicAddressRestrictionTransactionV1,MosaicAliasTransactionV1,MosaicDefinitionTransactionV1,MosaicGlobalRestrictionTransactionV1,MosaicMetadataTransactionV1,MosaicSupplyChangeTransactionV1,MosaicSupplyRevocationTransactionV1,MultisigAccountModificationTransactionV1,NamespaceMetadataTransactionV1,NamespaceRegistrationTransactionV1,NodeKeyLinkTransactionV1,SecretLockTransactionV1,SecretProofTransactionV1,Transaction,TransferTransactionV1,VotingKeyLinkTransactionV1,VrfKeyLinkTransactionV1
- BaseTransaction
- Common transaction surface implemented by the generated
TransactionandEmbeddedTransactionroots — the transaction-only layer aboveCatbufferType, consumed by the transaction factory and its post-processors instead of the all-types CatbufferType. Not sealed only because the implementing roots live in the generatedmodelspackage (an unnamed-module sealed hierarchy cannot span packages); no other type should implement this.
-
Method Summary
Modifier and TypeMethodDescriptionReads a named field.Gets the transaction network.Gets the signer public key.getType()Gets the transaction type.intGets the transaction version.voidSets a named field.voidsort()Sorts the collections of this object so that it can be serialized canonically.Methods inherited from interface org.symbol.sdk.Serializer
serialize, size
-
Method Details
-
getType
TransactionType getType()- BaseTransaction.getType
- Gets the transaction type.
- Returns:
- Transaction type.
-
getVersion
int getVersion()- BaseTransaction.getVersion
- Gets the transaction version.
- Returns:
- Transaction version.
-
getNetwork
NetworkType getNetwork()- BaseTransaction.getNetwork
- Gets the transaction network.
- Returns:
- Transaction network.
-
getSignerPublicKey
PublicKey getSignerPublicKey()- BaseTransaction.getSignerPublicKey
- Gets the signer public key.
- Returns:
- Signer public key.
-
getField
- BaseTransaction.getField
- Reads a named field. Used by the descriptor pipeline.
- Parameters:
name- Field name.- Returns:
- Field value.
-
setField
- BaseTransaction.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
sort
void sort()- BaseTransaction.sort
- Sorts the collections of this object so that it can be serialized canonically.
-