> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Migration cheat sheet

> Quick v0 to v1 Wallet SDK method mapping reference.

Use this table to look up the v1 equivalent of a v0 controller method. For context and before/after examples, see the [migration overview](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration) and the namespace pages.

## Migration reference table

| v0 controller + method                                               | v1 namespace + method                                                                           |
| -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `createKeyPair()`                                                    | `sdk.keys.generate()`                                                                           |
| `sdk.userLedger.signAndAllocateExternalParty(privateKey, partyHint)` | `sdk.party.external.create(publicKey, {partyHint}).sign(privateKey).execute()`                  |
| `sdk.userLedger.listWallets()`                                       | `sdk.party.list()`                                                                              |
| `sdk.userLedger.prepareSignExecuteAndWaitFor`                        | `sdk.ledger.prepare({partyId, commands, disclosedContracts}).sign(privateKey).execute(partyId)` |
| `sdk.userLedger.activeContracts`                                     | `sdk.ledger.acs.read`                                                                           |
| `sdk.adminLedger.uploadDar`                                          | `sdk.ledger.dar.upload`                                                                         |
| `sdk.userLedger.isPackageUploaded`                                   | `sdk.ledger.dar.check`                                                                          |
| `sdk.adminLedger.createUser`                                         | `sdk.user.create`                                                                               |
| `sdk.userLedger.grantRights`                                         | `sdk.user.rights.grant`                                                                         |
| `sdk.tokenStandard.createTransfer`                                   | `sdk.token.transfer.create`                                                                     |
| `sdk.tokenStandard.exerciseTransferInstructionChoice`                | `sdk.token.transfer.accept` / `sdk.token.transfer.reject` / `sdk.token.transfer.withdraw`       |
| `sdk.tokenStandard.fetchPendingTransferInstructionView`              | `sdk.token.transfer.pending`                                                                    |
| `sdk.tokenStandard.listHoldingTransactions({partyId})`               | `sdk.token.holdings`                                                                            |
| `sdk.tokenStandard.listHoldingUtxos()`                               | `sdk.token.utxos.list({partyId})`                                                               |
| `sdk.tokenStandard.mergeHoldingUtxos`                                | `sdk.token.utxos.merge`                                                                         |
| `sdk.tokenStandard.fetchPendingAllocationRequestView`                | `sdk.token.allocation.pending(partyId, ALLOCATION_REQUEST_INTERFACE_ID)`                        |
| `sdk.tokenStandard.fetchPendingAllocationInstructionView`            | `sdk.token.allocation.pending(partyId, ALLOCATION_INSTRUCTION_INTERFACE_ID)`                    |
| `sdk.tokenStandard.fetchPendingAllocationView`                       | `sdk.token.allocation.pending(partyId)`                                                         |
| `sdk.tokenStandard.getAllocationExecuteTransferChoiceContext(cId)`   | `sdk.token.allocation.context.execute`                                                          |
| `sdk.tokenStandard.getAllocationWithdrawChoiceContext(cId)`          | `sdk.token.allocation.context.withdraw`                                                         |
| `sdk.tokenStandard.getAllocationCancelChoiceContext(cId)`            | `sdk.token.allocation.context.cancel`                                                           |
| `sdk.tokenStandard.getMemberTrafficStatus`                           | `sdk.amulet.traffic.status`                                                                     |
| `sdk.tokenStandard.buyMemberTraffic`                                 | `sdk.amulet.traffic.buy`                                                                        |
| `sdk.userLedger.createTransferPreapprovalCommand`                    | `sdk.amulet.preapproval.command.create`                                                         |
| `sdk.tokenStandard.getTransferPreApprovalByParty`                    | `sdk.amulet.preapproval.fetchStatus`                                                            |
| `sdk.tokenStandard.createRenewTransferPreapproval`                   | `sdk.amulet.preapproval.renew`                                                                  |
| `sdk.tokenStandard.createCancelTransferPreapproval`                  | `sdk.amulet.preapproval.command.cancel`                                                         |
| `sdk.tokenStandard.createTap`                                        | `sdk.amulet.tap`                                                                                |
| `sdk.tokenStandard.lookupFeaturedApps`                               | `sdk.amulet.featuredApp.rights`                                                                 |
| `sdk.tokenStandard.selfGrantFeatureAppRights`                        | `sdk.amulet.featuredApp.grant`                                                                  |
| `sdk.tokenStandard.getInstrumentById`                                | `sdk.asset.find`                                                                                |
| `sdk.tokenStandard.listInstruments`                                  | `sdk.asset.list`                                                                                |
| `sdk.userLedger.subscribeToUpdates`                                  | `sdk.events.updates`                                                                            |
| `sdk.userLedger.subscribeToCompletions`                              | `sdk.events.completions`                                                                        |

## Related pages

* [v0 to v1 migration overview](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration)
* [Party namespace](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration/party)
* [Token namespace](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration/token)
* [User namespace](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration/user)
* [Amulet namespace](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration/amulet)
* [Ledger namespace](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration/ledger)
* [Asset namespace](/sdks-tools/sdks/wallet-sdk/using-the-sdk/v0-to-v1-migration/asset)
