Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

list_proposal_votes

list_proposal_votes(**kwargs)

Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.

Applies only to Hyperledger Fabric.

See also: AWS API Documentation

Request Syntax

response = client.list_proposal_votes(
    NetworkId='string',
    ProposalId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • NetworkId (string) --

    [REQUIRED]

    The unique identifier of the network.

  • ProposalId (string) --

    [REQUIRED]

    The unique identifier of the proposal.

  • MaxResults (integer) -- The maximum number of votes to return.
  • NextToken (string) -- The pagination token that indicates the next set of results to retrieve.
Return type

dict

Returns

Response Syntax

{
    'ProposalVotes': [
        {
            'Vote': 'YES'|'NO',
            'MemberName': 'string',
            'MemberId': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ProposalVotes (list) --

      The list of votes.

      • (dict) --

        Properties of an individual vote that a member cast for a proposal.

        Applies only to Hyperledger Fabric.

        • Vote (string) --

          The vote value, either YES or NO .

        • MemberName (string) --

          The name of the member that cast the vote.

        • MemberId (string) --

          The unique identifier of the member that cast the vote.

    • NextToken (string) --

      The pagination token that indicates the next set of results to retrieve.

Exceptions

  • ManagedBlockchain.Client.exceptions.InvalidRequestException
  • ManagedBlockchain.Client.exceptions.AccessDeniedException
  • ManagedBlockchain.Client.exceptions.ThrottlingException
  • ManagedBlockchain.Client.exceptions.InternalServiceErrorException