Search in sources :

Example 1 with Transaction

use of io.nem.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.

the class TransactionHttpTest method getTransaction.

@Test
public void getTransaction() throws ExecutionException, InterruptedException {
    Transaction transaction = transactionHttp.getTransaction(transactionHash).toFuture().get();
    assertEquals(TransactionType.TRANSFER.getValue(), transaction.getType().getValue());
    assertEquals(transactionHash, transaction.getTransactionInfo().get().getHash().get());
}
Also used : Transaction(io.nem.sdk.model.transaction.Transaction) Test(org.junit.Test)

Aggregations

Transaction (io.nem.sdk.model.transaction.Transaction)1 Test (org.junit.Test)1