TransactionRegistry (Client API)

Overview - Common API - Client API - Admin API - Runtime API

TransactionRegistry

The TransactionRegistry is used to store a set of transactions on the blockchain.

Details

  • Extends Registry

  • Module client

See also

  • See (see {@link registry)

Method Summary

Name Returns Description
addTransactionRegistry Promise Add a new transaction registry.
getAllTransactionRegistries Promise Get a list of all existing transaction registries.
getTransactionRegistry Promise Get an existing transaction registry.
transactionRegistryExists Promise Determine whether an registry exists.

Method Details

getAllTransactionRegistries

Promise getAllTransactionRegistries( SecurityContext securitycontext, ModelManager modelmanager, Factory factory, Serializer serializer, BusinessNetworkConnection bnc, Boolean systemregistry )

Get a list of all existing transaction registries.

Returns

Promise - A promise that will be resolved with a list of TransactionRegistry instances representing the transaction registries.

Parameters

Name Type Optional Description
securityContext SecurityContext false The user's security context.
modelManager ModelManager false The ModelManager to use for this transaction registry.
factory Factory false The factory to use for this transaction registry.
serializer Serializer false The Serializer to use for this transaction registry.
bnc BusinessNetworkConnection false BusinessNetworkConnection to use
systemRegistry Boolean false True if system transaction registries should be included in the list.

getTransactionRegistry

Promise getTransactionRegistry( SecurityContext securitycontext, string id, ModelManager modelmanager, Factory factory, Serializer serializer )

Get an existing transaction registry.

Returns

Promise - A promise that will be resolved with a TransactionRegistry instance representing the transaction registry.

Parameters

Name Type Optional Description
securityContext SecurityContext false The user's security context.
id string false The unique identifier of the transaction registry.
modelManager ModelManager false The ModelManager to use for this transaction registry.
factory Factory false The factory to use for this transaction registry.
serializer Serializer false The Serializer to use for this transaction registry.

addTransactionRegistry

Promise addTransactionRegistry( SecurityContext securitycontext, string id, string name, ModelManager modelmanager, Factory factory, Serializer serializer )

Add a new transaction registry.

Returns

Promise - A promise that will be resolved with a TransactionRegistry instance representing the new transaction registry.

Parameters

Name Type Optional Description
securityContext SecurityContext false The user's security context.
id string false The unique identifier of the transaction registry.
name string false The name of the transaction registry.
modelManager ModelManager false The ModelManager to use for this transaction registry.
factory Factory false The factory to use for this transaction registry.
serializer Serializer false The Serializer to use for this transaction registry.

transactionRegistryExists

Promise transactionRegistryExists( SecurityContext securitycontext, string id, ModelManager modelmanager, Factory factory, Serializer serializer )

Determine whether an registry exists.

Returns

Promise - A promise that will be resolved with a boolean indicating whether the asset registry exists

Parameters

Name Type Optional Description
securityContext SecurityContext false The user's security context.
id string false The unique identifier of the asset registry.
modelManager ModelManager false The ModelManager to use for this asset registry.
factory Factory false The factory to use for this asset registry.
serializer Serializer false The Serializer to use for this asset registry.