dispatchRevokeToChain
dispatchRevokeToChain(
statementUri
,creatorUri
,authorAccount
,authorizationUri
,signCallback
):Promise
<void
>
This function dispatches a revocation transaction to a blockchain network after preparing the necessary extrinsic data.
Parameters
• statementUri: stmt:cord:${string}
The statementUri
parameter represents the URI of the
statement that you want to revoke on the chain.
• creatorUri: did:cord:3${string}
The creatorUri
parameter in the dispatchRevokeToChain
function is a
URI that identifies the creator of a statement. It is used to specify the creator of the statement
that is being revoked on the blockchain.
• authorAccount: CordKeyringPair
The authorAccount
parameter in the
dispatchRevokeToChain
function is a CordKeyringPair
object representing the account of the
author who is revoking the statement. This object typically contains the public key, private key,
and other account information needed to sign and submit transactions
• authorizationUri: auth:cord:${string}
The authorizationUri
parameter in the
dispatchRevokeToChain
function is a Uniform Resource Identifier (URI) that specifies the location
or identifier of the authorization being revoked. It is used to identify the specific authorization
that is being revoked in the context of the operation being performed.
• signCallback: SignExtrinsicCallback
The signCallback
parameter in the
dispatchRevokeToChain
function is a callback function that is used to sign the extrinsic before
submitting it to the chain. This callback function typically takes care of signing the transaction
using the private key of the account associated with the author of the statement.
Returns
Promise
<void
>