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

Table of Contents

Version Change Summary

Reference

Namespaces

dappAPI

  • Kind: Namespace
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: node_modules/@canton-network/core-wallet-dapp-rpc-client/dist/index.d.ts:1
Version Changes Members

Enumerations

ErrorCode

  • Kind: Enumeration
  • Introduced: 1.1.0
  • Source: dist/error.d.ts:1
Members

Classes

DappClient

  • Kind: Class
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/client.d.ts:20
Version Changes DappClient is a thin convenience wrapper around a connected Provider<DappRpcTypes>. It exposes typed RPC helpers, event subscription shortcuts, and session-persistence listeners. How to obtain a provider is not this class’s concern. Use DiscoveryClient + the wallet picker, or construct any Provider<DappRpcTypes> directly — then pass it here. Members

DappSDK

  • Kind: Class
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/sdk.d.ts:17
Version Changes Members

DiscoveryClient

  • Kind: Class
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/client.d.ts:31
Version Changes DiscoveryClient manages provider adapters and exposes a unified Provider<DappRpcTypes> regardless of the underlying wallet type. It is UI-framework agnostic — the wallet picker UI is injected via the walletPicker config option. Client-level events (discovery:connected, discovery:disconnected, discovery:error) track the adapter session lifecycle. Provider-level CIP-103 events (statusChanged, accountsChanged, txChanged) live on the Provider — subscribe via client.getProvider().on(...). Members

DiscoveryError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:2
Members

EventEmitter

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:20
Members

ExtensionAdapter

  • Kind: Class
  • Introduced: 1.1.0
  • Source: dist/adapter/extension-adapter.d.ts:19
ProviderAdapter for any CIP-103 compliant wallet exposed as a browser extension. provider() returns a DappProvider which communicates via postMessage and implements the full openrpc-dapp-api.json surface directly. Members

NotConnectedError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:22
Members

RemoteAdapter

  • Kind: Class
  • Introduced: 1.1.0
  • Source: dist/adapter/remote-adapter.d.ts:19
ProviderAdapter for any CIP-103 compliant wallet reachable over HTTP/SSE. provider() returns a provider that maps the remote API (openrpc-dapp-remote-api.json) to the dApp API (openrpc-dapp-api.json) via dappSDKController. Members

SessionExpiredError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:16
Members

TimeoutError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:19
Members

UserRejectedError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:13
Members

WalletConnectAdapter

  • Kind: Class
  • Introduced: 1.1.0
  • Source: dist/adapter/walletconnect-adapter.d.ts:74
Single-class WalletConnect adapter that implements both ProviderAdapter (for discovery/wallet-picker) and Provider<DappRpcTypes> (for RPC calls). Calls signClient.request() directly with canton_ prefixed methods. Events arriving via session_event are buffered until a listener attaches. Members

WalletNotFoundError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:7
Members

WalletNotInstalledError

  • Kind: Class
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:10
Members

InjectedAdapter

  • Kind: Class
  • Introduced: 1.1.0
  • Removed in: 1.3.0
  • Shown for historical reference.
  • Source: dist/adapter/injected-adapter.d.ts:12
A ProviderAdapter is a thin factory that knows how to create a Provider<DappRpcTypes> for a particular wallet type, detect its availability, and clean up resources. All RPC methods (connect, disconnect, status, prepareExecute, etc.) are called directly on the provider — the adapter does not duplicate them. Members

Interfaces

ActiveSession

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/client.d.ts:14
Signature
Members

DappClientOptions

  • Kind: Interface
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/client.d.ts:3
Version Changes Signature
Members

DiscoveryClientConfig

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/client.d.ts:5
Signature
Members

DiscoveryConnectedEvent

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:2
Signature
Members

DiscoveryDisconnectedEvent

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:5
Signature
Members

DiscoveryErrorEvent

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:8
Signature
Members

ProviderAdapter

  • Kind: Interface
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/types.d.ts:27
Version Changes Signature
A ProviderAdapter is a thin factory that knows how to create a Provider<DappRpcTypes> for a particular wallet type, detect its availability, and clean up resources. All RPC methods (connect, disconnect, status, prepareExecute, etc.) are called directly on the provider — the adapter does not duplicate them. Members

RemoteAdapterConfig

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: dist/adapter/remote-adapter.d.ts:6
Signature
Members

WalletConnectAdapterConfig

  • Kind: Interface
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/adapter/walletconnect-adapter.d.ts:52
Version Changes Signature
Members

WalletInfo

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/types.d.ts:5
Signature
Members

