Skip to main content
Generated from published @canton-network/wallet-sdk TypeDoc snapshots.

Table of Contents

NameKindSummaryIntroducedChangedDeprecatedRemoved
AmuletNamespaceClass-1.3.1---
AssetNamespaceClass-1.3.11.4.0: details updated--
CustomLogAdapterClassCustomLogAdapter allows users to provide their own logging implementation.

This adapter can be passed to SDKLogger to enable custom log handling logic,
such as integrating with third-party logging services or frameworks.
1.4.0---
ExtendedInitializedSDKClass-1.3.11.4.0: details updated--
InitializedSDKClass-1.3.11.4.0: type parameters added: CurrentlyExtended--
LedgerProviderClass-1.3.1---
OfflineInitializedSDKClass-1.3.1---
PreapprovalNamespaceClass-1.3.1---
PreparedTransactionClass-1.3.1---
SDKClass-1.3.11.4.0: details updated--
SDKPluginClass-1.3.11.4.0: members added: _ctx--
SignedTransactionClass-1.3.1---
TokenNamespaceClass-1.3.1---
FeaturedAppServiceInterface-1.3.1---
LogAdapterInterface-1.4.0---
AllowedLogAdaptersType Alias-1.4.0---
AmuletConfigType Alias-1.3.11.4.0: signature updated--
AmuletNamespaceConfigType Alias-1.3.11.4.0: signature updated--
AssetBodyType Alias-1.3.11.4.0: signature updated--
AssetConfigType Alias-1.3.11.4.0: signature updated--
AssetContextType Alias-1.3.1---
BasicSDKInterfaceType Alias-1.3.11.4.0: signature updated--
BasicSDKOptionsType AliasOptions for configuring the Wallet SDK instance.1.3.11.4.0: signature updated--
CompletionEventType Alias-1.4.0---
DefaultLogAdaptersType Alias-1.4.0---
EventType Alias-1.3.11.4.0: signature updated--
EventsConfigType Alias-1.3.11.4.0: signature updated--
ExecuteOptionsType Alias-1.3.1---
ExtendedFullSDKInterfaceType Alias-1.3.1---
ExtendedSDKInterfaceType Alias-1.3.11.4.0: signature updated--
ExtendedSDKOptionsType Alias-1.3.1---
FeaturedAppRightType Alias-1.3.1---
GetExtendedKeysType Alias-1.3.1---
GrantFeaturedAppRightsOptionsType Alias-1.3.11.4.0: signature updated--
LedgerTypesType Alias-1.3.1---
LogContextType AliasContextual metadata for log entries.1.4.0---
LogLevelType Alias-1.4.0---
LookupFeaturedAppRightsOptionsType Alias-1.3.1---
NullableExtendedFullSDKInterfaceType Alias-1.3.1---
OfflineSDKContextType Alias-1.3.1---
OfflineSDKInterfaceType Alias-1.3.1---
PreapprovalPartiesType Alias-1.3.1---
PreparedCommandType Alias-1.3.11.4.0: signature updated--
PrepareOptionsType Alias-1.3.11.4.0: signature updated--
RegisteredPluginsType Alias-1.3.1---
SDKContextType Alias-1.3.1---
SDKInterfaceType Alias-1.3.1---
SDKOptionsType Alias-1.3.1---
TokenConfigType Alias-1.3.11.4.0: signature updated--
TokenNamespaceConfigType Alias-1.3.11.4.0: signature updated--
TokenProviderConfigType Alias-1.3.1---
UpdateEventType Alias-1.4.0---
EXTENDED_SDK_OPTION_KEYSVariable-1.3.1---
localNetStaticConfigVariable-1.3.1---
fetchAmuletFunction-1.3.1---
findAssetFunction-1.3.11.4.0: call signatures updated--
getPublicKeyFromPrivateFunction-1.3.1---
getValidatorPartyFunction-1.4.0---
signTransactionHashFunction-1.3.1---

Version Change Summary

VersionAddedChangedRemoved
1.3.150--
1.4.0920-

Reference

Classes

AmuletNamespace

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/namespace.d.ts:18
Members
MemberTypeDescription
constructorvoid-
featuredAppFeaturedAppNamespace-
preapprovalPreapprovalNamespace-
trafficTrafficNamespace-
tapvoid-
tapInternalvoid-

