Skip to content

prepareExtrinsicToUpdate

prepareExtrinsicToUpdate(stmtEntry, authorizationUri): Promise<SubmittableExtrinsic>

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

stmtEntry: IStatementEntry

The stmtEntry parameter is an object of type IStatementEntry, which contains information about a statement entry.

authorizationUri: `auth:cord:${string}`

The authorizationUri parameter in the prepareExtrinsicToUpdate 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 updating the statement on the chain.

Promise<SubmittableExtrinsic>

A SubmittableExtrinsic is being returned from the prepareExtrinsicToUpdate function.

statement/src/Statement.chain.ts:299