dash-platform-sdk
    Preparing search index...

    Class ContestedResourcesController

    Contested Resources controller for requesting information about contested resources

    Index

    Methods

    • Retrieves an info about vote state for contested resource

      Parameters

      • contract: DataContractWASM

        {DataContractWASM} - instance of contract with contested resource

      • documentTypeName: string

        {string} - document type name of contested resource

      • indexName: string

        {string} - index name of contested resource

      • indexValuesBytes: Uint8Array<ArrayBufferLike>[]

        {Uint8Array[]} - Array of contested values in bytes

      • resultType: ContestedStateResultType

        {ContestedResourceVoteState} - enum for result info

      • allowIncludeLockedAndAbstainingVoteTally: boolean

        {boolean}

      • OptionalstartAtIdentifierInfo: GetContestedResourceVoteStateRequest_GetContestedResourceVoteStateRequestV0_StartAtIdentifierInfo

        {StartAtIdentifierInfo=}

      • Optionalcount: number

        {number=}

      Returns Promise<ContestedResourceVoteState>