Blocks

Block related API's

Transaction Count by Block Number

Return the transaction count for a block.

GET http://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 http://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:

http://scan.wemix.com/api/block/timestamp/1752767126/block-number?chain=wemix&closest=before

Response

{
    "blockNumber": 86532935,
    "timestamp": 1752767126
}

Block And Block Rewards by Block Number

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

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

Query Parameters

Name
Type
Description

chain

wemix | wemixTestnet

Chain (default to wemix)

Example:

http://scan.wemix.com/api/block/86532935/rewards

Response

{
    "blockNumber": "86532935",
    "timeStamp": "1752767126",
    "blockMiner": "0x9694681245e23a57dee904c8079874a39ddb8282",
    "blockReward": 0.5,
    "pmr": [
        {
            "miner": "0x5eff08c64992ea745c532ea776c1b61f3af0c2d3",
            "blockreward": "0.004725411702962392"
        },
        {
            "miner": "0x96dd6971125639c7fb336189d28d48049f0d2b6c",
            "blockreward": "0.004725411702962392"
        },
        {
            "miner": "0xb64319f3cc3a6bb03af005e30672468a1748bbc6",
            "blockreward": "0.004780812549313805"
        },
        {
            "miner": "0xb807f75497cb630d8a2bc49e58f21a5abd5567b7",
            "blockreward": "0.005045131341190346"
        },
        {
            "miner": "0x2e89f1eedb2e92d0553cf26b84ff2f346d5ee689",
            "blockreward": "0.004726105558424052"
        },
        {
            "miner": "0x3891c3a2ac7a6fdcae4f4d520387b75bd46b92cc",
            "blockreward": "0.004725474900589496"
        },
        ...
    ]
}

Daily Average Block Size

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

GET http://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:

http://scan.wemix.com/api/block/daily-average-size?startDate=2025-07-01&endDate=2025-07-15

Response

{
    "startDate": "2025-07-01",
    "endDate": "2025-07-30",
    "chain": "wemix",
    "sort": "asc",
    "data": [
        {
            "date": "2025-07-01",
            "unixTimeStamp": "1751328000",
            "averageSize": 4286.1454
        },
        {
            "date": "2025-07-02",
            "unixTimeStamp": "1751414400",
            "averageSize": 4243.4373
        },
        {
            "date": "2025-07-03",
            "unixTimeStamp": "1751500800",
            "averageSize": 4227.1457
        },
        {
            "date": "2025-07-04",
            "unixTimeStamp": "1751587200",
            "averageSize": 4231.1338
        },
        {
            "date": "2025-07-05",
            "unixTimeStamp": "1751673600",
            "averageSize": 4237.2038
        },
        ...
    ]
}

Daily Block Count & Rewards

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

GET http://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:

http://scan.wemix.com/api/block/daily-count-and-rewards?startDate=2025-07-01&endDate=2025-07-15

Response

{
    "startDate": "2025-07-01",
    "endDate": "2025-07-30",
    "chain": "wemix",
    "sort": "asc",
    "data": [
        {
            "date": "2025-07-01",
            "unixTimeStamp": "1751328000",
            "blockCount": 86401,
            "blockRewards_Wemix": "746.0176103710764"
        },
        {
            "date": "2025-07-02",
            "unixTimeStamp": "1751414400",
            "blockCount": 86401,
            "blockRewards_Wemix": "528.2960501595014"
        },
        {
            "date": "2025-07-03",
            "unixTimeStamp": "1751500800",
            "blockCount": 86401,
            "blockRewards_Wemix": "469.8519309573148"
        },
        {
            "date": "2025-07-04",
            "unixTimeStamp": "1751587200",
            "blockCount": 86401,
            "blockRewards_Wemix": "474.33287558595384"
        },
        {
            "date": "2025-07-05",
            "unixTimeStamp": "1751673600",
            "blockCount": 86401,
            "blockRewards_Wemix": "495.90604054210576"
        },
        ...
    ]
}

Daily Block Rewards

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

GET http://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:

http://scan.wemix.com/api/block/daily-block-rewards?startDate=2025-07-01&endDate=2025-07-30

Response

{
    "startDate": "2025-07-01",
    "endDate": "2025-07-30",
    "chain": "wemix",
    "sort": "asc",
    "data": [
        {
            "date": "2025-07-01",
            "unixTimeStamp": 1751328000,
            "totalRewards": 43946.51761037387
        },
        {
            "date": "2025-07-02",
            "unixTimeStamp": 1751414400,
            "totalRewards": 43728.79605016101
        },
        ...
        {
            "date": "2025-07-29",
            "unixTimeStamp": 1753747200,
            "totalRewards": 44079.26291980955
        },
        {
            "date": "2025-07-30",
            "unixTimeStamp": 1753833600,
            "totalRewards": 43908.16974837947
        }
    ]
}

Daily Average Block Time

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

GET http://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:

http://scan.wemix.com/api/block/daily-average-block-time?startDate=2025-03-25&endDate=2025-03-30

Response

{
    "data": [
        {
            "UTCDate": "2025-03-25",
            "unixTimeStamp": "1742860800",
            "blockTime_sec": "1.01"
        },
        {
            "UTCDate": "2025-03-26",
            "unixTimeStamp": "1742947200",
            "blockTime_sec": "1.08"
        },
        {
            "UTCDate": "2025-03-27",
            "unixTimeStamp": "1743033600",
            "blockTime_sec": "1.17"
        },
        {
            "UTCDate": "2025-03-28",
            "unixTimeStamp": "1743120000",
            "blockTime_sec": "1.03"
        },
        {
            "UTCDate": "2025-03-29",
            "unixTimeStamp": "1743206400",
            "blockTime_sec": "1.01"
        },
        {
            "UTCDate": "2025-03-30",
            "unixTimeStamp": "1743292800",
            "blockTime_sec": "1.01"
        }
    ]
}

Last updated