Skip to content

prepareCreateSubSpaceExtrinsic

prepareCreateSubSpaceExtrinsic(chainSpace, count, parent): Promise<SubmittableExtrinsic>

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

chainSpace: IChainSpaceAccountType

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

count: number

The count of transactions permitted to be performed on the chain for the subspace.

parent: `space:cord:${string}`

The chainspace under which the sub-space will be created.

Promise<SubmittableExtrinsic>

The prepared extrinsic ready for batch signing and submitting.

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