CCC Docs
    Preparing search index...

    Function transferSpore

    • Transfer one Spore cell

      Parameters

      • params: {
            signer: Signer;
            id: BytesLike;
            to: ScriptLike;
            tx?: TransactionLike;
            scripts?: SporeScriptInfoLike[];
            scriptInfoHash?: BytesLike;
        }
        • signer: 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