GET api/Shares/{id}?count={count}

Get latest 100 shares of a worker

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

worker@address

string

Required

count

number of shares to return (default=100, max=1000)

integer

Default value is 20

Body Parameters

None.

Response Information

Resource Description

Collection of Share
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Time

date

None.

Username

string

None.

RejectReason

string

None.

Difficulty

integer

None.

UpstreamResult

string

None.

UpstreamRejectReason

string

None.

CoinType

string

None.

NetworkDifficulty

decimal number

None.

MinerType

string

None.

Paid

boolean

None.

Price

decimal number

None.

BlockId

globally unique identifier

None.

Processed

boolean

None.

Price2

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "0b89313c-9bad-47f4-8ecd-7a5985c89773",
    "Time": "2017-07-26T08:23:52.2843098+00:00",
    "Username": "sample string 3",
    "RejectReason": "sample string 4",
    "Difficulty": 5,
    "UpstreamResult": "sample string 6",
    "UpstreamRejectReason": "sample string 7",
    "CoinType": "sample string 8",
    "NetworkDifficulty": 9.0,
    "MinerType": "sample string 10",
    "Paid": true,
    "Price": 12.0,
    "BlockId": "bc78b756-c549-457c-a6c1-d7f51487cee9",
    "Processed": true,
    "Price2": 15.0
  },
  {
    "Id": "0b89313c-9bad-47f4-8ecd-7a5985c89773",
    "Time": "2017-07-26T08:23:52.2843098+00:00",
    "Username": "sample string 3",
    "RejectReason": "sample string 4",
    "Difficulty": 5,
    "UpstreamResult": "sample string 6",
    "UpstreamRejectReason": "sample string 7",
    "CoinType": "sample string 8",
    "NetworkDifficulty": 9.0,
    "MinerType": "sample string 10",
    "Paid": true,
    "Price": 12.0,
    "BlockId": "bc78b756-c549-457c-a6c1-d7f51487cee9",
    "Processed": true,
    "Price2": 15.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfShare xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SudoDB">
  <Share>
    <BlockId>bc78b756-c549-457c-a6c1-d7f51487cee9</BlockId>
    <CoinType>sample string 8</CoinType>
    <Difficulty>5</Difficulty>
    <Id>0b89313c-9bad-47f4-8ecd-7a5985c89773</Id>
    <MinerType>sample string 10</MinerType>
    <NetworkDifficulty>9</NetworkDifficulty>
    <Paid>true</Paid>
    <Price>12</Price>
    <Price2>15</Price2>
    <Processed>true</Processed>
    <RejectReason>sample string 4</RejectReason>
    <Time xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2017-07-26T08:23:52.2843098Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </Time>
    <UpstreamRejectReason>sample string 7</UpstreamRejectReason>
    <UpstreamResult>sample string 6</UpstreamResult>
    <Username>sample string 3</Username>
  </Share>
  <Share>
    <BlockId>bc78b756-c549-457c-a6c1-d7f51487cee9</BlockId>
    <CoinType>sample string 8</CoinType>
    <Difficulty>5</Difficulty>
    <Id>0b89313c-9bad-47f4-8ecd-7a5985c89773</Id>
    <MinerType>sample string 10</MinerType>
    <NetworkDifficulty>9</NetworkDifficulty>
    <Paid>true</Paid>
    <Price>12</Price>
    <Price2>15</Price2>
    <Processed>true</Processed>
    <RejectReason>sample string 4</RejectReason>
    <Time xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2017-07-26T08:23:52.2843098Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </Time>
    <UpstreamRejectReason>sample string 7</UpstreamRejectReason>
    <UpstreamResult>sample string 6</UpstreamResult>
    <Username>sample string 3</Username>
  </Share>
</ArrayOfShare>