本文整理汇总了TypeScript中fabric-client.Channel.sendTransactionProposal方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Channel.sendTransactionProposal方法的具体用法?TypeScript Channel.sendTransactionProposal怎么用?TypeScript Channel.sendTransactionProposal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fabric-client.Channel
的用法示例。
在下文中一共展示了Channel.sendTransactionProposal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
}).then((results) => {
logger.debug(' queryTransaction ::%j', results);
t.equals(0, results.validationCode, 'Should be able to find our transaction validationCode by admin');
let tx_id = client.newTransactionID(); // get a non admin transaction ID
var request: ChaincodeInvokeRequest = {
chaincodeId: 'example',
fcn: 'move',
args: ['a', 'b', '100'],
txId: tx_id
//targets - Letting default to all endorsing peers defined on the channel in the connection profile
};
// put in a very small timeout to force a failure, thereby checking that the timeout value was being used
return channel.sendTransactionProposal(request, 1); //logged in as org1 user
}).then((results: ProposalResponseObject) => {