@Deprecated public class FabricService extends Object
Be aware that this class is in Beta (as indicated by the annotation) and therefore subject to breaking changes.
Modifier and Type | Method and Description |
---|---|
static FabricService |
create()
Deprecated.
Create a service instance looking for an instance of service type 'hyperledger-fabric'.
|
String |
getServiceUrl()
Deprecated.
Access to the Fabric service root URL.
|
String |
invokeOrQuery(FabricInvocationType invocationType,
String chainCodeId,
String function,
String... params)
Deprecated.
Access a function exposed by a chaincode.
|
String |
toString()
Deprecated.
|
@Nonnull public static FabricService create() throws CloudPlatformException
CloudPlatformException
- if service information cannot be found or is incompletely specified@Nonnull public String invokeOrQuery(@Nonnull FabricInvocationType invocationType, @Nonnull String chainCodeId, @Nonnull String function, @Nonnull String... params) throws FabricServiceFailureException, IllegalArgumentException, com.google.gson.JsonIOException, CloudPlatformException
invocationType
- lightweight query or transaction via invoke.chainCodeId
- identifying the chain code.function
- the name of the function to be invoked.params
- parameters to the function call.IllegalArgumentException
- if the chaincodeId argument contains whitespace.FabricServiceFailureException
- if the service invocation fails.com.google.gson.JsonIOException
- if the encoding of the request fails.CloudPlatformException
- if there is a problem authorizing the access.@Nonnull public String getServiceUrl()
Copyright © 2021 SAP SE. All rights reserved.