Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/TypeScriptView on Canton Network Docs

Wallet SDK

TypeScript package

Wallet SDK

TypeScript client library reference for wallet integrations.

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---

Reference

Classes

AmuletNamespace

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

AssetNamespace

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

CustomLogAdapter

  • Kind: Class
  • 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
  • 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
  • Source: dist/wallet/init/initializedSDK.d.ts:13
Type Parameters
NameConstraintDefaultDescription
CurrentlyExtendedkeyof ExtendedSDKOptionsnever-
Members
MemberTypeDescription
constructorvoid-
ctxSDKContext-
keysKeysNamespace-
ledgerLedgerNamespace-
partyPartyNamespace-
userUserNamespace-
utilsSDKUtilsNamespace-
extendvoid-
registerPluginsvoid-

LedgerProvider

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

OfflineInitializedSDK

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

PreapprovalNamespace

Class
  • Kind: Class
  • 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

Class
  • Kind: Class
  • 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
  • Source: dist/wallet/sdk.d.ts:21
Members
MemberTypeDescription
constructorvoid-
createvoid-
createOfflinevoid-

SDKPlugin

  • Kind: Class
  • Source: dist/wallet/init/plugin.d.ts:3
Members
MemberTypeDescription
constructorvoid-
_ctxSDKContext-
ctxSDKContext-
loggerSDKLogger-
namestring-

SignedTransaction

Class
  • Kind: Class
  • 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

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

Interfaces

FeaturedAppService

Interface
  • Kind: Interface
  • 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

LogAdapter

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

Type Aliases

AllowedLogAdapters

Type AliasAdded 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/logger/types.d.ts:44
Signature
type AllowedLogAdapters = DefaultLogAdapters | CustomLogAdapter

AmuletConfig

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/init/types/config.d.ts:3
Signature
type AmuletConfig = { auth: TokenProviderConfig; registryUrl: URLInput; scanApiUrl: URLInput; validatorUrl?: URLInput }

AmuletNamespaceConfig

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/namespace/amulet/namespace.d.ts:11
Signature
type AmuletNamespaceConfig = { amuletService: AmuletService; commonCtx: SDKContext; registry: ParsedURL | AssetBody; tokenStandardService: TokenStandardService; validatorParty?: PartyId }

AssetBody

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

AssetConfig

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/init/types/config.d.ts:14
Signature
type AssetConfig = { auth: TokenProviderConfig; registries: URLInput[] }

AssetContext

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

BasicSDKInterface

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/init/types/sdk.d.ts:47
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) => SDKInterface<CurrentlyExtended> & RegisteredPlugins<P>; user: UserNamespace; utils: SDKUtilsNamespace }>
Type Parameters
NameConstraintDefaultDescription
CurrentlyExtendedkeyof ExtendedSDKOptionsnever-

BasicSDKOptions

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

CompletionEvent

Type AliasAdded 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/namespace/events/types.d.ts:30
Signature
type CompletionEvent = LedgerCommonSchemas["CompletionStreamResponse"]

DefaultLogAdapters

Type AliasAdded 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/logger/types.d.ts:43
Signature
type DefaultLogAdapters = "console" | "pino"

Event

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/namespace/events/types.d.ts:31
Signature
type Event = UpdateEvent | CompletionEvent

EventsConfig

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/init/types/config.d.ts:18
Signature
type EventsConfig = { auth: TokenProviderConfig; websocketURL: URLInput }

ExecuteOptions

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

ExtendedFullSDKInterface

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

ExtendedSDKInterface

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/init/types/sdk.d.ts:65
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>>; registerPlugins: (plugins: P) => SDKInterface<ExtendedItems> & RegisteredPlugins<P> }
Type Parameters
NameConstraintDefaultDescription
ExtendedItemskeyof ExtendedSDKOptions--

ExtendedSDKOptions

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

FeaturedAppRight

Type Alias
  • Kind: Type Alias
  • 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

Type Alias
  • Kind: Type Alias
  • Source: dist/wallet/init/types/sdk.d.ts:44
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

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

LedgerTypes

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

LogContext

