@canton-network/wallet-sdk TypeDoc snapshots.
Table of Contents
| Name | Kind | Summary | Introduced | Changed | Deprecated | Removed |
|---|---|---|---|---|---|---|
AmuletNamespace | Class | - | 1.3.1 | - | - | - |
AssetNamespace | Class | - | 1.3.1 | - | - | - |
ExtendedInitializedSDK | Class | - | 1.3.1 | - | - | - |
InitializedSDK | Class | - | 1.3.1 | - | - | - |
LedgerProvider | Class | - | 1.3.1 | - | - | - |
OfflineInitializedSDK | Class | - | 1.3.1 | - | - | - |
PreapprovalNamespace | Class | - | 1.3.1 | - | - | - |
PreparedTransaction | Class | - | 1.3.1 | - | - | - |
SDK | Class | - | 1.3.1 | - | - | - |
SDKPlugin | Class | - | 1.3.1 | - | - | - |
SignedTransaction | Class | - | 1.3.1 | - | - | - |
TokenNamespace | Class | - | 1.3.1 | - | - | - |
FeaturedAppService | Interface | - | 1.3.1 | - | - | - |
AmuletConfig | Type Alias | - | 1.3.1 | - | - | - |
AmuletNamespaceConfig | Type Alias | - | 1.3.1 | - | - | - |
AssetBody | Type Alias | - | 1.3.1 | - | - | - |
AssetConfig | Type Alias | - | 1.3.1 | - | - | - |
AssetContext | Type Alias | - | 1.3.1 | - | - | - |
BasicSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
BasicSDKOptions | Type Alias | Options for configuring the Wallet SDK instance. | 1.3.1 | - | - | - |
Event | Type Alias | - | 1.3.1 | - | - | - |
EventsConfig | Type Alias | - | 1.3.1 | - | - | - |
ExecuteOptions | Type Alias | - | 1.3.1 | - | - | - |
ExtendedFullSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
ExtendedSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
ExtendedSDKOptions | Type Alias | - | 1.3.1 | - | - | - |
FeaturedAppRight | Type Alias | - | 1.3.1 | - | - | - |
GetExtendedKeys | Type Alias | - | 1.3.1 | - | - | - |
GrantFeaturedAppRightsOptions | Type Alias | - | 1.3.1 | - | - | - |
LedgerTypes | Type Alias | - | 1.3.1 | - | - | - |
LookupFeaturedAppRightsOptions | Type Alias | - | 1.3.1 | - | - | - |
NullableExtendedFullSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
OfflineSDKContext | Type Alias | - | 1.3.1 | - | - | - |
OfflineSDKInterface | Type Alias | - | 1.3.1 | - | - | - |
PreapprovalParties | Type Alias | - | 1.3.1 | - | - | - |
PreparedCommand | Type Alias | - | 1.3.1 | - | - | - |
PrepareOptions | Type Alias | - | 1.3.1 | - | - | - |
RegisteredPlugins | Type Alias | - | 1.3.1 | - | - | - |
SDKContext | Type Alias | - | 1.3.1 | - | - | - |
SDKInterface | Type Alias | - | 1.3.1 | - | - | - |
SDKOptions | Type Alias | - | 1.3.1 | - | - | - |
TokenConfig | Type Alias | - | 1.3.1 | - | - | - |
TokenNamespaceConfig | Type Alias | - | 1.3.1 | - | - | - |
TokenProviderConfig | Type Alias | - | 1.3.1 | - | - | - |
EXTENDED_SDK_OPTION_KEYS | Variable | - | 1.3.1 | - | - | - |
localNetStaticConfig | Variable | - | 1.3.1 | - | - | - |
fetchAmulet | Function | - | 1.3.1 | - | - | - |
findAsset | Function | - | 1.3.1 | - | - | - |
getPublicKeyFromPrivate | Function | - | 1.3.1 | - | - | - |
signTransactionHash | Function | - | 1.3.1 | - | - | - |
Version Change Summary
| Version | Added | Changed | Removed |
|---|---|---|---|
1.3.1 | 50 | - | - |
Reference
Classes
AmuletNamespace
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/namespace.d.ts:16
| Member | Type | Description |
|---|---|---|
constructor | void | - |
featuredApp | FeaturedAppNamespace | - |
preapproval | PreapprovalNamespace | - |
traffic | TrafficNamespace | - |
tap | void | - |
tapInternal | void | - |
AssetNamespace
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/namespace/asset/index.d.ts:17
| Member | Type | Description |
|---|---|---|
constructor | void | - |
list | void | - |
find | void | - |
ExtendedInitializedSDK
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/init/initializedSDK.d.ts:30
| 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 - Introduced:
1.3.1 - Source:
dist/wallet/init/initializedSDK.d.ts:13
| Member | Type | Description |
|---|---|---|
constructor | void | - |
ctx | SDKContext | - |
keys | KeysNamespace | - |
ledger | LedgerNamespace | - |
party | PartyNamespace | - |
user | UserNamespace | - |
utils | SDKUtilsNamespace | - |
extend | void | - |
registerPlugins | void | - |
LedgerProvider
- Kind:
Class - Introduced:
1.3.1 - 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 - Introduced:
1.3.1 - Source:
dist/wallet/init/initializedSDK.d.ts:24
| Member | Type | Description |
|---|---|---|
constructor | void | - |
ctx | OfflineSDKContext | - |
keys | KeysNamespace | - |
utils | SDKUtilsNamespace | - |
PreapprovalNamespace
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/preapproval.d.ts:5
| 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 - Introduced:
1.3.1 - 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"; preparedTransaction: string; preparedTransactionHash: string }> | - |
decode | void | - |
sign | void | - |
toJSON | void | - |
SDK
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/sdk.d.ts:32
| Member | Type | Description |
|---|---|---|
constructor | void | - |
create | void | - |
createOffline | void | - |
SDKPlugin
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/init/plugin.d.ts:3
| Member | Type | Description |
|---|---|---|
constructor | void | - |
ctx | SDKContext | - |
logger | SDKLogger | - |
name | string | - |
SignedTransaction
- Kind:
Class - Introduced:
1.3.1 - 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"; preparedTransaction: string; preparedTransactionHash: string }; signature: string }> | - |
execute | void | - |
response | void | - |
signature | void | - |
TokenNamespace
- Kind:
Class - Introduced:
1.3.1 - Source:
dist/wallet/namespace/token/namespace.d.ts:14
| Member | Type | Description |
|---|---|---|
constructor | void | - |
allocation | AllocationNamespace | - |
transfer | TransferNamespace | - |
utxos | UtxoNamespace | - |
holdings | void | - |
transactionsById | void | - |
Interfaces
FeaturedAppService
- Kind:
Interface - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/types.d.ts:6
| 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 |
Type Aliases
AmuletConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/config.d.ts:2
AmuletNamespaceConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/namespace.d.ts:9
AssetBody
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/asset/index.d.ts:4
AssetConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/config.d.ts:13
AssetContext
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/asset/index.d.ts:11
BasicSDKInterface
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:46
| Name | Constraint | Default | Description |
|---|---|---|---|
CurrentlyExtended | keyof ExtendedSDKOptions | never | - |
BasicSDKOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:23
| Name | Constraint | Default | Description |
|---|---|---|---|
L | LedgerTypes | - | - |
Event
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/events/types.d.ts:28
EventsConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/config.d.ts:17
ExecuteOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/ledger/types.d.ts:11
ExtendedFullSDKInterface
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:55
ExtendedSDKInterface
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:64
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedSDKOptions | - | - |
ExtendedSDKOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:36
FeaturedAppRight
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/types.d.ts:19
GetExtendedKeys
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:43
| Name | Constraint | Default | Description |
|---|---|---|---|
T | - | - | - |
GrantFeaturedAppRightsOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/types.d.ts:31
LedgerTypes
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/sdk.d.ts:16
LookupFeaturedAppRightsOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/types.d.ts:26
NullableExtendedFullSDKInterface
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:61
OfflineSDKContext
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/sdk.d.ts:24
OfflineSDKInterface
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:70
PreapprovalParties
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/types.d.ts:2
PreparedCommand
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/transactions/types.d.ts:3
| Name | Constraint | Default | Description |
|---|---|---|---|
K | keyof RawCommandMap | keyof RawCommandMap[] | ["ExerciseCommand", "CreateCommand"] | - |
PrepareOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/ledger/types.d.ts:4
RegisteredPlugins
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:74
| Name | Constraint | Default | Description |
|---|---|---|---|
P | Record<string, (ctx: SDKContext) => SDKPlugin> | Record<string, (ctx: SDKContext) => SDKPlugin> | - |
SDKContext
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/sdk.d.ts:17
SDKInterface
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:69
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedFullSDKInterface | never | - |
SDKOptions
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:42
| Name | Constraint | Default | Description |
|---|---|---|---|
ExtendedItems | keyof ExtendedSDKOptions | never | - |
TokenConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/init/types/config.d.ts:8
TokenNamespaceConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
dist/wallet/namespace/token/namespace.d.ts:8
TokenProviderConfig
- Kind:
Type Alias - Introduced:
1.3.1 - Source:
node_modules/@canton-network/core-wallet-auth/dist/auth-token-provider.d.ts:4
Variables
EXTENDED_SDK_OPTION_KEYS
- Kind:
Variable - Introduced:
1.3.1 - Source:
dist/wallet/init/types/sdk.d.ts:32
localNetStaticConfig
- Kind:
Variable - Introduced:
1.3.1 - Source:
dist/config.d.ts:1
Functions
fetchAmulet
- Kind:
Function - Introduced:
1.3.1 - Source:
dist/wallet/namespace/amulet/namespace.d.ts:63
| Parameter | Type | Required | Description |
|---|---|---|---|
amuletCtx | AmuletNamespaceConfig | yes | - |
Promise<AssetBody>
findAsset
- Kind:
Function - Introduced:
1.3.1 - Source:
dist/wallet/namespace/asset/index.d.ts:23
| Parameter | Type | Required | Description |
|---|---|---|---|
assets | AssetBody[] | yes | - |
id | string | yes | - |
error | SDKErrorHandler | yes | - |
registryUrl | string | URL | no | - |
AssetBody
getPublicKeyFromPrivate
- Kind:
Function - Introduced:
1.3.1 - Source:
node_modules/@canton-network/core-signing-lib/dist/index.d.ts:30
| Parameter | Type | Required | Description |
|---|---|---|---|
privateKeyBase64 | string | yes | - |
string
signTransactionHash
- Kind:
Function - Introduced:
1.3.1 - Source:
node_modules/@canton-network/core-signing-lib/dist/index.d.ts:28
| Parameter | Type | Required | Description |
|---|---|---|---|
txHash | string | yes | - |
privateKey | string | yes | - |
string