Constructor and Description |
---|
MosaicInfo(java.lang.String recordId,
int version,
MosaicId mosaicId,
java.math.BigInteger supply,
java.math.BigInteger startHeight,
Address ownerAddress,
long revision,
MosaicFlags mosaicFlags,
int divisibility,
java.math.BigInteger duration) |
Modifier and Type | Method and Description |
---|---|
int |
getDivisibility()
Returns the mosaic divisibility
|
java.math.BigInteger |
getDuration()
Return the number of blocks from height it will be active
|
MosaicFlags |
getMosaicFlags() |
MosaicId |
getMosaicId()
Returns the mosaic id
|
Address |
getOwnerAddress()
Returns the mosaic account address
|
java.util.Optional<java.lang.String> |
getRecordId()
Returns database record id of the entity.
|
long |
getRevision()
Returns the revision number
|
java.math.BigInteger |
getStartHeight()
Returns the block height it was created
|
java.math.BigInteger |
getSupply()
Returns the total mosaic supply
|
int |
getVersion()
Returns the state version
|
boolean |
isRestrictable()
Returns tue if the mosaic is restrictable between non-owner accounts
|
boolean |
isSupplyMutable()
Returns true if the supply is mutable
|
boolean |
isTransferable()
Returns tue if the mosaic is transferable between non-owner accounts
|
byte[] |
serialize() |
Currency |
toCurrency() |
public MosaicInfo(java.lang.String recordId, int version, MosaicId mosaicId, java.math.BigInteger supply, java.math.BigInteger startHeight, Address ownerAddress, long revision, MosaicFlags mosaicFlags, int divisibility, java.math.BigInteger duration)
public MosaicId getMosaicId()
public java.math.BigInteger getSupply()
public java.math.BigInteger getStartHeight()
public Address getOwnerAddress()
public long getRevision()
public boolean isSupplyMutable()
public boolean isTransferable()
public boolean isRestrictable()
public int getDivisibility()
public java.math.BigInteger getDuration()
public int getVersion()
public MosaicFlags getMosaicFlags()
public java.util.Optional<java.lang.String> getRecordId()
Stored
getRecordId
in interface Stored
public Currency toCurrency()
public byte[] serialize()