@Test public void testVoteTransaction() { final AergoKey aergoKey = new AergoKeyGenerator().create(); final RawTransaction voteTransaction = RawTransaction.newVoteTxBuilder() .chainIdHash(ChainIdHash.of(BytesValue.EMPTY)) .from(aergoKey.getAddress()) .voteId("voteBP") .candidates(asList("123", "456")) .nonce(1L) .build(); assertNotNull(voteTransaction); }
@ApiAudience.Public public static VoteTransaction.WithNothing newVoteTxBuilder() { return new VoteTransactionBuilder(); }
RawTransaction { @ApiAudience.Public public static VoteTransaction.WithNothing newVoteTxBuilder() { return new VoteTransactionBuilder(); } }
RawTransaction { @ApiAudience.Public public static VoteTransaction.WithNothing newVoteTxBuilder() { return new VoteTransactionBuilder(); }  }
RawTransaction { @ApiAudience.Public public static VoteTransaction.WithNothing newVoteTxBuilder() { return new VoteTransactionBuilder(); }  @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); }
RawTransaction { @ApiAudience.Public public static VoteTransaction.WithNothing newVoteTxBuilder() { return new VoteTransactionBuilder(); }  @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);  }