Trust registry JSON-RPC API

Methods

trustRegistry_schemaMetadata

trustRegistry_schemaIssuers

trustRegistry_schemaVerifiers

trustRegistry_schemaMetadataInRegistry

trustRegistry_schemaIssuersInRegistry

trustRegistry_schemaVerifiersInRegistry

trustRegistry_allRegistrySchemaMetadata

trustRegistry_allRegistrySchemaIssuers

trustRegistry_allRegistrySchemaVerifiers

trustRegistry_registriesInfoBy

trustRegistry_registrySchemaMetadataBy

Method: trustRegistry_schemaMetadata

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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

Description

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?