Type AliasAdded 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/logger/types.d.ts:18
Signature
type LogContext = Partial<{ namespace: string; partyId: PartyId; response: unknown; timestamp: string; traceId: string }>
Contextual metadata for log entries.

LogLevel

Type AliasAdded 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/logger/types.d.ts:32
Signature
type LogLevel = typeof LOG_LEVELS_TUPLE[number]

LookupFeaturedAppRightsOptions

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

NullableExtendedFullSDKInterface

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

OfflineSDKContext

Type Alias
  • Kind: Type Alias
  • Source: dist/wallet/init/types/context.d.ts:11
Signature
type OfflineSDKContext = { error: SDKErrorHandler; logger: SDKLogger }

OfflineSDKInterface

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

PreapprovalParties

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

PreparedCommand

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • 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, LedgerCommonSchemas["DisclosedContract"][]]
Type Parameters
NameConstraintDefaultDescription
Kkeyof RawCommandMap | keyof RawCommandMap[]["ExerciseCommand", "CreateCommand"]-

PrepareOptions

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

RegisteredPlugins

Type Alias
  • Kind: Type Alias
  • Source: dist/wallet/init/types/sdk.d.ts:76
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<string, (ctx: SDKContext) => SDKPlugin>Record<string, (ctx: SDKContext) => SDKPlugin>-

SDKContext

Type Alias
  • Kind: Type Alias
  • Source: dist/wallet/init/types/context.d.ts:4
Signature
type SDKContext = { defaultSynchronizerId: string; error: SDKErrorHandler; ledgerProvider: AbstractLedgerProvider; logger: SDKLogger; userId: string }

SDKInterface

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

SDKOptions

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

TokenConfig

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/init/types/config.d.ts:9
Signature
type TokenConfig = { auth: TokenProviderConfig; registries: URLInput[]; validatorUrl?: URLInput }

TokenNamespaceConfig

Type AliasUpdated 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/namespace/token/namespace.d.ts:9
Signature
type TokenNamespaceConfig = { commonCtx: SDKContext; registryUrls: ParsedURL[]; tokenStandardService: TokenStandardService; validatorParty?: PartyId }

TokenProviderConfig

Type Alias
  • Kind: Type Alias
  • 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" }

UpdateEvent

Type AliasAdded 1.4.0
  • Kind: Type Alias
  • Source: dist/wallet/namespace/events/types.d.ts:29
Signature
type UpdateEvent = LedgerCommonSchemas["JsGetUpdatesResponse"]

Variables

EXTENDED_SDK_OPTION_KEYS

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

localNetStaticConfig

Variable
  • Kind: Variable
  • 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

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

findAsset

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

getPublicKeyFromPrivate

Function
  • Kind: Function
  • 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

getValidatorParty

FunctionAdded 1.4.0
  • Kind: Function
  • Source: dist/wallet/sdk.d.ts:31
Signature
getValidatorParty(validatorUrl: URL, auth: AuthTokenProvider | TokenProviderConfig, sdkLogger?: SDKLogger): Promise<string>
Call Signatures
getValidatorParty(validatorUrl: URL, auth: AuthTokenProvider | TokenProviderConfig, sdkLogger?: SDKLogger): Promise<string>
ParameterTypeRequiredDescription
validatorUrlURLyes-
authAuthTokenProvider | TokenProviderConfigyes-
sdkLoggerSDKLoggerno-
Returns: Promise<string>

signTransactionHash

Function
  • Kind: Function
  • 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

History

Updated1.4.0

AssetNamespace: details updated

ExtendedInitializedSDK: details updated

InitializedSDK: type parameters added: CurrentlyExtended

SDK: details updated

SDKPlugin: members added: _ctx

AmuletConfig: signature updated

AmuletNamespaceConfig: signature updated

AssetBody: signature updated

AssetConfig: signature updated

BasicSDKInterface: signature updated

BasicSDKOptions: signature updated

Event: signature updated

EventsConfig: signature updated

ExtendedSDKInterface: signature updated

GrantFeaturedAppRightsOptions: signature updated

PreparedCommand: signature updated

PrepareOptions: signature updated

TokenConfig: signature updated

TokenNamespaceConfig: signature updated

findAsset: call signatures updated

Added1.4.0

9 exported symbols added.