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

    Type declaration

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

        Parameters

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

          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?: null | TransactionLike

            The transaction skeleton (optional).

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

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

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