Skip to content

prepareExtrinsicToRestore

prepareExtrinsicToRestore(statementUri, authorizationUri): Promise<SubmittableExtrinsic>

This function prepares and returns a SubmittableExtrinsic for restoring a statement on the blockchain.

Parameters

statementUri: stmt:cord:${string}

The statementUri parameter in the prepareExtrinsicToRestore function is a URI that represents the statement that you want to restore on the chain.

authorizationUri: auth:cord:${string}

The authorizationUri parameter in the prepareExtrinsicToRestore function is a URI that represents the authorization needed for the statement entry. It is used to identify and retrieve the authorization details required for restoring the statement on the chain.

Returns

Promise<SubmittableExtrinsic>

A SubmittableExtrinsic is being returned from the prepareExtrinsicToRestore function.

Source

statement/src/Statement.chain.ts:507