Skip to content
Documentation/canton-network-docs/SDKsWallet SDKUsing the SDKv0 to v1 migrationView on canton-network-docs
canton-network-docs/SDKsWallet SDKUsing the SDKv0 to v1 migration

Migration cheat sheet

Use this table to look up the v1 equivalent of a v0 controller method. For context and before/after examples, see the migration overview and the namespace pages.

Migration reference table

v0 controller + methodv1 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.prepareSignExecuteAndWaitForsdk.ledger.prepare({partyId, commands, disclosedContracts}).sign(privateKey).execute(partyId)
sdk.userLedger.activeContractssdk.ledger.acs.read
sdk.adminLedger.uploadDarsdk.ledger.dar.upload
sdk.userLedger.isPackageUploadedsdk.ledger.dar.check
sdk.adminLedger.createUsersdk.user.create
sdk.userLedger.grantRightssdk.user.rights.grant
sdk.tokenStandard.createTransfersdk.token.transfer.create
sdk.tokenStandard.exerciseTransferInstructionChoicesdk.token.transfer.accept / sdk.token.transfer.reject / sdk.token.transfer.withdraw
sdk.tokenStandard.fetchPendingTransferInstructionViewsdk.token.transfer.pending
sdk.tokenStandard.listHoldingTransactions({partyId})sdk.token.holdings
sdk.tokenStandard.listHoldingUtxos()sdk.token.utxos.list({partyId})
sdk.tokenStandard.mergeHoldingUtxossdk.token.utxos.merge
sdk.tokenStandard.fetchPendingAllocationRequestViewsdk.token.allocation.pending(partyId, ALLOCATION_REQUEST_INTERFACE_ID)
sdk.tokenStandard.fetchPendingAllocationInstructionViewsdk.token.allocation.pending(partyId, ALLOCATION_INSTRUCTION_INTERFACE_ID)
sdk.tokenStandard.fetchPendingAllocationViewsdk.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.getMemberTrafficStatussdk.amulet.traffic.status
sdk.tokenStandard.buyMemberTrafficsdk.amulet.traffic.buy
sdk.userLedger.createTransferPreapprovalCommandsdk.amulet.preapproval.command.create
sdk.tokenStandard.getTransferPreApprovalByPartysdk.amulet.preapproval.fetchStatus
sdk.tokenStandard.createRenewTransferPreapprovalsdk.amulet.preapproval.renew
sdk.tokenStandard.createCancelTransferPreapprovalsdk.amulet.preapproval.command.cancel
sdk.tokenStandard.createTapsdk.amulet.tap
sdk.tokenStandard.lookupFeaturedAppssdk.amulet.featuredApp.rights
sdk.tokenStandard.selfGrantFeatureAppRightssdk.amulet.featuredApp.grant
sdk.tokenStandard.getInstrumentByIdsdk.asset.find
sdk.tokenStandard.listInstrumentssdk.asset.list
sdk.userLedger.subscribeToUpdatessdk.events.updates
sdk.userLedger.subscribeToCompletionssdk.events.completions