/walletsolidity/gettransactioncountbyblocknum - Tron
Example code for the gettransactioncountbyblocknum Solidity API method. Complete guide on how to use gettransactioncountbyblocknum Solidity API method in GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/gettransactioncountbyblocknum' \
--header 'Content-Type: application/json' \
--data-raw '{
"num": 68000000
}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/gettransactioncountbyblocknum',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"num": 68000000})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/gettransactioncountbyblocknum',
headers={'Content-Type': 'application/json'},
json={"num": 68000000}
)
print(response.json())Response
{
"count": 312
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Previous/walletsolidity/gettransactionbyid - TronNext/walletsolidity/gettransactioninfobyblocknum - Tron
Was this helpful?