Help Center/
Web3 Node Engine Service/
Developer Guide/
Polygon PoS/
Polygon PoS APIs/
Shared Edition/
Ethereum JSON-RPC APIs/
eth_getBlockTransactionCountByHash
Updated on 2024-11-14 GMT+08:00
eth_getBlockTransactionCountByHash
Introduction
This API returns the number of transactions for the block by block hash. It consumes 13 CUs.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
Block hash |
String |
The hash of a block. |
Return Value
The number of transactions associated with a specific block, in hexadecimal value.
Request
curl https://your-http-endpoint/v1/<API-KEY> \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getBlockTransactionCountByHash","params":["0x81e807e7a6031d9f103eeee2a2edc5994c3432ee1e3227c66ff78eef30ea1dec"],"id":1,"jsonrpc":"2.0"}'
Parent topic: Ethereum JSON-RPC APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot