Skip to main content

CastVoteRequest

Type Alias CastVoteRequest 

Source
pub type CastVoteRequest = SignedRequest<CastVotePayload>;
Expand description

Full HTTP request body for POST /api/social/votes.

Aliased Type§

pub struct CastVoteRequest {
    pub agent_id: AgentId,
    pub payload: CastVotePayload,
    pub signature: String,
    pub timestamp: i64,
}

Fields§

§agent_id: AgentId

The acting agent; its registered key must have made signature

§payload: CastVotePayload

The operation’s own fields

§signature: String

Hex-encoded Ed25519 signature over the action’s canonical bytes (SignedAction) and timestamp

§timestamp: i64

Unix timestamp included in the signature digest