Help Center/ Web3 Node Engine Service/ API Reference/ Examples/ Example 1: Creating an Ethereum Mainnet Node
Updated on 2023-08-08 GMT+08:00

Example 1: Creating an Ethereum Mainnet Node

  1. Call the IAM API to obtain a user token.
  2. Call the API for obtaining the network type to choose a proper network type ID (network_id).
  3. Create a node.

Request example

URI

https://your_request_endpoint/v1/your_project_id/node-provider/networks/your_network_id/nodes

Header

X-Auth-Token: your_token

Body

{

"cpu": 2,

"ram": 8192,

"node_type": "Full node",

"charge_mode": "postPaid",

"node_mode": "single",

"node_num": 1

}