network/list - Cardano
Example code for the network/list JSON-RPC method. Complete guide on how to use network/list JSON-RPC in GetBlock Web3 documentation.
Parameters
Field
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/network/list' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {}
}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/network/list',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"metadata": {}})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/network/list',
headers={'Content-Type': 'application/json'},
json={"metadata": {}}
)
print(response.json())Response
{
"network_identifiers": [
{
"blockchain": "cardano",
"network": "mainnet"
}
]
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
Was this helpful?