sendVoteTx method

Future<String> sendVoteTx(
  1. String voterAddress,
  2. SecpPublicKey delegate,
  3. HydraPrivate hydraPrivate, {
  4. int? nonce,
})

Implementation

Future<String> sendVoteTx(
  String voterAddress,
  SecpPublicKey delegate,
  HydraPrivate hydraPrivate, {
  int? nonce,
}) async {
  return await sendVoteOrUnvote(
    voterAddress,
    hydraPrivate,
    (builder, senderPubKey, nonce) =>
        builder.vote(senderPubKey, delegate, nonce),
    nonce,
  );
}