Search in sources :

Example 1 with TransactionHashParams

use of org.aion.rpc.types.RPCTypes.TransactionHashParams in project aion by aionnetwork.

the class OpsRPCImplTest method testOps_getTransaction.

@Test
public void testOps_getTransaction() {
    Request request = new Request(idGenerator.generateID(), getTransactionMethod, TransactionHashParamsConverter.encode(new TransactionHashParams(transactionHash)), VersionType.Version2);
    assertNotNull(execute(request, OpsTransactionConverter::decode));
}
Also used : Request(org.aion.rpc.types.RPCTypes.Request) TransactionHashParams(org.aion.rpc.types.RPCTypes.TransactionHashParams) Test(org.junit.Test)

Aggregations

Request (org.aion.rpc.types.RPCTypes.Request)1 TransactionHashParams (org.aion.rpc.types.RPCTypes.TransactionHashParams)1 Test (org.junit.Test)1