prepareExtrinsicToRegister
prepareExtrinsicToRegister(
stmtEntry
,creatorUri
,authorAccount
,authorizationUri
,signCallback
):Promise
<SubmittableExtrinsic
>
This function prepares and returns a SubmittableExtrinsic for registering a statement on the blockchain.
Parameters
• stmtEntry: IStatementEntry
The stmtEntry
parameter is an object of type
IStatementEntry
, which contains information about a statement entry.
• creatorUri: did:cord:3${string}
The creatorUri
parameter is a URI that identifies the creator of the
statement entry. It is used to authorize the transaction when preparing the extrinsic.
• authorAccount: CordKeyringPair
The authorAccount
parameter in the prepareExtrinsic
function is of type CordKeyringPair
. It represents the keyring pair used for signing the extrinsic
transaction. This keyring pair contains the cryptographic key pair necessary for signing and
verifying messages in the Corda network.
• 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.
• signCallback: SignExtrinsicCallback
The signCallback
parameter in the prepareExtrinsic
function is a callback function that is used to sign the extrinsic transaction before it is
submitted to the blockchain. This function typically takes care of the signing process using the
private key of the account that is authorizing the transaction. It is
Returns
Promise
<SubmittableExtrinsic
>
A SubmittableExtrinsic
is being returned from the prepareExtrinsic
function.