Injectable Corda Services

The following services are available for injection into flows and other Corda Services. You can also create custom Corda Services for injection.

Class Methods Inject into
net.corda.v5.application.flows.flowservices.FlowAuditor checkFlowPermission, recordAuditEvent Flow
net.corda.v5.application.flows.flowservices.FlowEngine getRunId, isKilled, subFlow, checkFlowIsNotKilled, sleep, await Flow
net.corda.v5.application.flows.flowservices.FlowIdentity getOurIdentity Flow
net.corda.v5.application.flows.flowservices.FlowMessaging initiateFlow, receiveAllMap, receiveAll, sendAll, sendAllMap, close Flow
net.corda.v5.ledger.flowservices.FlowLedger waitForLedgerCommit, waitForStateConsumption Flow
net.corda.impl.core.TopLevelFlow currentTopLevel Flow, Corda Service
net.corda.v5.application.cordapp.CordappProvider appConfig Flow, Corda Service
net.corda.v5.application.crypto.HashingService hash Flow, Corda Service
net.corda.v5.application.node.CordaClock delegateClock, token, toToken, instant, getZone, withZone Flow, Corda Service
net.corda.v5.application.node.NetworkParameters get, keys Flow, Corda Service
net.corda.v5.application.node.services.IdentityService nameFromKey, anonymousPartyFromKey, partyFromName, partyFromAnonymous, registerKey, externalIdForPublicKey, publicKeysForExternalId Flow, Corda Service
net.corda.v5.application.node.services.KeyManagementService freshKey, filterMyKeys, sign Flow, Corda Service
net.corda.v5.application.node.services.NetworkParametersService currentHash, defaultHash, lookup Flow, Corda Service
net.corda.v5.application.node.services.PersistenceService persist, merge, remove, find, query Flow, Corda Service
net.corda.v5.application.node.services.diagnostics.DiagnosticsService nodeVersionInfo Flow, Corda Service
net.corda.v5.application.serialization.SerializationService serialize, deserialize Flow, Corda Service
net.corda.v5.ledger.services.AttachmentStorage openAttachment, importAttachment, queryAttachments, hasAttachment, getLatestContractAttachments Flow, Corda Service
net.corda.v5.ledger.services.StateLoaderService load, loadOrdered Flow, Corda Service
net.corda.v5.ledger.services.TransactionMappingService toLedgerTransaction Flow, Corda Service
net.corda.v5.ledger.services.TransactionResolverService resolve, resolveBaseTransaction, resolveTransactionWithSignatures, resolveNotaryChangeTransaction, resolveStateRefBinaryComponent Flow, Corda Service
net.corda.v5.ledger.services.TransactionService record, sign, createSignature, addNote, getNotes Flow, Corda Service
net.corda.v5.ledger.services.TransactionStorage getTransaction Flow, Corda Service
net.corda.v5.ledger.services.TransactionVerificationService verify, verifyRequiredSignatures, verifySignaturesExcept Flow, Corda Service
net.corda.v5.ledger.transactions.TransactionBuilderFactory create Flow, Corda Service
net.corda.v5.ledger.services.vault.events.VaultStateEventService subscribe Corda Service

Was this page helpful?

Thanks for your feedback!

Chat with us

Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

Propose documentation improvements directly

Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.

We're sorry this page wasn't helpful. Let us know how we can make it better!

Chat with us

Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.

Create an issue

Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.

Propose documentation improvements directly

Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.