How Do I Use HTTP Endpoints and Authentication Credentials to Access Nodes?
You can perform the following operations to access a node using an authentication credential.
Prerequisites
You have created a full node.
Procedure
- Create and obtain an authentication credential.
- On the NES console, choose Dedicated > Authentication Credential and click Create Credential.
- Describe the credential and set the access policy.
Figure 1 Creating a credential
- Click OK. The credential is created and then automatically downloaded as a ZIP package.
Each credential can be downloaded only once. Change the credential periodically for security.
- Decompress the package and open the credential.csv file to obtain the credential.
- Combine a node with the credential.
- Click a node ID.
- Obtain the values of HTTP Endpoint and WebSocket Endpoint.
- Combine the HTTP endpoint or WebSocket endpoint with a credential.
- HTTP endpoint: https://your-http-endpoint/your-credential. For example, https://79b83c56-0a7f-11ee-9cac-0255ac10004e.web3.bcs.ap-southeast-3.myhuaweicloud.com/xxxxxxxxxxxx
- WebSocket endpoint: wss://your-http-endpoint/your-credential. For example, wss:://79b83c56-0a7f-11ee-9cac-0255ac10004e.web3.bcs.ap-southeast-3.myhuaweicloud.com/xxxxxxxxxxxx
- Call the Ethereum node API.
Enter the HTTP endpoint and parameters in Postman and view the returned result.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot