GitHubAppDocsPlayground
  • Preparing search index...
  • The search index is not available
CCC Docs
  • CCC Docs
  • @ckb-ccc spore
  • index
  • spore
  • createSporeCluster

Function createSporeCluster

  • createSporeCluster(params): Promise<{
        tx: Transaction;
        id: Hex;
    }>
  • Create a new Cluster cell

    Parameters

    • params: {
          signer: ccc.Signer;
          data: ClusterDataV2View;
          to?: ScriptLike;
          tx?: TransactionLike;
          scriptInfo?: SporeScriptInfoLike;
          scriptInfoHash?: BytesLike;
      }
      • signer: ccc.Signer

        who takes the responsibility to balance and sign the transaction

      • data: ClusterDataV2View

        specific format of data required by Cluster protocol

      • Optionalto?: ScriptLike

        the owner of the Cluster cell, which will be replaced with signer if not provided

      • Optionaltx?: TransactionLike

        the transaction skeleton, if not provided, a new one will be created

      • OptionalscriptInfo?: SporeScriptInfoLike

        the script info of new cluster, default spore version if undefined

      • OptionalscriptInfoHash?: BytesLike

        the script info hash used in cobuild

    Returns Promise<{
        tx: Transaction;
        id: Hex;
    }>

    • tx: a new transaction that contains created Cluster cell
    • id: the id of the created Cluster cell
    • Defined in spore/src/cluster/index.ts:80

Settings

Member Visibility
GitHubAppDocsPlayground
CCC Docs
  • Loading...

Generated using TypeDoc