WalletPickerEntry

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-types/dist/index.d.ts:150
Signature
Members

WalletPickerResult

  • Kind: Interface
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-types/dist/index.d.ts:166
Signature
Members

Type Aliases

DiscoveryClientEventHandler

  • Kind: Type Alias
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:19
Signature
Type Parameters

DiscoveryClientEventMap

  • Kind: Type Alias
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:13
Signature

DiscoveryClientEventName

  • Kind: Type Alias
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/events.d.ts:18
Signature

DiscoveryErrorCode

  • Kind: Type Alias
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/errors.d.ts:1
Signature

ProviderAdapterConfig

  • Kind: Type Alias
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-types/dist/index.d.ts:142
Signature

WalletPickerFn

  • Kind: Type Alias
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-wallet-discovery/dist/types.d.ts:64
Signature
A function that presents wallet choices to the user and returns their selection. This abstraction allows the DiscoveryClient to remain UI-framework agnostic.

Variables

CANTON_LOGO_PNG

  • Kind: Variable
  • Introduced: 1.1.0
  • Source: dist/assets.d.ts:10
Signature
Canton logo (PNG) - used as the default icon for Wallet Gateway

dappSDK

  • Kind: Variable
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:91
Signature

ProviderAdapterConfig

  • Kind: Variable
  • Introduced: 1.1.0
  • Source: node_modules/@canton-network/core-types/dist/index.d.ts:142
Signature
Provider adapter configuration

WALLET_GATEWAY_ICON

  • Kind: Variable
  • Introduced: 1.1.0
  • Source: dist/assets.d.ts:14
Signature
Alias for Wallet Gateway - same as Canton logo

Functions

connect

  • Kind: Function
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/sdk.d.ts:96
Version Changes Signature
Opens the wallet picker and connects. Prefer init with adapters at startup; options here is a legacy convenience that forwards to DappSDK.init. Call Signatures Overload 1:
Opens the wallet picker and connects. Prefer init with adapters at startup; options here is a legacy convenience that forwards to DappSDK.init. Returns: Promise<ConnectResult> Overload 2:
Returns: Promise<ConnectResult>

disconnect

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:100
Signature
Call Signatures
Returns: Promise<null>

getConnectedProvider

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:108
Signature
Call Signatures
Returns: Provider<RpcTypes>

init

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:99
Signature
Call Signatures
Returns: Promise<void>

isConnected

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:101
Signature
Call Signatures
Returns: Promise<ConnectResult>

ledgerApi

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:106
Signature
Call Signatures
Returns: Promise<LedgerApiResult>

listAccounts

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:103
Signature
Call Signatures
Returns: Promise<ListAccountsResult>

onAccountsChanged

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:110
Signature
Call Signatures
Returns: Promise<void>

onConnected

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:111
Signature
Call Signatures
Returns: Promise<void>

onStatusChanged

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:109
Signature
Call Signatures
Returns: Promise<void>

onTxChanged

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:112
Signature
Call Signatures
Returns: Promise<void>

open

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:107
Signature
Call Signatures
Returns: Promise<void>

prepareExecute

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:104
Signature
Call Signatures
Returns: Promise<null>

prepareExecuteAndWait

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:105
Signature
Call Signatures
Returns: Promise<PrepareExecuteAndWaitResult>

removeOnAccountsChanged

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:115
Signature
Call Signatures
Returns: Promise<void>

removeOnConnected

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:116
Signature
Call Signatures
Returns: Promise<void>

removeOnStatusChanged

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:114
Signature
Call Signatures
Returns: Promise<void>

removeOnTxChanged

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:117
Signature
Call Signatures
Returns: Promise<void>

status

  • Kind: Function
  • Introduced: 1.1.0
  • Source: dist/sdk.d.ts:102
Signature
Call Signatures
Returns: Promise<StatusEvent>

References

AccountsChangedEvent

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

ConnectResult

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

LedgerApiParams

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

LedgerApiResult

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

ListAccountsResult

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

Network

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

PrepareExecuteAndWaitResult

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

PrepareExecuteParams

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

ProviderId

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/adapter/types.d.ts:2
Version Changes

ProviderType

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/adapter/types.d.ts:2
Version Changes

Session

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

SignMessageParams

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

SignMessageResult

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

StatusEvent

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

TxChangedEvent

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes

Wallet

  • Kind: Reference
  • Introduced: 1.1.0
  • Changed in: 1.3.0
  • Source: dist/index.d.ts:10
Version Changes