CCC Docs
    Preparing search index...
    transferTypeId: (
        this: void,
        props: {
            client: Client;
            id: BytesLike;
            receiver: ScriptLike;
            tx?: TransactionLike | null;
            data?:
                | BytesLike
                | ((cell: Cell, data?: Bytes$1) => BytesLike | Promise<BytesLike>)
                | null;
        },
    ) => Promise<{ tx: Transaction; inIndex: number; outIndex: number }>

    Type Declaration

      • (
            this: void,
            props: {
                client: Client;
                id: BytesLike;
                receiver: ScriptLike;
                tx?: TransactionLike | null;
                data?:
                    | BytesLike
                    | ((cell: Cell, data?: Bytes$1) => BytesLike | Promise<BytesLike>)
                    | null;
            },
        ): Promise<{ tx: Transaction; inIndex: number; outIndex: number }>
      • Transfer a Type ID cell.

        Parameters

        • this: void
        • props: {
              client: Client;
              id: BytesLike;
              receiver: ScriptLike;
              tx?: TransactionLike | null;
              data?:
                  | BytesLike
                  | ((cell: Cell, data?: Bytes$1) => BytesLike | Promise<BytesLike>)
                  | null;
          }

          The arguments for transferring the cell.

          • client: Client

            The client to communicate with CKB.

          • id: BytesLike

            The Type ID to transfer.

          • receiver: ScriptLike

            The new receiver script.

          • Optionaltx?: TransactionLike | null

            The transaction skeleton (optional).

          • Optionaldata?:
                | BytesLike
                | ((cell: Cell, data?: Bytes$1) => BytesLike | Promise<BytesLike>)
                | null

            The new output data or a transformer to update the data (optional).

        Returns Promise<{ tx: Transaction; inIndex: number; outIndex: number }>