Wallet SDK
TypeScript package
Wallet SDK
TypeScript client library reference for wallet integrations.
@canton-network/wallet-sdk TypeDoc snapshots.
Table of Contents
| Name | Kind | Summary | Introduced | Changed | Deprecated | Removed |
|---|---|---|---|---|---|---|
AmuletNamespace | Class | - | 1.3.1 | 1.5.0: members added: isDevNet | - | - |
AssetNamespace | Class | - | 1.3.1 | 1.4.0: details updated<br/>1.5.0: details updated | - | - |
CustomLogAdapter | Class | 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. | 1.4.0 | - | - | - |
ExtendedInitializedSDK | Class | - | 1.3.1 | 1.4.0: details updated<br/>1.5.0: details updated | - | - |
InitializedSDK | Class | - | 1.3.1 | 1.4.0: type parameters added: CurrentlyExtended<br/>1.5.0: details updated | - | - |
LedgerProvider | Class | - | 1.3.1 | - | - | - |
OfflineInitializedSDK | Class | - | 1.3.1 | - | - | - |
PreapprovalNamespace | Class | - | 1.3.1 | 1.5.0: members updated: command | - | - |
PreparedTransaction | Class | - | 1.3.1 | 1.5.0: members updated: preparedPromise<br/>1.5.1: details updated | - | - |
ScanProxyClient | Class | - | 1.5.0 | - | - | - |
SDK | Class | - | 1.3.1 | 1.4.0: details updated | - | - |
SDKPlugin | Class | - | 1.3.1 | 1.4.0: members added: _ctx<br/>1.5.0: type parameters added: ExtendedNamespaceItems; members updated: _ctx, ctx | - | - |
SignedTransaction | Class | - | 1.3.1 | 1.5.0: members updated: signedPromise<br/>1.5.1: details updated | - | - |
TokenNamespace | Class | - | 1.3.1 | 1.5.0: members added: assets, find | - | - |
FeaturedAppService | Interface | - | 1.3.1 | - | - | - |
LogAdapter | Interface | - | 1.4.0 | - | - | - |
AllowedLogAdapters | Type Alias | - | 1.4.0 | - | - | - |
AmuletConfig | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: signature updated | - | - |
AmuletNamespaceConfig | Type Alias | - | 1.3.1 | 1.4.0: signature updated | - | - |
AssetBody | Type Alias | - | 1.3.1 | 1.4.0: signature updated | - | - |
AssetConfig | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: signature updated | - | - |
AssetContext | Type Alias | - | 1.3.1 | 1.5.0: signature updated | - | - |
BasicSDKInterface | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: details updated | - | - |
BasicSDKOptions | Type Alias | Options for configuring the Wallet SDK instance. | 1.3.1 | 1.4.0: signature updated | - | - |
CompletionEvent | Type Alias | - | 1.4.0 | 1.5.1: details updated | - | - |
DefaultLogAdapters | Type Alias | - | 1.4.0 | - | - | - |
Event | Type Alias | - | 1.3.1 | 1.4.0: signature updated | - | - |
EventsConfig | Type Alias | - | 1.3.1 | 1.4.0: signature updated | - | - |
ExecuteOptions | Type Alias | - | 1.3.1 | - | - | - |
ExtendedFullSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
ExtendedSDKInterface | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: signature updated | - | - |
ExtendedSDKOptions | Type Alias | - | 1.3.1 | - | - | - |
FeaturedAppRight | Type Alias | - | 1.3.1 | - | - | - |
GetExtendedKeys | Type Alias | - | 1.3.1 | - | - | - |
GrantFeaturedAppRightsOptions | Type Alias | - | 1.3.1 | 1.4.0: signature updated | - | - |
LedgerCommonSchemas | Type Alias | - | 1.5.1 | - | - | - |
LogContext | Type Alias | Contextual metadata for log entries. | 1.4.0 | - | - | - |
LogLevel | Type Alias | - | 1.4.0 | - | - | - |
LookupFeaturedAppRightsOptions | Type Alias | - | 1.3.1 | - | - | - |
NullableExtendedFullSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
OfflineSDKContext | Type Alias | - | 1.3.1 | - | - | - |
OfflineSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
PluginConstructor | Type Alias | - | 1.5.0 | - | - | - |
PreapprovalParties | Type Alias | - | 1.3.1 | - | - | - |
PreparedCommand | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: details updated<br/>1.5.1: details updated | - | - |
PrepareOptions | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: details updated<br/>1.5.1: details updated | - | - |
RegisteredPlugins | Type Alias | - | 1.3.1 | 1.5.0: signature updated; type parameters updated: P | - | - |
RegistryAuth | Type Alias | - | 1.5.0 | - | - | - |
SDKContext | Type Alias | - | 1.3.1 | - | - | - |
SDKInterface | Type Alias | - | 1.3.1 | - | - | - |
SDKOptions | Type Alias | - | 1.3.1 | - | - | - |
SDKPluginContext | Type Alias | - | 1.5.0 | - | - | - |
TokenConfig | Type Alias | - | 1.3.1 | 1.4.0: signature updated<br/>1.5.0: signature updated | - | - |
TokenNamespaceConfig | Type Alias | - | 1.3.1 | 1.4.0: signature updated | - | - |
TokenProviderConfig | Type Alias | - | 1.3.1 | - | - | - |
UpdateEvent | Type Alias | - | 1.4.0 | 1.5.1: details updated | - | - |
LedgerTypes | Type Alias | - | 1.3.1 | - | - | 1.5.1 |
EXTENDED_SDK_OPTION_KEYS | Variable | - | 1.3.1 | - | - | - |
localNetStaticConfig | Variable | - | 1.3.1 | 1.5.0: signature updated | - | - |
fetchAmulet | Function | - | 1.3.1 | - | - | - |
findAsset | Function | - | 1.3.1 | 1.4.0: call signatures updated<br/>1.5.0: call signatures updated | - | - |
getPublicKeyFromPrivate | Function | - | 1.3.1 | - | - | - |
getValidatorParty | Function | - | 1.4.0 | - | - | - |
signTransactionHash | Function | - | 1.3.1 | - | - | - |
Reference
Classes
AmuletNamespace
- Kind:
Class - Source:
dist/wallet/namespace/amulet/namespace.d.ts:18
| Member | Type | Description |
|---|---|---|
constructor | void | - |
featuredApp | FeaturedAppNamespace | - |
preapproval | PreapprovalNamespace | - |
traffic | TrafficNamespace | - |
isDevNet | void | - |
tap | void | - |
tapInternal | void | - |
AssetNamespace
- Kind:
Class - Source:
dist/wallet/namespace/asset/index.d.ts:20
| Member | Type | Description |
|---|---|---|
constructor | void | - |
list | void | - |
find | void | - |
CustomLogAdapter
- Kind:
Class - Source:
dist/wallet/logger/adapter/custom.d.ts:16
| Member | Type | Description |
|---|---|---|
constructor | void | - |
log | (type: "debug" | "error" | "info" | "warn" | "trace", ctx: Partial, message?: string) => void | - |
ExtendedInitializedSDK
- Kind:
Class - Source:
dist/wallet/init/initializedSDK.d.ts:33
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedSDKOptions | - | - |
| Member | Type | Description |
|---|---|---|
amulet | ExtendedItems extends "amulet" ? AmuletNamespace : never | - |
asset | ExtendedItems extends "asset" ? AssetNamespace : never | - |
ctx | SDKContext | - |
events | ExtendedItems extends "events" ? EventsNamespace : never | - |
keys | KeysNamespace | - |
ledger | LedgerNamespace | - |
party | PartyNamespace | - |
token | ExtendedItems extends "token" ? TokenNamespace : never | - |
user | UserNamespace | - |
utils | SDKUtilsNamespace | - |
extend | void | - |
registerPlugins | void | - |
create | void | - |
InitializedSDK
- Kind:
Class - Source:
dist/wallet/init/initializedSDK.d.ts:12
| Name | Constraint | Default | Description |
|---|---|---|---|
CurrentlyExtended | keyof ExtendedSDKOptions | never | - |
| Member | Type | Description |
|---|---|---|
constructor | void | - |
ctx | SDKContext | - |
keys | KeysNamespace | - |
ledger | LedgerNamespace | - |
party | PartyNamespace | - |
user | UserNamespace | - |
utils | SDKUtilsNamespace | - |
extend | void | - |
registerPlugins | void | - |
LedgerProvider
- Kind:
Class - Source:
node_modules/@canton-network/core-provider-ledger/dist/LedgerProvider.d.ts:8
| Member | Type | Description |
|---|---|---|
constructor | void | - |
listeners | {} | - |
emit | void | - |
on | void | - |
removeListener | void | - |
request | void | - |
OfflineInitializedSDK
- Kind:
Class - Source:
dist/wallet/init/initializedSDK.d.ts:27
| Member | Type | Description |
|---|---|---|
constructor | void | - |
ctx | OfflineSDKContext | - |
keys | KeysNamespace | - |
utils | SDKUtilsNamespace | - |
PreapprovalNamespace
- Kind:
Class - Source:
dist/wallet/namespace/amulet/preapproval.d.ts:6
| Member | Type | Description |
|---|---|---|
constructor | void | - |
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. |
fetchQuick | void | - |
fetchStatus | void | - |
renew | void | - |
PreparedTransaction
- Kind:
Class - Source:
dist/wallet/namespace/transactions/prepared.d.ts:6
| Member | Type | Description |
|---|---|---|
constructor | void | - |
preparedPromise | Promise<{ costEstimation?: { confirmationRequestTrafficCostEstimation: number; confirmationResponseTrafficCostEstimation: number; estimationTimestamp: string; totalTrafficCostEstimation: number }; hashingDetails?: string; hashingSchemeVersion: "HASHING_SCHEME_VERSION_UNSPECIFIED" | "HASHING_SCHEME_VERSION_V2" | "HASHING_SCHEME_VERSION_V3" | "HASHING_SCHEME_VERSION_V4"; preparedTransaction: string; preparedTransactionHash: string }> | - |
decode | void | - |
sign | void | - |
toJSON | void | - |
ScanProxyClient
- Kind:
Class - Source:
node_modules/@canton-network/core-splice-client/dist/scan-proxy-client.d.ts:46
| Member | Type | Description |
|---|---|---|
constructor | void | - |
get | void | - |
getActiveOpenMiningRound | void | - |
getAmuletRules | void | - |
getAmuletSynchronizerId | void | - |
getOpenMiningRounds | void | - |
isDevNet | void | - |
post | void | - |
invalidateAmuletRulesCache | void | - |
invalidateOpenMiningRoundsCache | void | - |
SDK
- Kind:
Class - Source:
dist/wallet/sdk.d.ts:22
| Member | Type | Description |
|---|---|---|
constructor | void | - |
create | void | - |
createOffline | void | - |
SDKPlugin
- Kind:
Class - Source:
dist/wallet/init/plugin.d.ts:7
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedNamespaceItems | keyof ExtendedFullSDKInterface | never | - |
| Member | Type | Description |
|---|---|---|
constructor | void | - |
_ctx | SDKPluginContext<ExtendedNamespaceItems> | - |
ctx | SDKPluginContext<ExtendedNamespaceItems> | - |
logger | SDKLogger | - |
name | string | - |
SignedTransaction
- Kind:
Class - Source:
dist/wallet/namespace/transactions/signed.d.ts:5
| Member | Type | Description |
|---|---|---|
constructor | void | - |
signedPromise | Promise<{ 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" | "HASHING_SCHEME_VERSION_V4"; preparedTransaction: string; preparedTransactionHash: string }; signature: string }> | - |
execute | void | - |
response | void | - |
signature | void | - |
TokenNamespace
- Kind:
Class - Source:
dist/wallet/namespace/token/namespace.d.ts:16
| Member | Type | Description |
|---|---|---|
constructor | void | - |
allocation | AllocationNamespace | - |
transfer | TransferNamespace | - |
utxos | UtxoNamespace | - |
assets | void | - |
find | void | - |
holdings | void | - |
transactionsById | void | - |
Interfaces
FeaturedAppService
- Kind:
Interface - Source:
dist/wallet/namespace/amulet/types.d.ts:6
interface FeaturedAppService
| Member | Type | Description |
|---|---|---|
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 - Source:
dist/wallet/logger/types.d.ts:40
interface LogAdapter
| Member | Type | Description |
|---|---|---|
log | void | - |
Type Aliases
AllowedLogAdapters
- Kind:
Type Alias - Source:
dist/wallet/logger/types.d.ts:44
type AllowedLogAdapters = DefaultLogAdapters | CustomLogAdapter
AmuletConfig
- Kind:
Type Alias - Source:
dist/wallet/init/types/config.d.ts:12
type AmuletConfig = RegistryAuthConfig & { auth: TokenProviderConfig; registryUrl: URLInput; scanApiUrl: URLInput; validatorUrl?: URLInput }
AmuletNamespaceConfig
- Kind:
Type Alias - Source:
dist/wallet/namespace/amulet/namespace.d.ts:11
type AmuletNamespaceConfig = { amuletService: AmuletService; commonCtx: SDKContext; registry: ParsedURL | AssetBody; tokenStandardService: TokenStandardService; validatorParty?: PartyId }
AssetBody
- Kind:
Type Alias - Source:
dist/wallet/namespace/asset/index.d.ts:6
type AssetBody = { admin: PartyId; displayName: string; id: string; registryUrl: URL; symbol: string }
AssetConfig
- Kind:
Type Alias - Source:
dist/wallet/init/types/config.d.ts:23
type AssetConfig = RegistryAuthConfig & { auth: TokenProviderConfig; registries: URLInput[] }
AssetContext
- Kind:
Type Alias - Source:
dist/wallet/namespace/asset/index.d.ts:13
type AssetContext = { commonCtx: SDKContext; error: SDKErrorHandler; list: AssetBody[]; registries: URL[]; tokenStandardService: TokenStandardService }
BasicSDKInterface
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:46
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 }>
| Name | Constraint | Default | Description |
|---|---|---|---|
CurrentlyExtended | keyof ExtendedSDKOptions | never | - |
BasicSDKOptions
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:23
type BasicSDKOptions<L extends LedgerTypes = void> = Readonly<{ logAdapter?: AllowedLogAdapters; websocketUrl?: URL | string } & { auth: TokenProviderConfig; ledgerClientUrl: URL | string } | { ledgerProvider: Provider<L> }>
| Name | Constraint | Default | Description |
|---|---|---|---|
L | LedgerTypes | - | - |
CompletionEvent
- Kind:
Type Alias - Source:
dist/wallet/namespace/events/types.d.ts:30
type CompletionEvent = LedgerCommonSchemas["CompletionStreamResponse"]
DefaultLogAdapters
- Kind:
Type Alias - Source:
dist/wallet/logger/types.d.ts:43
type DefaultLogAdapters = "console" | "pino"
Event
- Kind:
Type Alias - Source:
dist/wallet/namespace/events/types.d.ts:31
type Event = UpdateEvent | CompletionEvent
EventsConfig
- Kind:
Type Alias - Source:
dist/wallet/init/types/config.d.ts:27
type EventsConfig = { auth: TokenProviderConfig; websocketURL: URLInput }
ExecuteOptions
- Kind:
Type Alias - Source:
dist/wallet/namespace/ledger/types.d.ts:11
type ExecuteOptions = { partyId: PartyId; submissionId?: string }
ExtendedFullSDKInterface
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:59
type ExtendedFullSDKInterface = Readonly<{ amulet: AmuletNamespace; asset: AssetNamespace; events: EventsNamespace; token: TokenNamespace }>
ExtendedSDKInterface
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:68
type ExtendedSDKInterface<ExtendedItems extends keyof ExtendedSDKOptions = void> = { [K in keyof Pick<ExtendedSDKOptions, ExtendedItems>]: ExtendedFullSDKInterface[K] }
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedSDKOptions | - | - |
ExtendedSDKOptions
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:36
type ExtendedSDKOptions = EnforceKeys<typeof EXTENDED_SDK_OPTION_KEYS[number], Readonly<{ amulet: AmuletConfig; asset: AssetConfig; events: EventsConfig; token: TokenConfig }>>
FeaturedAppRight
- Kind:
Type Alias - Source:
dist/wallet/namespace/amulet/types.d.ts:19
type FeaturedAppRight = { contract_id: string; created_at: string; created_event_blob: string; payload: Record<string, never>; template_id: string }
GetExtendedKeys
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:43
type GetExtendedKeys<T extends void = void> = { [K in keyof ExtendedSDKOptions]: K extends keyof T ? undefined extends T[K] ? never : K : never }[keyof ExtendedSDKOptions]
| Name | Constraint | Default | Description |
|---|---|---|---|
T | - | - | - |
GrantFeaturedAppRightsOptions
- Kind:
Type Alias - Source:
dist/wallet/namespace/amulet/types.d.ts:31
type GrantFeaturedAppRightsOptions = { delayMs?: number; maxRetries?: number; synchronizerId?: string; validatorParty?: PartyId }
LedgerCommonSchemas
- Kind:
Type Alias - Source:
node_modules/@canton-network/core-ledger-client-types/dist/index.d.ts:35
type LedgerCommonSchemas = Union<LedgerSchemasByVersion["3.5"], LedgerSchemasByVersion["3.6"]>
LogContext
- Kind:
Type Alias - Source:
dist/wallet/logger/types.d.ts:18
type LogContext = Partial<{ namespace: string; partyId: PartyId; response: unknown; timestamp: string; traceId: string }>
LogLevel
- Kind:
Type Alias - Source:
dist/wallet/logger/types.d.ts:32
type LogLevel = typeof LOG_LEVELS_TUPLE[number]
LookupFeaturedAppRightsOptions
- Kind:
Type Alias - Source:
dist/wallet/namespace/amulet/types.d.ts:26
type LookupFeaturedAppRightsOptions = { delayMs?: number; maxRetries?: number; partyId: string }
NullableExtendedFullSDKInterface
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:65
type NullableExtendedFullSDKInterface = { [K in keyof ExtendedFullSDKInterface]: ExtendedFullSDKInterface[K] | null }
OfflineSDKContext
- Kind:
Type Alias - Source:
dist/wallet/init/types/context.d.ts:11
type OfflineSDKContext = { error: SDKErrorHandler; logger: SDKLogger }
OfflineSDKInterface
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:72
type OfflineSDKInterface = Readonly<{ keys: KeysNamespace; utils: SDKUtilsNamespace }>
PluginConstructor
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:76
type PluginConstructor = (ctx: SDKPluginContext) => SDKPlugin
PreapprovalParties
- Kind:
Type Alias - Source:
dist/wallet/namespace/amulet/types.d.ts:2
type PreapprovalParties = { provider?: PartyId; receiver: PartyId }
PreparedCommand
- Kind:
Type Alias - Source:
dist/wallet/namespace/transactions/types.d.ts:2
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"][]]
| Name | Constraint | Default | Description |
|---|---|---|---|
K | keyof RawCommandMap | keyof RawCommandMap[] | ["ExerciseCommand", "CreateCommand"] | - |
PrepareOptions
- Kind:
Type Alias - Source:
dist/wallet/namespace/ledger/types.d.ts:4
type PrepareOptions = { commandId?: string; commands: WrappedCommand | WrappedCommand[] | unknown; disclosedContracts?: LedgerCommonSchemas["DisclosedContract"][]; partyId: PartyId; synchronizerId?: string }
RegisteredPlugins
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:77
type RegisteredPlugins<P extends PluginConstructor[] | Record<string, PluginConstructor> = PluginConstructor[]> = P extends PluginConstructor[] ? { [K in InstanceType<P[number]>["name"]]: Extract<InstanceType<P[number]>, { name: K }> } : P extends Record<string, PluginConstructor> ? { [K in keyof P]: InstanceType<P[K]> } : never
| Name | Constraint | Default | Description |
|---|---|---|---|
P | PluginConstructor[] | Record<string, PluginConstructor> | PluginConstructor[] | - |
RegistryAuth
- Kind:
Type Alias - Source:
dist/wallet/init/types/config.d.ts:3
type RegistryAuth = TokenProviderConfig | "none"
SDKContext
- Kind:
Type Alias - Source:
dist/wallet/init/types/context.d.ts:4
type SDKContext = { defaultSynchronizerId: string; error: SDKErrorHandler; ledgerProvider: AbstractLedgerProvider; logger: SDKLogger; userId: string }
SDKInterface
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:71
type SDKInterface<ExtendedItems extends keyof ExtendedFullSDKInterface = never> = BasicSDKInterface<ExtendedItems> & ExtendedSDKInterface<ExtendedItems>
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedFullSDKInterface | never | - |
SDKOptions
- Kind:
Type Alias - Source:
dist/wallet/init/types/sdk.d.ts:42
type SDKOptions<ExtendedItems extends keyof ExtendedSDKOptions = never> = BasicSDKOptions<LedgerTypes> & Pick<ExtendedSDKOptions, ExtendedItems>
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedSDKOptions | never | - |
SDKPluginContext
- Kind:
Type Alias - Source:
dist/wallet/init/plugin.d.ts:4
type SDKPluginContext<ExtendedItems extends keyof ExtendedFullSDKInterface = never> = SDKContext & { namespace: Omit<SDKInterface<ExtendedItems>, "extend" | "registerPlugins"> }
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedFullSDKInterface | never | - |
TokenConfig
- Kind:
Type Alias - Source:
dist/wallet/init/types/config.d.ts:18
type TokenConfig = RegistryAuthConfig & { auth: TokenProviderConfig; registries: URLInput[]; validatorUrl?: URLInput }
TokenNamespaceConfig
- Kind:
Type Alias - Source:
dist/wallet/namespace/token/namespace.d.ts:10
type TokenNamespaceConfig = { commonCtx: SDKContext; registryUrls: ParsedURL[]; tokenStandardService: TokenStandardService; validatorParty?: PartyId }
TokenProviderConfig
- Kind:
Type Alias - Source:
node_modules/@canton-network/core-wallet-auth/dist/auth-token-provider.d.ts:4
type TokenProviderConfig = { method: "static"; token: string } | { credentials: ClientCredentials; issuer: string; method: "self_signed" } | { configUrl: string; credentials: ClientCredentials; method: "client_credentials" }
UpdateEvent
- Kind:
Type Alias - Source:
dist/wallet/namespace/events/types.d.ts:29
type UpdateEvent = LedgerCommonSchemas["JsGetUpdatesResponse"]
LedgerTypes
- Kind:
Type Alias - Removed in 1.5.1. Retained for historical reference.
- Source:
dist/wallet/sdk.d.ts:16
type LedgerTypes = LedgerCommonSchemas
Variables
EXTENDED_SDK_OPTION_KEYS
- Kind:
Variable - Source:
dist/wallet/init/types/sdk.d.ts:32
const EXTENDED_SDK_OPTION_KEYS: readonly ["amulet", "token", "asset", "events"]
localNetStaticConfig
- Kind:
Variable - Source:
dist/config.d.ts:1
const localNetStaticConfig: { LOCALNET_APP_PROVIDER_LEDGER_URL: URL; LOCALNET_APP_USER_LEDGER_URL: URL; LOCALNET_APP_VALIDATOR_URL: URL; LOCALNET_REGISTRY_API_URL: URL; LOCALNET_SCAN_API_URL: URL; LOCALNET_SV_LEDGER_URL: URL; LOCALNET_TOKEN_STANDARD_URL: URL; LOCALNET_USER_ID: string }
Functions
fetchAmulet
- Kind:
Function - Source:
dist/wallet/namespace/amulet/namespace.d.ts:69
fetchAmulet(amuletCtx: AmuletNamespaceConfig): Promise<AssetBody>
fetchAmulet(amuletCtx: AmuletNamespaceConfig): Promise<AssetBody>
| Parameter | Type | Required | Description |
|---|---|---|---|
amuletCtx | AmuletNamespaceConfig | yes | - |
Promise<AssetBody>
findAsset
- Kind:
Function - Source:
dist/wallet/namespace/asset/index.d.ts:26
findAsset(assets: AssetBody[], id: string, error: SDKErrorHandler, registryUrl?: ParsedURL): AssetBody
findAsset(assets: AssetBody[], id: string, error: SDKErrorHandler, registryUrl?: ParsedURL): AssetBody
| Parameter | Type | Required | Description |
|---|---|---|---|
assets | AssetBody[] | yes | - |
id | string | yes | - |
error | SDKErrorHandler | yes | - |
registryUrl | ParsedURL | no | - |
AssetBody
getPublicKeyFromPrivate
- Kind:
Function - Source:
node_modules/@canton-network/core-signing-lib/dist/index.d.ts:30
getPublicKeyFromPrivate(privateKeyBase64: string): string
getPublicKeyFromPrivate(privateKeyBase64: string): string
| Parameter | Type | Required | Description |
|---|---|---|---|
privateKeyBase64 | string | yes | - |
string
getValidatorParty
- Kind:
Function - Source:
dist/wallet/sdk.d.ts:32
getValidatorParty(validatorUrl: URL, auth: AuthTokenProvider | TokenProviderConfig, sdkLogger?: SDKLogger): Promise<string>
getValidatorParty(validatorUrl: URL, auth: AuthTokenProvider | TokenProviderConfig, sdkLogger?: SDKLogger): Promise<string>
| Parameter | Type | Required | Description |
|---|---|---|---|
validatorUrl | URL | yes | - |
auth | AuthTokenProvider | TokenProviderConfig | yes | - |
sdkLogger | SDKLogger | no | - |
Promise<string>
signTransactionHash
- Kind:
Function - Source:
node_modules/@canton-network/core-signing-lib/dist/index.d.ts:28
signTransactionHash(txHash: string, privateKey: string): string
signTransactionHash(txHash: string, privateKey: string): string
| Parameter | Type | Required | Description |
|---|---|---|---|
txHash | string | yes | - |
privateKey | string | yes | - |
string
History
1.5.1LedgerTypes: Last available in 1.5.0. Retained for historical reference.
1.5.1PreparedTransaction: details updated
SignedTransaction: details updated
CompletionEvent: details updated
PreparedCommand: details updated
PrepareOptions: details updated
UpdateEvent: details updated
1.5.11 exported symbol added.
1.5.0AmuletNamespace: members added: isDevNet
AssetNamespace: details updated
ExtendedInitializedSDK: details updated
InitializedSDK: details updated
PreapprovalNamespace: members updated: command
PreparedTransaction: members updated: preparedPromise
SDKPlugin: type parameters added: ExtendedNamespaceItems; members updated: _ctx, ctx
SignedTransaction: members updated: signedPromise
TokenNamespace: members added: assets, find
AmuletConfig: signature updated
AssetConfig: signature updated
AssetContext: signature updated
BasicSDKInterface: details updated
ExtendedSDKInterface: signature updated
PreparedCommand: details updated
PrepareOptions: details updated
RegisteredPlugins: signature updated; type parameters updated: P
TokenConfig: signature updated
localNetStaticConfig: signature updated
findAsset: call signatures updated
1.5.04 exported symbols added.
1.4.0AssetNamespace: 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
1.4.09 exported symbols added.