Digital Assets Edition Enhancements

The enhanced version of Blockchain App Builder supports additional functions beyond those supported by the base version.

Oracle Blockchain Platform Digital Assets Edition includes an enhanced version of Blockchain App Builder and other functionality including sample applications to support wholesale central bank digital currency (CBDC), bond marketplaces, stablecoins, and generic token frameworks. For more information, see Oracle Blockchain Platform Digital Assets Edition.

The following functions are supported by the enhanced version of Blockchain App Builder.

CLI Enhancements

The ochain invoke command supports the following additional optional arguments.

Transient Map
Option: -t, --transient
Specifies key/value pairs for the transient map as a JSON string.
Example:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -t '{"key": "value"}'
Headers
Option: -H, --headers
Specifies additional headers as key/value pairs in JSON format. The Content-Type: application/json header is set by default and cannot be overridden. Do not include it in custom headers.
Example:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -H '{"confidential-transaction": "true"}'
Endorsers
Option: -e, --endorsers
Specifies endorser peer URLs to use as a JSON array of strings. You cannot use this option in combination with the -S, --sameorgendorser option to use endorsers from the same organization.
Example:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -e '["org1-xyz-abc.blockchain.ocp.oraclecloud.com:20009", "org1-xyz-abc.blockchain.ocp.oraclecloud.com:20010"]'
Same Organization Endorsers
Option: -S, --sameorgendorser
A Boolean flag that indicates whether to use endorsers from the same organization. You cannot use this option in combination with the -e, --endorsers option to specify endorsers.
Example:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -S true
The following example shows all of the optional parameters:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -H '{"confidential-transaction": "true"}' \
  -S false \
  -t '{"key": "value"}' \
  -e '["org1-xyz-abc.blockchain.ocp.oraclecloud.com:20009", "org1-xyz-abc.blockchain.ocp.oraclecloud.com:20010"]'

Visual Studio Code Extension Enhancements

The options for transient maps, headers, endorsers, and same organization endorsers are available in the Execute pane for remote environments. When you select a remote environment, the Show Advanced Options control is available. Click Show Advanced Options to set these options for the currently selected method (function). If you select a different method, the advanced options are reset.

For each advanced option, you can add and remove values and select or clear the options to include when the method is called. The Same Org Endorsers checkbox is available on the Endorsing Peers dialog box. If you select Same Org Endorsers, any endorsing peers that you specified manually are ignored. Instead the transaction will be endorsed by peers from the same organization as the user.

For confidential chaincodes, the Confidential-Transaction: true header is set by default for all methods in the Visual Studio Code extension. You can edit this header.