Skip to content

prepareCreateSpaceExtrinsic

prepareCreateSpaceExtrinsic(chainSpace, creatorUri, signCallback, authorAccount): Promise<SubmittableExtrinsic>

Prepares the creation of a chain space extrinsic for later dispatch to the blockchain.

Parameters

chainSpace: IChainSpace

The ChainSpace object containing necessary information for creating the ChainSpace on the blockchain.

creatorUri: `did:cord:3${string}`

The DID URI of the creator, used to authorize the transaction.

signCallback: SignExtrinsicCallback

The callback function for signing the transaction.

authorAccount: CordKeyringPair

The blockchain account used for signing and submitting the transaction.

Returns

Promise<SubmittableExtrinsic>

The prepared extrinsic ready for batch signing and submitting.

Source

chain-space/src/ChainSpace.chain.ts:208