Skip to main content

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.

Generated from published @canton-network/wallet-sdk TypeDoc snapshots.

Table of Contents

NameKindSummaryIntroducedChangedDeprecatedRemoved
AmuletNamespaceClass-1.3.1---
AssetNamespaceClass-1.3.1---
ExtendedInitializedSDKClass-1.3.1---
InitializedSDKClass-1.3.1---
LedgerProviderClass-1.3.1---
OfflineInitializedSDKClass-1.3.1---
PreapprovalNamespaceClass-1.3.1---
PreparedTransactionClass-1.3.1---
SDKClass-1.3.1---
SDKPluginClass-1.3.1---
SignedTransactionClass-1.3.1---
TokenNamespaceClass-1.3.1---
FeaturedAppServiceInterface-1.3.1---
AmuletConfigType Alias-1.3.1---
AmuletNamespaceConfigType Alias-1.3.1---
AssetBodyType Alias-1.3.1---
AssetConfigType Alias-1.3.1---
AssetContextType Alias-1.3.1---
BasicSDKInterfaceType Alias-1.3.1---
BasicSDKOptionsType AliasOptions for configuring the Wallet SDK instance.1.3.1---
EventType Alias-1.3.1---
EventsConfigType Alias-1.3.1---
ExecuteOptionsType Alias-1.3.1---
ExtendedFullSDKInterfaceType Alias-1.3.1---
ExtendedSDKInterfaceType Alias-1.3.1---
ExtendedSDKOptionsType Alias-1.3.1---
FeaturedAppRightType Alias-1.3.1---
GetExtendedKeysType Alias-1.3.1---
GrantFeaturedAppRightsOptionsType Alias-1.3.1---
LedgerTypesType Alias-1.3.1---
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.1---
PrepareOptionsType Alias-1.3.1---
RegisteredPluginsType Alias-1.3.1---
SDKContextType Alias-1.3.1---
SDKInterfaceType Alias-1.3.1---
SDKOptionsType Alias-1.3.1---
TokenConfigType Alias-1.3.1---
TokenNamespaceConfigType Alias-1.3.1---
TokenProviderConfigType Alias-1.3.1---
EXTENDED_SDK_OPTION_KEYSVariable-1.3.1---
localNetStaticConfigVariable-1.3.1---
fetchAmuletFunction-1.3.1---
findAssetFunction-1.3.1---
getPublicKeyFromPrivateFunction-1.3.1---
signTransactionHashFunction-1.3.1---

Version Change Summary

VersionAddedChangedRemoved
1.3.150--

Reference

Classes

AmuletNamespace

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

AssetNamespace

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/asset/index.d.ts:17
Members
MemberTypeDescription
constructorvoid-
listvoid-
findvoid-

ExtendedInitializedSDK

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/init/initializedSDK.d.ts:30
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
  • Source: dist/wallet/init/initializedSDK.d.ts:13
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:5
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
  • Source: dist/wallet/sdk.d.ts:32
Members
MemberTypeDescription
constructorvoid-
createvoid-
createOfflinevoid-

SDKPlugin

  • Kind: Class
  • Introduced: 1.3.1
  • Source: dist/wallet/init/plugin.d.ts:3
Members
MemberTypeDescription
constructorvoid-
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:14
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
interface FeaturedAppService
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

Type Aliases

AmuletConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/config.d.ts:2
Signature
type AmuletConfig = { auth: TokenProviderConfig; registryUrl: URL; scanApiUrl: string | URL; validatorUrl: string | URL }

AmuletNamespaceConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/namespace.d.ts:9
Signature
type AmuletNamespaceConfig = { amuletService: AmuletService; commonCtx: SDKContext; registry: URL | AssetBody; tokenStandardService: TokenStandardService; validatorParty: PartyId }

AssetBody

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/asset/index.d.ts:4
Signature
type AssetBody = { admin: PartyId; displayName: string; id: string; registryUrl: string; symbol: string }

AssetConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/config.d.ts:13
Signature
type AssetConfig = { auth: TokenProviderConfig; registries: URL[] }

AssetContext

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/asset/index.d.ts:11
Signature
type AssetContext = { error: SDKErrorHandler; list: AssetBody[]; registries: URL[]; tokenStandardService: TokenStandardService }

BasicSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:46
Signature
type BasicSDKInterface<CurrentlyExtended extends keyof ExtendedSDKOptions = never> = Readonly<{ extend: (config: Pick<ExtendedSDKOptions, ExtendedItems>) => Promise<SDKInterface<ExtendedItems | CurrentlyExtended>>; keys: KeysNamespace; ledger: LedgerNamespace; party: PartyNamespace; registerPlugins: (plugins: P) => BasicSDKInterface<CurrentlyExtended> & RegisteredPlugins<P>; user: UserNamespace; utils: SDKUtilsNamespace }>
Type Parameters
NameConstraintDefaultDescription
CurrentlyExtendedkeyof ExtendedSDKOptionsnever-

BasicSDKOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:23
Signature
type BasicSDKOptions<L extends LedgerTypes = void> = Readonly<{ logAdapter?: AllowedLogAdapters; websocketUrl?: string | URL } & { auth: TokenProviderConfig; ledgerClientUrl: string | URL } | { ledgerProvider: Provider<L> }>
Options for configuring the Wallet SDK instance. Type Parameters
NameConstraintDefaultDescription
LLedgerTypes--

Event

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/events/types.d.ts:28
Signature
type Event = LedgerCommonSchemas["JsGetUpdatesResponse"]

EventsConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/config.d.ts:17
Signature
type EventsConfig = { auth: TokenProviderConfig; websocketURL: string }

ExecuteOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/ledger/types.d.ts:11
Signature
type ExecuteOptions = { partyId: PartyId; submissionId?: string }

ExtendedFullSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:55
Signature
type ExtendedFullSDKInterface = Readonly<{ amulet: AmuletNamespace; asset: AssetNamespace; events: EventsNamespace; token: TokenNamespace }>

ExtendedSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:64
Signature
type ExtendedSDKInterface<ExtendedItems extends keyof ExtendedSDKOptions = void> = { [K in keyof Pick<ExtendedSDKOptions, ExtendedItems>]: ExtendedFullSDKInterface[K] } & { extend: (config: Pick<ExtendedSDKOptions, NewExtendedItems>) => Promise<SDKInterface<NewExtendedItems | ExtendedItems>> }
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedSDKOptions--

ExtendedSDKOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:36
Signature
type ExtendedSDKOptions = EnforceKeys<typeof EXTENDED_SDK_OPTION_KEYS[number], Readonly<{ amulet: AmuletConfig; asset: AssetConfig; events: EventsConfig; token: TokenConfig }>>

FeaturedAppRight

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:19
Signature
type FeaturedAppRight = { contract_id: string; created_at: string; created_event_blob: string; payload: Record<string, never>; template_id: string }

GetExtendedKeys

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:43
Signature
type GetExtendedKeys<T extends void = void> = { [K in keyof ExtendedSDKOptions]: K extends keyof T ? undefined extends T[K] ? never : K : never }[keyof ExtendedSDKOptions]
Type Parameters
NameConstraintDefaultDescription
T---

GrantFeaturedAppRightsOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:31
Signature
type GrantFeaturedAppRightsOptions = { delayMs?: number; maxRetries?: number; synchronizerId?: string }

LedgerTypes

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

LookupFeaturedAppRightsOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:26
Signature
type LookupFeaturedAppRightsOptions = { delayMs?: number; maxRetries?: number; partyId: string }

NullableExtendedFullSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:61
Signature
type NullableExtendedFullSDKInterface = { [K in keyof ExtendedFullSDKInterface]: ExtendedFullSDKInterface[K] | null }

OfflineSDKContext

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/sdk.d.ts:24
Signature
type OfflineSDKContext = { error: SDKErrorHandler; logger: SDKLogger }

OfflineSDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:70
Signature
type OfflineSDKInterface = Readonly<{ keys: KeysNamespace; utils: SDKUtilsNamespace }>

PreapprovalParties

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/types.d.ts:2
Signature
type PreapprovalParties = { provider?: PartyId; receiver: PartyId }

PreparedCommand

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/transactions/types.d.ts:3
Signature
type PreparedCommand<K extends keyof RawCommandMap | keyof RawCommandMap[] = ["ExerciseCommand", "CreateCommand"]> = [K extends keyof RawCommandMap[] ? WrappedCommand<K[number]> : K extends keyof RawCommandMap ? WrappedCommand<K> : never, LedgerTypes["DisclosedContract"][]]
Type Parameters
NameConstraintDefaultDescription
Kkeyof RawCommandMap | keyof RawCommandMap[]["ExerciseCommand", "CreateCommand"]-

PrepareOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/ledger/types.d.ts:4
Signature
type PrepareOptions = { commandId?: string; commands: WrappedCommand | WrappedCommand[] | unknown; disclosedContracts?: LedgerTypes["DisclosedContract"][]; partyId: PartyId; synchronizerId?: string }

RegisteredPlugins

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:74
Signature
type RegisteredPlugins<P extends Record<string, (ctx: SDKContext) => SDKPlugin> = Record<string, (ctx: SDKContext) => SDKPlugin>> = { [K in keyof P]: InstanceType<P[K]> }
Type Parameters
NameConstraintDefaultDescription
PRecord&lt;string, (ctx: SDKContext) =&gt; SDKPlugin&gt;Record&lt;string, (ctx: SDKContext) =&gt; SDKPlugin&gt;-

SDKContext

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/sdk.d.ts:17
Signature
type SDKContext = { defaultSynchronizerId: string; error: SDKErrorHandler; ledgerProvider: AbstractLedgerProvider; logger: SDKLogger; userId: string }

SDKInterface

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:69
Signature
type SDKInterface<ExtendedItems extends keyof ExtendedFullSDKInterface = never> = BasicSDKInterface<ExtendedItems> & ExtendedSDKInterface<ExtendedItems>
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedFullSDKInterfacenever-

SDKOptions

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:42
Signature
type SDKOptions<ExtendedItems extends keyof ExtendedSDKOptions = never> = BasicSDKOptions<LedgerTypes> & Pick<ExtendedSDKOptions, ExtendedItems>
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedSDKOptionsnever-

TokenConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/config.d.ts:8
Signature
type TokenConfig = { auth: TokenProviderConfig; registries: URL[] | string[]; validatorUrl: string | URL }

TokenNamespaceConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/token/namespace.d.ts:8
Signature
type TokenNamespaceConfig = { commonCtx: SDKContext; registryUrls: URL[]; tokenStandardService: TokenStandardService; validatorParty: PartyId }

TokenProviderConfig

  • Kind: Type Alias
  • Introduced: 1.3.1
  • Source: node_modules/@canton-network/core-wallet-auth/dist/auth-token-provider.d.ts:4
Signature
type TokenProviderConfig = { method: "static"; token: string } | { credentials: ClientCredentials; issuer: string; method: "self_signed" } | { configUrl: string; credentials: ClientCredentials; method: "client_credentials" }

Variables

EXTENDED_SDK_OPTION_KEYS

  • Kind: Variable
  • Introduced: 1.3.1
  • Source: dist/wallet/init/types/sdk.d.ts:32
Signature
const EXTENDED_SDK_OPTION_KEYS: readonly ["amulet", "token", "asset", "events"]

localNetStaticConfig

  • Kind: Variable
  • Introduced: 1.3.1
  • Source: dist/config.d.ts:1
Signature
const localNetStaticConfig: { LOCALNET_APP_USER_LEDGER_URL: URL; LOCALNET_APP_VALIDATOR_URL: URL; LOCALNET_REGISTRY_API_URL: URL; LOCALNET_SCAN_API_URL: URL; LOCALNET_TOKEN_STANDARD_URL: URL; LOCALNET_USER_ID: string }

Functions

fetchAmulet

  • Kind: Function
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/amulet/namespace.d.ts:63
Signature
fetchAmulet(amuletCtx: AmuletNamespaceConfig): Promise<AssetBody>
Call Signatures
fetchAmulet(amuletCtx: AmuletNamespaceConfig): Promise<AssetBody>
ParameterTypeRequiredDescription
amuletCtxAmuletNamespaceConfigyes-
Returns: Promise<AssetBody>

findAsset

  • Kind: Function
  • Introduced: 1.3.1
  • Source: dist/wallet/namespace/asset/index.d.ts:23
Signature
findAsset(assets: AssetBody[], id: string, error: SDKErrorHandler, registryUrl?: string | URL): AssetBody
Call Signatures
findAsset(assets: AssetBody[], id: string, error: SDKErrorHandler, registryUrl?: string | URL): AssetBody
ParameterTypeRequiredDescription
assetsAssetBody[]yes-
idstringyes-
errorSDKErrorHandleryes-
registryUrlstring | URLno-
Returns: AssetBody

getPublicKeyFromPrivate

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

signTransactionHash

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