Skip to main content
GET
Get Block Transaction Counts by Block Number
Ethereum

Authorizations

apikey
string
query
required

Enter your Etherscan API key, or set one up if you don't have one.

Query Parameters

chainid
string
required

Chain ID to query, eg 1 for Ethereum from our supported chains.

module
string
default:block
required

Set to block for this endpoint.

action
string
default:getblocktxnscount
required

Set to getblocktxnscount for this endpoint.

blockno
integer
required

Block number to check transaction counts for.

Response

200 - application/json

Successful response

status
string

1 if the request returned data, 0 otherwise. A status of 0 can indicate an error or a valid request that returned no records.

message
string

OK on success, otherwise an error description such as NOTOK. See common error messages.

result
object