Help Center/ Web3 Node Engine Service/ Getting Started/ Shared/ Step 3: Combine an API Key with HTTPS/WebSocket
Updated on 2024-05-10 GMT+08:00

Step 3: Combine an API Key with HTTPS/WebSocket

Combine the obtained API key with the HTTPS or WebSocket parameter to call the API.

Prerequisites

You have created a DApp project.

Procedure

  1. On the NES console, choose Shared > DApp Project Management.
  2. Click a DApp.

  3. Obtain the values of API Key, WebSocket, and HTTPS.

  4. Combine the HTTP or WebSocket parameter with the API key as follows:

    • HTTP: https://your-http-endpoint/api-key. For example, https://polygon-mainnet.shared-fullnode.bcs.ap-southeast-3.myhuaweicloud.com/v1/xxxxxxxxxxxx
    • WebSocket: wss://your-http-endpoint/api-key. For example, wss://polygon-mainnet.shared-fullnode.bcs.ap-southeast-3.myhuaweicloud.com/v1/xxxxxxxxxxxx