- Chaincode - Interface in org.hyperledger.fabric.shim
-
Defines methods that all chaincodes must implement.
- Chaincode.Response - Class in org.hyperledger.fabric.shim
-
Wrapper around protobuf Response, contains status, message and payload.
- Chaincode.Response.Status - Enum in org.hyperledger.fabric.shim
-
- ChaincodeException - Exception in org.hyperledger.fabric.shim
-
Contracts should use ChaincodeException
to indicate when an error
occurs in Smart Contract logic.
- ChaincodeException() - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with no detail message.
- ChaincodeException(String) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message.
- ChaincodeException(Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified cause.
- ChaincodeException(String, Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message and cause.
- ChaincodeException(String, byte[]) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message and response payload.
- ChaincodeException(String, byte[], Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message, response payload and cause.
- ChaincodeException(String, String) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message and response payload.
- ChaincodeException(String, String, Throwable) - Constructor for exception org.hyperledger.fabric.shim.ChaincodeException
-
Constructs a new ChaincodeException
with the specified detail
message, response payload and cause.
- ChaincodeStub - Interface in org.hyperledger.fabric.shim
-
- CompositeKey - Class in org.hyperledger.fabric.shim.ledger
-
- CompositeKey(String, String...) - Constructor for class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- CompositeKey(String, List<String>) - Constructor for class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- Contact - Annotation Type in org.hyperledger.fabric.contract.annotation
-
Class level annotation that identifies this class as being a contact.
- Context - Class in org.hyperledger.fabric.contract
-
This context is available to all 'transaction functions' and provides the
transaction context.
- Context(ChaincodeStub) - Constructor for class org.hyperledger.fabric.contract.Context
-
Constructor
- Contract - Annotation Type in org.hyperledger.fabric.contract.annotation
-
Class level annotation that identifies this class as being a contract.
- ContractInterface - Interface in org.hyperledger.fabric.contract
-
All Contracts should implement this interface, in addition to the
Contract
annotation.
- createCompositeKey(String, String...) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Given a set of attributes, this method combines these attributes to
return a composite key.
- createContext(ChaincodeStub) - Method in interface org.hyperledger.fabric.contract.ContractInterface
-
Create context from
ChaincodeStub
, default impl provided, but can be
overwritten by contract
- getArgs() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
- getAttributes() - Method in class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- getBinding() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the transaction binding.
- getChannelId() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the channel id for the current proposal.
- getCode() - Method in enum org.hyperledger.fabric.shim.Chaincode.Response.Status
-
- getCreator() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the identity of the agent (or user) submitting the transaction.
- getEvent() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the CHAINCODE type event that will be posted to interested
clients when the chaincode's result is committed to the ledger.
- getFunction() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
A convenience method that returns the first argument of the chaincode
invocation for use as a function name.
- getHistoryForKey(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns a history of key values across time.
- getInstance() - Static method in class org.hyperledger.fabric.shim.ext.sbe.impl.StateBasedEndorsementFactory
-
- getKey() - Method in interface org.hyperledger.fabric.shim.ledger.KeyValue
-
Returns the state key.
- getLogger(String) - Static method in class org.hyperledger.fabric.Logger
-
- getLogger(Class<?>) - Static method in class org.hyperledger.fabric.Logger
-
- getMessage() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getMetadata() - Method in interface org.hyperledger.fabric.shim.ledger.QueryResultsIteratorWithMetadata
-
- getObjectType() - Method in class org.hyperledger.fabric.shim.ledger.CompositeKey
-
- getParameters() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
A convenience method that returns all except the first argument of the
chaincode invocation for use as the parameters to the function returned
by #
ChaincodeStub.getFunction()
.
- getPayload() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getPayload() - Method in exception org.hyperledger.fabric.shim.ChaincodeException
-
Returns the response payload or null
if there is no response.
- getPrivateData(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the value of the specified key
from the specified
collection
.
- getPrivateDataByPartialCompositeKey(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
in a given private collection.
- getPrivateDataByPartialCompositeKey(String, CompositeKey) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
in a given private collection.
- getPrivateDataByPartialCompositeKey(String, String, String...) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
in a given private collection.
- getPrivateDataByRange(String, String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are lexicographically
between startkey
(inclusive) and the endKey
(exclusive) in a given private collection.
- getPrivateDataQueryResult(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Perform a rich query against a given private collection.
- getPrivateDataUTF8(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the byte array value specified by the key and decoded as a UTF-8
encoded string, from the sidedb collection.
- getPrivateDataValidationParameter(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Retrieves the key-level endorsement
policy for the private data specified by key
.
- getQueryResult(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Performs a "rich" query against a state database.
- getQueryResultWithPagination(String, int, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Performs a "rich" query against a state database.
- getSignedProposal() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the signed transaction proposal currently being executed.
- getState(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the value of the specified key
from the ledger.
- getStateByPartialCompositeKey(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
.
- getStateByPartialCompositeKey(String, String...) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
.
- getStateByPartialCompositeKey(CompositeKey) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are prefixed by the
specified partial
CompositeKey
.
- getStateByPartialCompositeKeyWithPagination(CompositeKey, int, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Queries the state in the ledger based on a given partial composite key.
- getStateByRange(String, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns all existing keys, and their values, that are lexicographically
between startkey
(inclusive) and the endKey
(exclusive).
- getStateByRangeWithPagination(String, String, int, String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns a range iterator over a set of keys in the ledger.
- getStateValidationParameter(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
retrieves the key-level endorsement policy for key
.
- getStatus() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getStatusCode() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getStringArgs() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
- getStringPayload() - Method in class org.hyperledger.fabric.shim.Chaincode.Response
-
- getStringState(String) - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the byte array value specified by the key and decoded as a UTF-8
encoded string, from the ledger.
- getStringValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
- getStringValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyValue
-
Returns the state value, decoded as a UTF-8 string.
- getStub() - Method in class org.hyperledger.fabric.contract.Context
-
- getTimestamp() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
Returns the timestamp of the key modification entry.
- getTransient() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the transient map associated with the current transaction.
- getTxId() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the transaction id for the current chaincode invocation request.
- getTxId() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
Returns the transaction id.
- getTxTimestamp() - Method in interface org.hyperledger.fabric.shim.ChaincodeStub
-
Returns the timestamp when the transaction was created.
- getVal() - Method in enum org.hyperledger.fabric.shim.ext.sbe.StateBasedEndorsement.RoleType
-
- getValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyModification
-
- getValue() - Method in interface org.hyperledger.fabric.shim.ledger.KeyValue
-
Returns the state value.