數位資產版本增強功能

區塊鏈 App 產生器的增強版本除了支援基礎版本之外,還支援其他功能。

Oracle Blockchain Platform Digital Assets Edition 包含增強版的 Blockchain App Builder 和其他功能,包括支援批發中央銀行數位貨幣 (CBDC)、債券市集、穩定幣和一般權杖架構的範例應用程式。如需詳細資訊,請參閱 Oracle Blockchain Platform Digital Assets Edition

增強版的 Blockchain App Builder 支援下列功能。

CLI 增強功能

ochain invoke 指令支援下列其他可選引數。

暫時對應
選項:-t, --transient
將暫時對應的索引鍵 / 值組指定為 JSON 字串。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -t '{"key": "value"}'
標頭
選項:-H, --headers
以 JSON 格式指定額外的標頭作為索引鍵 / 值組。預設會設定 Content-Type: application/json 標頭,而且無法覆寫。請勿將其包含在自訂標頭中。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -H '{"confidential-transaction": "true"}'
附加價值
選項:-e, --endorsers
指定作為字串 JSON 陣列的端點對等 URL。您無法將此選項與 -S, --sameorgendorser 選項結合使用來自相同組織的背書人。
範例:
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"]'
相同組織背書人
選項:-S, --sameorgendorser
指示是否使用相同組織背書人的布林值旗標。此選項無法與 -e, --endorsers 選項結合使用,以指定背書人。
範例:
ochain invoke <method> 's01' 's10' \
  -r <remote OBP URL> -u <username> -s <password> \
  -S true
下列範例顯示所有選擇性參數:
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 程式碼擴充增強功能

遠端環境的執行窗格中提供暫時對應、標頭、背書人以及相同組織背書人的選項。當您選取遠端環境時,可以使用顯示進階選項控制項。按一下顯示進階選項,即可為目前選取的方法 (函數) 設定這些選項。如果您選取其他方法,就會重設進階選項。

對於每個進階選項,您可以新增和移除值,以及選取或清除呼叫方法時所要包含的選項。相同組織背書人核取方塊位於背書同儕對話方塊中。如果您選取相同組織背書人,則會忽略您手動指定的任何背書對等。相反地,異動將由與使用者相同組織的同儕背書。

對於機密鏈碼,預設會為 Visual Studio Code 擴充中的所有方法設定 Confidential-Transaction: true 標頭。您可以編輯此標頭。