Authentication

Ensure that you have the appropriate log-in credentials for managing Oracle Blockchain Platform instances or networks, or for running chaincodes, as described in User Roles.

You access the Oracle Blockchain Platform REST resources over HTTPS and must provide the following information for authentication:
  • User name and password for your Oracle Blockchain Platform account.

To authenticate using cURL use the -u cURL option to pass the user name and password for your Oracle Blockchain Platform account.

The following provides an example cURL command:
curl -i -X GET -u <username>:<password>\
 -H <request-header>:<value>\ 
 https://<rest_server_url:port>/<resource-path>

Using Default Authentication

If you are using the default REST authentication, the administrator of the Oracle Blockchain Platform instance must have made you a member of OBP_<platform-name>_<instance-name>_REST on the LDAP server before you can interact with the instance using the REST API.