curl --request POST \
--url https://api.chainstack.com/v1/networks/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"project": "<string>",
"protocol": "ethereum",
"configuration": {
"network": "ethereum-mainnet"
},
"nodes": [
{
"name": "<string>",
"type": "shared",
"provider": "aws",
"region": "asia-southeast1",
"role": "peer",
"configuration": {
"archive": true
},
"network": "<string>",
"details": {},
"creator": {
"organization": {}
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"creator": {
"organization": {}
},
"created_at": "2023-11-07T05:31:56Z"
}
'{
"id": "<string>",
"name": "<string>",
"project": "<string>",
"protocol": "ethereum",
"details": {},
"status": "pending",
"creator": {
"id": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"organization": {
"id": "<string>",
"name": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"configuration": {
"network": "ethereum-mainnet"
},
"nodes": [
{
"id": "<string>",
"name": "<string>",
"network": "<string>",
"organization": "<string>",
"type": "shared",
"provider": "aws",
"region": "asia-southeast1",
"details": {
"mode": "full",
"version": "<string>",
"api_namespaces": [
"<string>"
],
"https_endpoint": "<string>",
"wss_endpoint": "<string>",
"beacon_endpoint": "<string>",
"graphql_endpoint": "<string>",
"auth_username": "<string>",
"auth_password": "<string>",
"auth_key": "<string>"
},
"status": "pending",
"creator": {
"id": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"organization": {
"id": "<string>",
"name": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"role": "peer",
"configuration": {
"archive": true
}
}
]
}Create a network.
curl --request POST \
--url https://api.chainstack.com/v1/networks/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"project": "<string>",
"protocol": "ethereum",
"configuration": {
"network": "ethereum-mainnet"
},
"nodes": [
{
"name": "<string>",
"type": "shared",
"provider": "aws",
"region": "asia-southeast1",
"role": "peer",
"configuration": {
"archive": true
},
"network": "<string>",
"details": {},
"creator": {
"organization": {}
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"creator": {
"organization": {}
},
"created_at": "2023-11-07T05:31:56Z"
}
'{
"id": "<string>",
"name": "<string>",
"project": "<string>",
"protocol": "ethereum",
"details": {},
"status": "pending",
"creator": {
"id": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"organization": {
"id": "<string>",
"name": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"configuration": {
"network": "ethereum-mainnet"
},
"nodes": [
{
"id": "<string>",
"name": "<string>",
"network": "<string>",
"organization": "<string>",
"type": "shared",
"provider": "aws",
"region": "asia-southeast1",
"details": {
"mode": "full",
"version": "<string>",
"api_namespaces": [
"<string>"
],
"https_endpoint": "<string>",
"wss_endpoint": "<string>",
"beacon_endpoint": "<string>",
"graphql_endpoint": "<string>",
"auth_username": "<string>",
"auth_password": "<string>",
"auth_key": "<string>"
},
"status": "pending",
"creator": {
"id": "<string>",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"organization": {
"id": "<string>",
"name": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"role": "peer",
"configuration": {
"archive": true
}
}
]
}Chainstack API uses API keys to authenticate requests. You can view and manage your API keys in the platform UI.
Your API keys carry many privileges, so be sure to keep them secure!
Provide your API key as the Authorization header. The value of the header consists of Bearer prefix and secret key generated through the platform UI.
curl -X GET 'https://api.chainstack.com/v1/organization/' \
--header 'Authorization: Bearer FX7CWlLg.FMpAO8cgCX2N7s41EncRru2nb5CmTZUt'All API requests must be made over HTTPS.
Name of the network.
consortium networks.public chain networks.ID of the network's project.
Protocol.
See also Supported protocols.
ethereum, polygon-pos, bsc, avalanche, arbitrum, near, aurora, gnosis, cronos, fantom, starknet, harmony, tezos, fuse, bitcoin Protocol-specific parameters.
Pass {} if there are no specific parameters for the chosen protocol.
Show child attributes
Network to join.
See also Ethereum networks.
ethereum-mainnet, ethereum-ropsten-testnet, ethereum-rinkeby-testnet List of nodes that will be initially created.
Show child attributes
Name of the node.
Type of the node.
Available types:
shared — only for ethereum, polygon-pos, bsc, avalanche, fantom, tezos, bitcoindedicated — for all protocolsshared, dedicated Cloud provider.
See also Supported cloud providers.
aws, azure, gcloud, vzo Regions the nodes are deployed to.
Available for gcloud:
asia-southeast1Available for aws:
ap-southeast-1us-west-2us-east-1Available for azure:
uksouthAvailable for vzo:
eu3asia-southeast1, ap-southeast-1, us-west-2, us-east-1, uksouth, eu3 Role of the node.
peer Protocol specific parameters.
Pass {} if there are no specific parameters for the selected protocol.
Show child attributes
Pass true if you want to access full blockchain data and an archive of historical states.
See more about archive nodes.
ID of the network.
Protocol-specific attributes.
When the node was created.
When the network was created.
Name of the network.
ID of the network's project.
Protocol.
See also Supported protocols.
ethereum, polygon-pos, bsc, avalanche, arbitrum, near, aurora, gnosis, cronos, fantom, starknet, harmony, tezos, fuse, bitcoin When the network was created.
Ethereum network configuration.
Show child attributes
Network to join.
See also Ethereum networks.
ethereum-mainnet, ethereum-ropsten-testnet, ethereum-rinkeby-testnet Show child attributes
Name of the node.
ID of the network.
ID of the organization that owns this node.
Type of the node.
Available types:
shared — only for ethereum, polygon-pos, bsc, avalanche, fantom, tezos, bitcoindedicated — for all protocolsshared, dedicated Cloud provider.
See also Supported cloud providers.
aws, azure, gcloud, vzo Regions the nodes are deployed to.
Available for gcloud:
asia-southeast1Available for aws:
ap-southeast-1us-west-2us-east-1Available for azure:
uksouthAvailable for vzo:
eu3asia-southeast1, ap-southeast-1, us-west-2, us-east-1, uksouth, eu3 Protocol-specific attributes.
Show child attributes
See also Ethereum node modes
full, archive Only for the owner of the node.
Only for the owner of the node.
Only for the owner of the node.
Only for the owner of the node.
Basic authentication username to access the node endpoints.
Only for the owner of the node.
Basic authentication password to access the node endpoints.
Only for the owner of the node.
Authentication key to access the node endpoints.
Only for the owner of the node.
Creator of the network.
When the node was created.
Role of the node.
Available roles:
peer — peer nodepeer Ethereum node configuration.
Show child attributes
Pass true if you want to access full blockchain data and an archive of historical states.
See more about archive nodes.
Was this page helpful?