@Beta public class FabricService extends Object
| Constructor and Description |
|---|
FabricService() |
| Modifier and Type | Method and Description |
|---|---|
static org.hyperledger.fabric.gateway.Contract |
provideContract()
Provides a Contract component that can be used to interact with the chaincode instantiated on a Hyperledger
Fabric channel.
|
static org.hyperledger.fabric.gateway.Contract |
provideContract(ApplicationService applicationService)
Provides a Contract component that can be used to interact with the chaincode instantiated on a Hyperledger
Fabric channel.
|
static org.hyperledger.fabric.gateway.Network |
provideNetwork()
Provides a Network component that can be used to get chaincodes installed on the channel or interact with the
ledger itself.
|
static org.hyperledger.fabric.gateway.Network |
provideNetwork(ChannelService channelService)
Provides a Network component that can be used to get chaincodes instantiated on the channel or interact with the
ledger itself.
|
@Nonnull public static org.hyperledger.fabric.gateway.Contract provideContract(@Nonnull ApplicationService applicationService)
applicationService - An Application Service that contains all necessary credentials@Nonnull public static org.hyperledger.fabric.gateway.Network provideNetwork(@Nonnull ChannelService channelService)
channelService - A Channel Service that contains all necessary credentials@Nonnull public static org.hyperledger.fabric.gateway.Contract provideContract()
IllegalStateException - if there are no or more than one user-provided servicesIllegalArgumentException - if the user-provided service is not a hyperledger-fabric ApplicationService or some credentials are
missing or can not be parsed@Nonnull public static org.hyperledger.fabric.gateway.Network provideNetwork()
IllegalStateException - if there are no or more than one user-provided servicesIllegalArgumentException - if the user-provided service is not a hyperledger-fabric ChannelService or some credentials are
missing or can not be parsedCopyright © 2020 SAP SE. All rights reserved.