程序包 | 说明 |
---|---|
org.hyperledger.fabric.gateway |
This package provides the set of interfaces that enable a Java application to
interact with a Fabric blockchain network.
|
限定符和类型 | 方法和说明 |
---|---|
Transaction |
Contract.createTransaction(String name)
Create an object representing a specific invocation of a transaction
function implemented by this contract, and provides more control over
the transaction invocation.
|
Transaction |
Transaction.setCommitHandler(CommitHandlerFactory commitHandler)
Set the commit handler to use for this transaction invocation instead of the default handler configured for the
gateway.
|
Transaction |
Transaction.setCommitTimeout(long timeout,
TimeUnit timeUnit)
Set the maximum length of time to wait for commit events to be received after submitting a transaction to the
orderer.
|
Transaction |
Transaction.setEndorsingPeers(Collection<org.hyperledger.fabric.sdk.Peer> peers)
Set the peers that should be used for endorsement of transaction submitted to the ledger using
submit(String...) . |
Transaction |
Transaction.setTransient(Map<String,byte[]> transientData)
Set transient data that will be passed to the transaction function
but will not be stored on the ledger.
|
Copyright © 2023. All rights reserved.