Skip to content

prepareCreateSubSpaceExtrinsic

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

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

Parameters

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.

Returns

Promise<SubmittableExtrinsic>

The prepared extrinsic ready for batch signing and submitting.

Source

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