You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,7 +255,7 @@ The fastest way to test your chaincode is to use the REST interface on your peer
255
255
-`/chaincode` is the endpoint used for deploying, invoking, and querying chaincode. Which operation you perform is controlled by the body of the request that you send.
256
256
-`/registrar` allows you to enroll users. Why does this matter? Read on!
257
257
258
-
## Secure Enrollment
258
+
###Secure Enrollment
259
259
260
260
Calls to the `/chaincode` endpoint of the REST interface require a secure context ID to be included in the body of the request. This means that you must first enroll a user from the user list in the membership service for your network.
261
261
@@ -296,7 +296,7 @@ Calls to the `/chaincode` endpoint of the REST interface require a secure contex
296
296
297
297
If you didn't receive a "Login successful" response, go back and make sure you properly copied your enrollment ID and secret. Now, you have an ID that you can use when deploying, invoking, and querying chaincode in the subsequent steps.
298
298
299
-
## Deploying the chaincode
299
+
###Deploying the chaincode
300
300
301
301
In order to deploy chaincode through the REST interface, you will need to have the chaincode stored in a public git repository. When you send a deploy request to a peer, you send it the url to your chaincode repository, as well as the parameters necessary to initialize the chaincode.
302
302
@@ -349,7 +349,7 @@ In order to deploy chaincode through the REST interface, you will need to have t
349
349
350
350
The long string response for the deployment will contain an ID that is associated with this chaincode. The ID is a 128 character alphanumeric hash. Copy this ID on your notepad as well. You should now have a set of enrollID credentials and the cryptographic hash representing your chaincode. This is how you will reference the chaincode in any future Invoke or Query transactions.
351
351
352
-
## Query
352
+
###Query
353
353
354
354
Next, let's query the chaincode for the value of `hello_world`, the key we set with the `Init` function.
355
355
@@ -386,7 +386,7 @@ Next, let's query the chaincode for the value of `hello_world`, the key we set w
386
386
387
387
Hopefully you see that the value of `hello_world` is "hi there", as you specified in the body of the deploy request.
388
388
389
-
## Invoke
389
+
###Invoke
390
390
391
391
Next, call your generic `write` function by invoking your chaincode and changing the value of "hello_world" to "go away".
0 commit comments