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

Function transferSpore

  • transferSpore(params): Promise<{
        tx: Transaction;
    }>
  • Transfer one Spore cell

    Parameters

    • params: {
          signer: ccc.Signer;
          id: BytesLike;
          to: ScriptLike;
          tx?: TransactionLike;
          scripts?: SporeScriptInfoLike[];
          scriptInfoHash?: BytesLike;
      }
      • signer: ccc.Signer

        who takes the responsibility to balance and sign the transaction

      • id: BytesLike

        sporeId

      • to: ScriptLike

        Spore's new owner

      • Optionaltx?: TransactionLike

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

      • Optionalscripts?: SporeScriptInfoLike[]
      • OptionalscriptInfoHash?: BytesLike

        the script info hash used in cobuild

    Returns Promise<{
        tx: Transaction;
    }>

    • tx: a new transaction that contains transferred Spore cells
    • Defined in spore/src/spore/index.ts:162

Settings

Member Visibility
GitHubAppDocsPlayground
CCC Docs
  • Loading...

Generated using TypeDoc