AssetNamespace

  • Kind: Class
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/asset/index.d.ts:17
Version Changes
VersionChanges
1.4.0details updated
Members
MemberTypeDescription
constructorvoid-
listvoid-
findvoid-

CustomLogAdapter

  • Kind: Class
  • Introduced: 1.4.0
  • Source: dist/wallet/logger/adapter/custom.d.ts:16
CustomLogAdapter allows users to provide their own logging implementation. This adapter can be passed to SDKLogger to enable custom log handling logic, such as integrating with third-party logging services or frameworks. Members
MemberTypeDescription
constructorvoid-
log(type: "debug" | "error" | "info" | "warn" | "trace", ctx: Partial, message?: string) => void-

ExtendedInitializedSDK

  • Kind: Class
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/initializedSDK.d.ts:30
Version Changes
VersionChanges
1.4.0details updated
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedSDKOptions--
Members
MemberTypeDescription
amuletExtendedItems extends "amulet" ? AmuletNamespace : never-
assetExtendedItems extends "asset" ? AssetNamespace : never-
ctxSDKContext-
eventsExtendedItems extends "events" ? EventsNamespace : never-
keysKeysNamespace-
ledgerLedgerNamespace-
partyPartyNamespace-
tokenExtendedItems extends "token" ? TokenNamespace : never-
userUserNamespace-
utilsSDKUtilsNamespace-
extendvoid-
registerPluginsvoid-
createvoid-

InitializedSDK

  • Kind: Class
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/initializedSDK.d.ts:13
Version Changes
VersionChanges
1.4.0type parameters added: CurrentlyExtended
Type Parameters
NameConstraintDefaultDescription
CurrentlyExtendedkeyof ExtendedSDKOptionsnever-
Members
MemberTypeDescription
constructorvoid-
ctxSDKContext-
keysKeysNamespace-
ledgerLedgerNamespace-
partyPartyNamespace-
userUserNamespace-
utilsSDKUtilsNamespace-
extendvoid-
registerPluginsvoid-

LedgerProvider

  • Kind: Class
  • Introduced: 1.3.1
  • Source: node_modules/@canton-network/core-provider-ledger/dist/LedgerProvider.d.ts:8
Members
MemberTypeDescription
constructorvoid-
listeners{}-
emitvoid-
onvoid-
removeListenervoid-
requestvoid-

OfflineInitializedSDK

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/init/initializedSDK.d.ts:24
Members
MemberTypeDescription
constructorvoid-
ctxOfflineSDKContext-
keysKeysNamespace-
utilsSDKUtilsNamespace-

PreapprovalNamespace

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/preapproval.d.ts:6
Members
MemberTypeDescription
constructorvoid-
command{ cancel: (args: { parties: PreapprovalParties }) => Promise<[{ ExerciseCommand: { choice: string; choiceArgument: unknown; contractId: string; templateId: string } & { choice: string; choiceArgument: unknown; contractId: string; templateId: string } }, { contractId?: string; createdEventBlob: string; synchronizerId?: string; templateId?: string } & { contractId?: string; createdEventBlob: string; synchronizerId?: string; templateId?: string }[]] | readonly [null, readonly []]>; create: (args: { parties: PreapprovalParties }) => Promise<{ CreateCommand: { createArguments: unknown; templateId: string } & { createArguments: unknown; templateId: string } }> }Commands for managing transfer preapprovals. The return result can be used as an argument to pass to signing and execution of a transaction.
Transfer preapprovals allow receivers to automatically accept incoming transfers.
fetchQuickvoid-
fetchStatusvoid-
renewvoid-

PreparedTransaction

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/transactions/prepared.d.ts:6
Members
MemberTypeDescription
constructorvoid-
preparedPromisePromise<{ costEstimation?: { confirmationRequestTrafficCostEstimation: number; confirmationResponseTrafficCostEstimation: number; estimationTimestamp: string; totalTrafficCostEstimation: number }; hashingDetails?: string; hashingSchemeVersion: "HASHING_SCHEME_VERSION_UNSPECIFIED" | "HASHING_SCHEME_VERSION_V2" | "HASHING_SCHEME_VERSION_V3"; preparedTransaction: string; preparedTransactionHash: string }>-
decodevoid-
signvoid-
toJSONvoid-

