api/v2/rawblock - Bitcoin Cash
Example code for the api/v2/rawblockREST method. Complete guide on how to use the api/v2/rawblock REST method in the GetBlock Web3 documentation.
Parameters
Parameter
Type
Location
Required
Description
Request
curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/api/v2/rawblock/0000000000000000023a561e1ea370153aac5d1504726d1a039032831c05fcfc'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/api/v2/rawblock/0000000000000000023a561e1ea370153aac5d1504726d1a039032831c05fcfc'
);
console.log(await response.json());import requests
response = requests.get('https://go.getblock.io/<ACCESS-TOKEN>/api/v2/rawblock/0000000000000000023a561e1ea370153aac5d1504726d1a039032831c05fcfc')
print(response.json())Response
{
"hex": "00000020dd93f73898f4cde11a47d7a06244c5eed1f52d3718a3d3010000000000000000..."
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Was this helpful?