View Source Dpos.Tx.Vote (DPoS v0.4.0)

A transaction to vote or unvote delegates.

Example:

Tx.Vote
|> Tx.build(%{fee: 100000000, recipient: "16313739661670634666L"})
|> Tx.Vote.vote("01389197bbaf1afb0acd47bbfeabb34aca80fb372a8f694a1c0716b3398db746")
|> Tx.sign(wallet)
|> Tx.normalize()

Summary

Functions

Adds the delegate's public key to unvote.

Adds the delegate's public key to vote.

Functions

@spec unvote(Dpos.Tx.t(), String.t()) :: Dpos.Tx.t()

Adds the delegate's public key to unvote.

@spec vote(Dpos.Tx.t(), String.t()) :: Dpos.Tx.t()

Adds the delegate's public key to vote.