Blocks

Block related API's

Transaction Count by Block Number

Return the transaction count for a block.

GET https://scan.wemix.com/api/block/{blockNumber}/transaction-count

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix)

Example:

https://scan.wemix.com/api/block/86529662/transaction-count

Response

{
    "txsCount": 2,
    "internalTxsCount": 61
}

Block Number by Timestamp

Return the block number for a given timestamp.

GET https://scan.wemix.com/api/block/timestamp/{unixTimestamp}/block-number?chain=wemix&closest=before

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix)

closest

before | after

The closest available block to the given timestamp.

Example:

Response

Block And Block Rewards by Block Number

Returns the miner, block reward, and list of rewards.

GET https://scan.wemix.com/api/block/86532935/rewards

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix)

Example:

Response

Daily Average Block Size

Return the daily average block size for a given period (Max 15 days per request).

GET https://scan.wemix.com/api/block/daily-average-size?sort=desc&startDate={startDate}&endDate={endDate}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix)

startDate (required)

the starting date in yyyy-MM-dd format, eg. 2019-02-01

Start Date of the given period.

endDate (required)

the end date in yyyy-MM-dd format, eg. 2019-02-01

End Date of the given period.

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Daily Block Count & Rewards

Return the daily block count & rewards for a given period (Max 15 days per request).

GET https://scan.wemix.com/api/block/daily-count-and-rewards?startDate={startDate}&endDate={endDate}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix)

startDate (required)

the starting date in yyyy-MM-dd format, eg. 2019-02-01

Start Date of the given period.

endDate (required)

the end date in yyyy-MM-dd format, eg. 2019-02-01

End Date of the given period.

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Daily Block Rewards

Return the amount block rewards distributed to miners daily (Max 31 days per request).

GET https://scan.wemix.com/api/block/daily-block-rewards?startDate={startDate}&endDate={endDate}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix).

startDate (required)

the starting date in yyyy-MM-dd format, eg. 2019-02-01

Start Date of the given period.

endDate (required)

the end date in yyyy-MM-dd format, eg. 2019-02-01

End Date of the given period.

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Daily Average Block Time

Returns the daily average of time needed for a block to be successfully mined (Max 5 days per request).

GET https://scan.wemix.com/api/block/daily-average-block-time?startDate={startDate}&endDate={endDate}

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix).

startDate (required)

the starting date in yyyy-MM-dd format, eg. 2019-02-01

Start Date of the given period.

endDate (required)

the end date in yyyy-MM-dd format, eg. 2019-02-01

End Date of the given period.

sort

desc | asc

Order of the results. (default to asc)

Example:

Response

Last updated