SDK

  • Kind: Class
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/sdk.d.ts:21
Version Changes
VersionChanges
1.4.0details updated
Members
MemberTypeDescription
constructorvoid-
createvoid-
createOfflinevoid-

SDKPlugin

  • Kind: Class
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/plugin.d.ts:3
Version Changes
VersionChanges
1.4.0members added: _ctx
Members
MemberTypeDescription
constructorvoid-
_ctxSDKContext-
ctxSDKContext-
loggerSDKLogger-
namestring-

SignedTransaction

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/transactions/signed.d.ts:5
Members
MemberTypeDescription
constructorvoid-
signedPromisePromise<{ response: { costEstimation?: { confirmationRequestTrafficCostEstimation: number; confirmationResponseTrafficCostEstimation: number; estimationTimestamp: string; totalTrafficCostEstimation: number }; hashingDetails?: string; hashingSchemeVersion: "HASHING_SCHEME_VERSION_UNSPECIFIED" | "HASHING_SCHEME_VERSION_V2" | "HASHING_SCHEME_VERSION_V3"; preparedTransaction: string; preparedTransactionHash: string }; signature: string }>-
executevoid-
responsevoid-
signaturevoid-

TokenNamespace

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/token/namespace.d.ts:15
Members
MemberTypeDescription
constructorvoid-
allocationAllocationNamespace-
transferTransferNamespace-
utxosUtxoNamespace-
holdingsvoid-
transactionsByIdvoid-

Interfaces

FeaturedAppService

  • Kind: Interface
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:6
Signature
Members
MemberTypeDescription
grant(options?: GrantFeaturedAppRightsOptions) => Promise<FeaturedAppRight>Submits a command to grant feature app rights for validator operator.
rights(options: LookupFeaturedAppRightsOptions) => Promise<FeaturedAppRight>Looks up if a party has FeaturedAppRight.
Has an in built retry and delay between attempts

LogAdapter

  • Kind: Interface
  • Introduced: 1.4.0
  • Source: dist/wallet/logger/types.d.ts:40
Signature
Members
MemberTypeDescription
logvoid-

Type Aliases

AllowedLogAdapters

  • Kind: Type Alias
  • Introduced: 1.4.0
  • Source: dist/wallet/logger/types.d.ts:44
Signature

AmuletConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/config.d.ts:3
Version Changes
VersionChanges
1.4.0signature updated
Signature

AmuletNamespaceConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/amulet/namespace.d.ts:11
Version Changes
VersionChanges
1.4.0signature updated
Signature

AssetBody

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/asset/index.d.ts:4
Version Changes
VersionChanges
1.4.0signature updated
Signature

AssetConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/config.d.ts:14
Version Changes
VersionChanges
1.4.0signature updated
Signature

AssetContext

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/asset/index.d.ts:11
Signature

BasicSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/sdk.d.ts:47
Version Changes
VersionChanges
1.4.0signature updated
Signature
Type Parameters
NameConstraintDefaultDescription
CurrentlyExtendedkeyof ExtendedSDKOptionsnever-

BasicSDKOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/sdk.d.ts:24
Version Changes
VersionChanges
1.4.0signature updated
Signature
Options for configuring the Wallet SDK instance. Type Parameters
NameConstraintDefaultDescription
LLedgerTypes--

CompletionEvent

  • Kind: Type Alias
  • Introduced: 1.4.0
  • Source: dist/wallet/namespace/events/types.d.ts:30
Signature

DefaultLogAdapters

  • Kind: Type Alias
  • Introduced: 1.4.0
  • Source: dist/wallet/logger/types.d.ts:43
Signature

Event

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/events/types.d.ts:31
Version Changes
VersionChanges
1.4.0signature updated
Signature

EventsConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/config.d.ts:18
Version Changes
VersionChanges
1.4.0signature updated
Signature

ExecuteOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/ledger/types.d.ts:11
Signature

ExtendedFullSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:56
Signature

ExtendedSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/sdk.d.ts:65
Version Changes
VersionChanges
1.4.0signature updated
Signature
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedSDKOptions--

ExtendedSDKOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:37
Signature

FeaturedAppRight

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:19
Signature

GetExtendedKeys

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:44
Signature
Type Parameters
NameConstraintDefaultDescription
T---

GrantFeaturedAppRightsOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/amulet/types.d.ts:31
Version Changes
VersionChanges
1.4.0signature updated
Signature

LedgerTypes

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/sdk.d.ts:16
Signature

LogContext

  • Kind: Type Alias
  • Introduced: 1.4.0
  • Source: dist/wallet/logger/types.d.ts:18
Signature
Contextual metadata for log entries.

LogLevel

  • Kind: Type Alias
  • Introduced: 1.4.0
  • Source: dist/wallet/logger/types.d.ts:32
Signature

LookupFeaturedAppRightsOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:26
Signature

NullableExtendedFullSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:62
Signature

OfflineSDKContext

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/context.d.ts:11
Signature

OfflineSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:72
Signature

PreapprovalParties

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:2
Signature

PreparedCommand

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/transactions/types.d.ts:3
Version Changes
VersionChanges
1.4.0signature updated
Signature
Type Parameters
NameConstraintDefaultDescription
Kkeyof RawCommandMap | keyof RawCommandMap[]["ExerciseCommand", "CreateCommand"]-

PrepareOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/ledger/types.d.ts:4
Version Changes
VersionChanges
1.4.0signature updated
Signature

RegisteredPlugins

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:76
Signature
Type Parameters
NameConstraintDefaultDescription
PRecord<string, (ctx: SDKContext) => SDKPlugin>Record<string, (ctx: SDKContext) => SDKPlugin>-

SDKContext

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/context.d.ts:4
Signature

SDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:71
Signature
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedFullSDKInterfacenever-

SDKOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:43
Signature
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedSDKOptionsnever-

TokenConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/init/types/config.d.ts:9
Version Changes
VersionChanges
1.4.0signature updated
Signature

TokenNamespaceConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/token/namespace.d.ts:9
Version Changes
VersionChanges
1.4.0signature updated
Signature

TokenProviderConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: node_modules/@canton-network/core-wallet-auth/dist/auth-token-provider.d.ts:4
Signature

UpdateEvent

  • Kind: Type Alias
  • Introduced: 1.4.0
  • Source: dist/wallet/namespace/events/types.d.ts:29
Signature

Variables

EXTENDED_SDK_OPTION_KEYS

  • Kind: Variable
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:33
Signature

localNetStaticConfig

  • Kind: Variable
  • Introduced: 1.3.1
  • Source: dist/config.d.ts:1
Signature

Functions

fetchAmulet

  • Kind: Function
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/namespace.d.ts:65
Signature
Call Signatures
ParameterTypeRequiredDescription
amuletCtxAmuletNamespaceConfigyes-
Returns: Promise<AssetBody>

findAsset

  • Kind: Function
  • Introduced: 1.3.1
  • Changed in: 1.4.0
  • Source: dist/wallet/namespace/asset/index.d.ts:23
Version Changes
VersionChanges
1.4.0call signatures updated
Signature
Call Signatures
ParameterTypeRequiredDescription
assetsAssetBody[]yes-
idstringyes-
errorSDKErrorHandleryes-
registryUrlURLno-
Returns: AssetBody

getPublicKeyFromPrivate

  • Kind: Function
  • Introduced: 1.3.1
  • Source: node_modules/@canton-network/core-signing-lib/dist/index.d.ts:30
Signature
Call Signatures
ParameterTypeRequiredDescription
privateKeyBase64stringyes-
Returns: string

getValidatorParty

  • Kind: Function
  • Introduced: 1.4.0
  • Source: dist/wallet/sdk.d.ts:31
Signature
Call Signatures
ParameterTypeRequiredDescription
validatorUrlURLyes-
authAuthTokenProvider | TokenProviderConfigyes-
sdkLoggerSDKLoggerno-
Returns: Promise<string>

signTransactionHash

  • Kind: Function
  • Introduced: 1.3.1
  • Source: node_modules/@canton-network/core-signing-lib/dist/index.d.ts:28
Signature
Call Signatures
ParameterTypeRequiredDescription
txHashstringyes-
privateKeystringyes-
Returns: string