CCC Docs
    Preparing search index...

    Function transferDidCkb

    • Transfer a DID CKB cell.

      Parameters

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

        The arguments for transferring the cell.

        • client: Client

          The client to communicate with CKB.

        • id: BytesLike

          The Type ID to transfer.

        • receiver: {} & {}

          The new receiver script.

        • Optionaltx?: TransactionLike | null

          The transaction skeleton (optional).

        • Optionaldata?: {} | {} | ((cell: Cell, data?: DidCkbData) => {} | {} | Promise<{} | {}>) | null

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

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