Class MosaicAddressRestrictionTransactionV1Descriptor
java.lang.Object
org.symbol.sdk.symbol.descriptors.MosaicAddressRestrictionTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
public final class MosaicAddressRestrictionTransactionV1Descriptor
extends Object
implements SymbolTransactionDescriptor
- MosaicAddressRestrictionTransactionV1Descriptor
- Type safe descriptor used to generate a descriptor map for MosaicAddressRestrictionTransactionV1Descriptor. Set address specific rules to transfer a restrictable mosaic (V1, latest).
-
Constructor Summary
ConstructorsConstructorDescriptionMosaicAddressRestrictionTransactionV1Descriptor(String mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, String targetAddress) Creates a descriptor for MosaicAddressRestrictionTransactionV1 from string-form values.MosaicAddressRestrictionTransactionV1Descriptor(UnresolvedMosaicId mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, Address targetAddress) Creates a descriptor for MosaicAddressRestrictionTransactionV1. -
Method Summary
-
Constructor Details
-
MosaicAddressRestrictionTransactionV1Descriptor
public MosaicAddressRestrictionTransactionV1Descriptor(UnresolvedMosaicId mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, Address targetAddress) Creates a descriptor for MosaicAddressRestrictionTransactionV1.- Parameters:
mosaicId- Identifier of the mosaic to which the restriction applies.restrictionKey- Restriction key.previousRestrictionValue- Previous restriction value. Set `previousRestrictionValue` to `FFFFFFFFFFFFFFFF` if the target address does not have a previous restriction value for this mosaic id and restriction key.newRestrictionValue- New restriction value.targetAddress- Address being restricted.
-
MosaicAddressRestrictionTransactionV1Descriptor
public MosaicAddressRestrictionTransactionV1Descriptor(String mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, String targetAddress) Creates a descriptor for MosaicAddressRestrictionTransactionV1 from string-form values.- Parameters:
mosaicId- Identifier of the mosaic to which the restriction applies.restrictionKey- Restriction key.previousRestrictionValue- Previous restriction value. Set `previousRestrictionValue` to `FFFFFFFFFFFFFFFF` if the target address does not have a previous restriction value for this mosaic id and restriction key.newRestrictionValue- New restriction value.targetAddress- Address being restricted.
-
-
Method Details
-
toMap
- MosaicAddressRestrictionTransactionV1Descriptor.toMap
- Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
- Descriptor map that can be passed to a transaction factory.
-