use of com.github.rosklyar.client.mosaic.domain.Levy in project nem-library by rosklyar.
the class TransactionClientTest method createMosaic.
@Test
void createMosaic() {
Levy levy = Levy.builder().fee(1000).mosaicId(new MosaicId("library", "testcoin")).recipient("TCHCCSUCSBE2OSYXLISPYGOVLOVZYCYYI5V73K4Y").type(ABSOLUTE.type).build();
MosaicProperties mosaicProperties = MosaicProperties.builder().divisibility(6).initialSupply(1000000).supplyMutable(true).transferable(true).build();
NemAnnounceResult nemAnnounceResult = transactionClient.createMosaic("fcf0dadc958510dca65651df81aa22c82b2bfe5b29bf8dfb92816bc5f1f11a54", new MosaicId("library", "somecoin1"), "test mosaic", mosaicProperties, levy, 3600);
assertEquals(1, nemAnnounceResult.code);
}
Aggregations