CCC Docs
    Preparing search index...

    Function transferDidCkb

    • Transfer a DID CKB cell.

      Parameters

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

        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
              | DidCkbDataLike
              | (
                  (
                      cell: Cell,
                      data?: DidCkbData,
                  ) => DidCkbDataLike | Promise<DidCkbDataLike>
              )

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

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