Skip to content

Commit 7fba9ca

Browse files
committed
feat: explain accessing the task manager, access token in readme
1 parent deae1ae commit 7fba9ca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ There are two ways to create an asset:
1919

2020
```bash
2121
export ASSET_PROPERTIES=$(echo -n "{\"objectType\":\"ValuableAsset\",\"assetID\":\"asset1\",\"color\":\"green\",\"size\":20,\"appraisedValue\":100}" | base64 | tr -d \\n)
22-
./lib/btp-chaincode-lifecycle/chaincode.sh invoke 'CreateAsset' --transient "{ \"asset_properties\": \"${ASSET_PROPERTIES}\"}"
22+
BTP_SERVICE_TOKEN=<your-access-token> ./lib/btp-chaincode-lifecycle/chaincode.sh invoke 'CreateAsset' --transient "{ \"asset_properties\": \"${ASSET_PROPERTIES}\"}"
2323
```
2424

2525
Or let the api do the base64 encoding for you:
2626

2727
```bash
28-
./lib/btp-chaincode-lifecycle/chaincode.sh invoke 'CreateAsset' --transient '{ "asset_properties": { "objectType": "ValuableAsset", "assetID": "asset1", "color": "green", "size": "20", "appraisedValue": "100" }}'
28+
BTP_SERVICE_TOKEN=<your-access-token> ./lib/btp-chaincode-lifecycle/chaincode.sh invoke 'CreateAsset' --transient '{ "asset_properties": { "objectType": "ValuableAsset", "assetID": "asset1", "color": "green", "size": "20", "appraisedValue": "100" }}'
2929
```
3030

3131
Query the newly created asset:
3232

3333
```bash
34-
./lib/btp-chaincode-lifecycle/chaincode.sh query 'ReadAsset' --arguments 'asset1'
34+
BTP_SERVICE_TOKEN=<your-access-token> ./lib/btp-chaincode-lifecycle/chaincode.sh query 'ReadAsset' --arguments 'asset1'
3535
```
3636

37-
TODO: Update documentation
37+
Here your access token is an application access token or a personal access token scoped to the nodes you wish to interact with.

0 commit comments

Comments
 (0)