Skip to content

prepareExtrinsicToRegister

prepareExtrinsicToRegister(stmtEntry, authorizationUri): Promise<SubmittableExtrinsic>

This function prepares and returns a SubmittableExtrinsic for registering 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 prepareExtrinsic 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 registering the statement on the chain.

Promise<SubmittableExtrinsic>

A SubmittableExtrinsic is being returned from the prepareExtrinsic function.

statement/src/Statement.chain.ts:253