# Function buildFinalResult

- buildFinalResult(
  state: ProposalState,
  proposalId: string,
  outcome: VotingOutcome,
  config: ConsensusEngineConfig,
  ): ConsensusResult

  Build a final result for a closed proposal.

  #### Parameters

  - state: ProposalState
  - proposalId: string
  - outcome: VotingOutcome
  - config: ConsensusEngineConfig

  #### Returns ConsensusResult

  - Defined in packages/nexus-agents/src/consensus/result-builder.ts:45