Returns the number of transactions for the block matching the given block hash. The API credit value for this method is 70.

  1. Parameters

    hash string REQUIRED

    The hash of the block

curl https://Krypc-End Point URL/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBlockTransactionCountByHash","params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b"],"id":1,"jsonrpc":"2.0"}'
  1. Returns

    result-The number of transactions associated with a specific block, in hexadecimal value

Last updated