RawTransaction { @ApiAudience.Public public static InvokeContractTransaction.WithNothing newInvokeContractBuilder() { return new InvokeContractTransactionBuilder(); }  @ApiAudience.Public static PlainTransaction.WithNothing newBuilder(); @ApiAudience.Public static PlainTransaction.WithChainIdHash newBuilder(final ChainIdHash chainIdHash); @ApiAudience.Public static DeployContractTransaction.WithNothing newDeployContractBuilder(); @ApiAudience.Public static ReDeployContractTransaction.WithNothing newReDeployContractBuilder(); @ApiAudience.Public static InvokeContractTransaction.WithNothing newInvokeContractBuilder(); @ApiAudience.Public static CreateNameTransaction.WithNothing newCreateNameTxBuilder(); @ApiAudience.Public static UpdateNameTransaction.WithNothing newUpdateNameTxBuilder(); @ApiAudience.Public static StakeTransaction.WithNothing newStakeTxBuilder(); @ApiAudience.Public static UnstakeTransaction.WithNothing newUnstakeTxBuilder(); @ApiAudience.Public static VoteTransaction.WithNothing newVoteTxBuilder(); RawTransaction withChainIdHash(final ChainIdHash chainIdHash); RawTransaction withNonce(final long nonce); TxHash calculateHash(); TxHash calculateHash(final Signature signature);  }
@Test public void testInvokeContractTransaction() { final AergoKey aergoKey = new AergoKeyGenerator().create(); final ContractInterface contractInterface = dummyContractInterface(); final ContractInvocation execute = contractInterface.newInvocationBuilder() .function("set") .args("key", "123") .delegateFee(false) .build(); final RawTransaction executeTransaction = RawTransaction.newInvokeContractBuilder() .chainIdHash(ChainIdHash.of(BytesValue.EMPTY)) .from(aergoKey.getAddress()) .invocation(execute) .nonce(1L) .fee(Fee.ZERO) .build(); assertNotNull(executeTransaction); }