CCC Docs
    Preparing search index...

    Function migrateDidCkb

    • Build a create tx whose output declares an imported did:plc identifier in its localId field. Equivalent to calling createDidCkb with data.value.localId = sourceDid; provided as a named helper for symmetry with the other DID operations and so did:plc: migrations have an obvious entry point.

      The caller is responsible for: completing inputs + fee, building the migration witness with buildMigrationWitness, and setting it at the witness slot of input 0. See packages/examples/src/migrateDid.ts for the full flow.

      Parameters

      Returns Promise<{ tx: Transaction; id: `0x${string}`; index: number }>