public ServicesForResolution
Subset of node services that are used for loading transactions from the wire into fully resolved, looked up forms ready for verification.
Modifier and Type | Interface and Description |
---|---|
static class |
ServicesForResolution.DefaultImpls
Subset of node services that are used for loading transactions from the wire into fully resolved, looked up
forms ready for verification.
|
Modifier and Type | Method and Description |
---|---|
AttachmentStorage |
getAttachments()
Provides access to storage of arbitrary JAR files (which may contain only data, no code).
|
CordappProvider |
getCordappProvider()
Provides access to anything relating to cordapps including contract attachment resolution and app context
|
IdentityService |
getIdentityService()
An identity service maintains a directory of parties by their associated distinguished name/public keys and thus
supports lookup of a party given its key, or name. The service also manages the certificates linking confidential
identities back to the well known identity (i.e. the identity in the network map) of a party.
|
NetworkParameters |
getNetworkParameters()
Returns the network parameters the node is operating under.
|
NetworkParametersService |
getNetworkParametersService()
Provides access to historical network parameters that are used in transaction resolution.
|
Attachment |
loadContractAttachment(StateRef stateRef)
Returns the
interface Attachment that defines the given class StateRef , which must be in the visible subset of the ledger. |
TransactionState<?> |
loadState(StateRef stateRef)
Given a
class StateRef loads the referenced transaction and looks up the specified output interface ContractState . |
java.util.Set<net.corda.core.contracts.StateAndRef> |
loadStates(java.util.Set<net.corda.core.contracts.StateRef> stateRefs)
Given a Set of
class StateRef 's loads the referenced transaction and looks up the specified output interface ContractState . |
LedgerTransaction |
specialise(LedgerTransaction ltx)
Provides a callback for the Node to customise the
class LedgerTransaction . |
IdentityService getIdentityService()
An identity service maintains a directory of parties by their associated distinguished name/public keys and thus supports lookup of a party given its key, or name. The service also manages the certificates linking confidential identities back to the well known identity (i.e. the identity in the network map) of a party.
AttachmentStorage getAttachments()
Provides access to storage of arbitrary JAR files (which may contain only data, no code).
CordappProvider getCordappProvider()
Provides access to anything relating to cordapps including contract attachment resolution and app context
NetworkParametersService getNetworkParametersService()
Provides access to historical network parameters that are used in transaction resolution.
NetworkParameters getNetworkParameters()
Returns the network parameters the node is operating under.
TransactionState<?> loadState(StateRef stateRef)
Given a class StateRef
loads the referenced transaction and looks up the specified output interface ContractState
.
WARNING Do not use this method unless you really only want a single state - any batch loading should
go through ServicesForResolution.loadStates
as repeatedly calling ServicesForResolution.loadState
can lead to repeat deserialsiation work and
severe performance degradation.
class StateRef
,
interface ContractState
,
ServicesForResolution.loadStates
,
ServicesForResolution.loadState
java.util.Set<net.corda.core.contracts.StateAndRef> loadStates(java.util.Set<net.corda.core.contracts.StateRef> stateRefs)
Given a Set of class StateRef
's loads the referenced transaction and looks up the specified output interface ContractState
.
class StateRef
,
interface ContractState
Attachment loadContractAttachment(StateRef stateRef)
Returns the interface Attachment
that defines the given class StateRef
, which must be in the visible subset of the ledger.
interface Attachment
,
class StateRef
LedgerTransaction specialise(LedgerTransaction ltx)
Provides a callback for the Node to customise the class LedgerTransaction
.
class LedgerTransaction