Skip to content

serviceFromChain

serviceFromChain(encoded): DidServiceEndpoint

Convert the DID service data coming from the blockchain to JS object.

Parameters

encoded: Option<PalletDidServiceEndpointsDidEndpoint>

The blockchain-formatted DID service data.

Returns

DidServiceEndpoint

The DID service.

Source

did/src/Did.chain.ts:255