"composer transaction submit ..."を使用してトランザクションをサブミットしようとしています。私はtransactionIdの値が欠落しているというエラーを受け取ります...ランダムなtransactionIdを追加した場合にのみトランザクションが受け入れられますが、トランザクションをサブミットするために使用されたJSONはtransactionIdを含まず、OKで実行されます。 Playgroundに埋め込まれたjavascript Fabricエミュレータ)。トランザクションを提出する際のtransactionId
したがって、CLIまたはREST APIを使用してトランザクションをサブミットするには、トランザクションがまだ実行されていない場合、トランザクションIdをどのように生成/認識する必要がありますか?ありがとう。 REST APIを使用する場合、同じ方法で動作しますか?
これは私が取得エラーです:
Error: Invalid or missing identifier for Type OwnerCreationTransaction in namespace com.namespace.model
at Factory.newResource (/usr/local/lib/node_modules/composer-cli/node_modules/composer-common/lib/factory.js:89:19)
at Serializer.fromJSON (/usr/local/lib/node_modules/composer-cli/node_modules/composer-common/lib/serializer.js:141:37)
at then.then.e (/usr/local/lib/node_modules/composer-cli/lib/cmds/transaction/lib/submit.js:83:39)
Command failed.
OwnerCreationTransactionは、次のような定義があります。それはおそらくする必要はありませんが、トランザクションIDは、提出者の供給という値であり、
transaction OwnerCreationTransaction identified by transactionId {
o String transactionId
o String id
o String lastName
o String firstName
o String address
o String city
o String state
o String phone
o String email
}