Trust registry JSON-RPC API
Methods
trustRegistry_schemaMetadataInRegistry
trustRegistry_schemaIssuersInRegistry
trustRegistry_schemaVerifiersInRegistry
trustRegistry_allRegistrySchemaMetadata
trustRegistry_allRegistrySchemaIssuers
trustRegistry_allRegistrySchemaVerifiers
trustRegistry_registriesInfoBy
trustRegistry_registrySchemaMetadataBy
Method: trustRegistry_schemaMetadata
trustRegistry_schemaMetadataDescription
This method retrieves metadata for a trust registry schema identified by the provided schema ID, optionally filtered by block hash.
Parameters
id:TrustRegistrySchemaId- The unique identifier of the trust registry schema for which to retrieve metadata.at:Option<BlockHash>- Optional block hash to query the metadata at a specific point in the blockchain.
Return type
{ TrustRegistryId, AggregatedTrustRegistrySchemaMetadata } Returns a dictionary where each key is a TrustRegistryId and the corresponding value is AggregatedTrustRegistrySchemaMetadata associated with that schema.
Example request
Example response
Method: trustRegistry_schemaIssuers
trustRegistry_schemaIssuersDescription
This method retrieves information about the issuers of a trust registry schema identified by the provided schema ID, optionally filtered by block hash.
Parameters
id:TrustRegistrySchemaId- The unique identifier of the trust registry schema for which to retrieve issuer information.at:Option<BlockHash>- Optional block hash to query the issuer information at a specific point in the blockchain.
Return type
{ TrustRegistryId, AggregatedTrustRegistrySchemaIssuers<T::T> } Returns a dictionary where each key is a TrustRegistryId and the corresponding value is AggregatedTrustRegistrySchemaIssuers associated with that schema.
Example request
Example response
Method: trustRegistry_schemaVerifiers
trustRegistry_schemaVerifiersDescription
This method retrieves information about the verifiers of a trust registry schema identified by the provided schema ID, optionally filtered by block hash.
Parameters
id:TrustRegistrySchemaId- The unique identifier of the trust registry schema for which to retrieve verifier information.at:Option<BlockHash>- Optional block hash to query the issuer information at a specific point in the blockchain.
Return type
{ TrustRegistryId, AggregatedTrustRegistrySchemaIssuers<T::T> } Returns a dictionary where each key is a TrustRegistryId and the corresponding value is TrustRegistrySchemaVerifiers associated with that schema.
Example request
Example response
Method: trustRegistry_schemaMetadataInRegistry
trustRegistry_schemaMetadataInRegistryDescription
This method retrieves metadata for a trust registry schema identified by the provided schema ID within a specific trust registry, optionally filtered by block hash.
Parameters
id:TrustRegistrySchemaId- The unique identifier of the trust registry schema for which to retrieve metadata.registry_id:TrustRegistryId- The unique identifier of the trust registry within which to search for the schema metadata.at:Option<BlockHash>- Optional block hash to query the metadata at a specific point in the blockchain.
Return type
Option<AggregatedTrustRegistrySchemaMetadata> If the schema metadata is found within the specified registry, it returns AggregatedTrustRegistrySchemaMetadata; otherwise, it returns null.
Example request
Example response
Method: trustRegistry_schemaIssuersInRegistry
trustRegistry_schemaIssuersInRegistryDescription
This method retrieves information about the issuers of a trust registry schema identified by the provided schema ID within a specific trust registry, optionally filtered by block hash.
Parameters
id:TrustRegistrySchemaId- The unique identifier of the trust registry schema for which to retrieve issuer information.registry_id:TrustRegistryId- The unique identifier of the trust registry within which to search for the schema issuers.at:Option<BlockHash>- Optional block hash to query the issuer information at a specific point in the blockchain.
Return type
Option<AggregatedTrustRegistrySchemaIssuers> If the schema issuers are found within the specified registry, it returns AggregatedTrustRegistrySchemaIssuers; otherwise, it returns null.
Example request
Example response
Method: trustRegistry_schemaVerifiersInRegistry
trustRegistry_schemaVerifiersInRegistryDescription
This method retrieves information about the verifiers of a trust registry schema identified by the provided schema ID within a specific trust registry, optionally filtered by block hash.
Parameters
id:TrustRegistrySchemaId- The unique identifier of the trust registry schema for which to retrieve issuer information.registry_id:TrustRegistryId- The unique identifier of the trust registry within which to search for the schema verifiers.at:Option<BlockHash>- Optional block hash to query the issuer information at a specific point in the blockchain.
Return type
Option<TrustRegistrySchemaVerifiers> If the schema issuers are found within the specified registry, it returns TrustRegistrySchemaVerifiers; otherwise, it returns null.
Example request
Example response
Method: trustRegistry_allRegistrySchemaMetadata
trustRegistry_allRegistrySchemaMetadataDescription
This method retrieves metadata for all trust registry schemas within a specific trust registry, optionally filtered by block hash.
Parameters
registry_id:TrustRegistryId- The unique identifier of the trust registry for which to retrieve schema metadata.at:Option<BlockHash>- Optional block hash to query the metadata at a specific point in the blockchain.
Return type
{ TrustRegistrySchemaId => AggregatedTrustRegistrySchemaMetadata } Returns a dictionary where each key is a TrustRegistrySchemaId and the corresponding value is AggregatedTrustRegistrySchemaMetadata associated with that schema within the specified registry.
Example request
Example response
Method: trustRegistry_allRegistrySchemaIssuers
trustRegistry_allRegistrySchemaIssuersDescription
This method retrieves information about the issuers of all trust registry schemas within a specific trust registry, optionally filtered by block hash.
Parameters
registry_id:TrustRegistryId- The unique identifier of the trust registry for which to retrieve schema issuers.at:Option<BlockHash>- Optional block hash to query the issuer information at a specific point in the blockchain.
Return type
{ TrustRegistrySchemaId => AggregatedTrustRegistrySchemaIssuers } Returns a dictionary where each key is a TrustRegistrySchemaId and the corresponding value is AggregatedTrustRegistrySchemaIssuers associated with that schema within the specified registry.
Example request
Example response
Method: trustRegistry_allRegistrySchemaVerifiers
trustRegistry_allRegistrySchemaVerifiersDescription
This method retrieves information about the verifiers of all trust registry schemas within a specific trust registry, optionally filtered by block hash.
Parameters
registry_id:TrustRegistryId- The unique identifier of the trust registry for which to retrieve schema verifiers.at:Option<BlockHash>- Optional block hash to query the verifier information at a specific point in the blockchain.
Return type
{ TrustRegistrySchemaId => TrustRegistrySchemaVerifiers } Returns a dictionary where each key is a TrustRegistrySchemaId and the corresponding value is TrustRegistrySchemaVerifiers associated with that schema within the specified registry.
Example request
Example response
Method: trustRegistry_registriesInfoBy
trustRegistry_registriesInfoByDescription
This method retrieves information about trust registries based on specified criteria, optionally filtered by block hash.
Parameters
by:QueryTrustRegistriesBy- Specifies the criteria by which to query trust registries.at:Option<BlockHash>- Optional block hash to query the information at a specific point in the blockchain.
Return type
{ TrustRegistryId, TrustRegistryInfo } Returns a dictionary where each key is a TrustRegistryId and the corresponding value is TrustRegistryInfo associated with that registry.
Example request
Example response
Method: trustRegistry_registrySchemaMetadataBy
trustRegistry_registrySchemaMetadataByDescription
This method retrieves metadata for trust registry schemas based on specified parameters, such as the registry ID, and optionally filtered by block hash.
Parameters
by:QueryTrustRegistryBy- Specifies the criteria by which to query the trust registry schemas.reg_id:TrustRegistryId- The unique identifier of the trust registry for which to retrieve schema metadata.at:Option<BlockHash>- Optional block hash to query the metadata at a specific point in the blockchain.
Return type
{ TrustRegistrySchemaId => AggregatedTrustRegistrySchemaMetadata } Returns a dictionary where each key is a TrustRegistrySchemaId and the corresponding value is AggregatedTrustRegistrySchemaMetadata associated with that schema.
Example request
Example request
Method: trustRegistry_registriesIdsBy
trustRegistry_registriesIdsByDescription
This method retrieves ids of trust registries based on specified parameters, and optionally filtered by block hash.
Parameters
by:QueryTrustRegistriesBy- Specifies the criteria by which to query the trust registry identifiers.at:Option<BlockHash>- Optional block hash to query the metadata at a specific point in the blockchain.
Return type
[TrustRegistryId] Returns an array where each value is a TrustRegistrySchemaId.
Example request
Example response
Method: trustRegistry_registrySchemaIdsBy
trustRegistry_registrySchemaIdsByDescription
This method retrieves ids for trust registry schemas based on specified parameters, such as the registry ID, and optionally filtered by block hash.
Parameters
by:QueryTrustRegistryBy- Specifies the criteria by which to query the trust registry schemas.reg_id:TrustRegistryId- The unique identifier of the trust registry for which to retrieve schema metadata.at:Option<BlockHash>- Optional block hash to query the metadata at a specific point in the blockchain.
Return type
[TrustRegistrySchemaId] Returns an array where each value is a TrustRegistrySchemaId.
Example request
Example response
Last updated
Was this helpful?