Skip to main content

Class: WalletAPIClient

WalletAPI Client which rely on WindowMessage communication

Hierarchy

Constructors

constructor

new WalletAPIClient(transport, logger?)

Parameters

NameTypeDefault value
transportTransportundefined
loggerLoggerdefaultLogger

Overrides

RpcNode.constructor

Defined in

packages/client/src/WalletAPIClient.ts:81

Properties

account

account: AccountModule

Instance of the Account module

Defined in

packages/client/src/WalletAPIClient.ts:42


bitcoin

bitcoin: BitcoinModule

Instance of the Bitcoin module

Defined in

packages/client/src/WalletAPIClient.ts:47


currency

currency: CurrencyModule

Instance of the Currency module

Defined in

packages/client/src/WalletAPIClient.ts:52


device

device: DeviceModule

Instance of the Device module

Defined in

packages/client/src/WalletAPIClient.ts:57


logger

Private logger: Logger

Defined in

packages/client/src/WalletAPIClient.ts:79


message

message: MessageModule

Instance of the Message module

Defined in

packages/client/src/WalletAPIClient.ts:62


requestHandlers

Protected requestHandlers: Object

Type declaration

NameType
event.account.updated(_request: RpcRequest<string, unknown>) => Promise<void>

Inherited from

RpcNode.requestHandlers

Defined in

packages/core/lib/JSONRPC/RpcNode.d.ts:9


storage

storage: StorageModule

Instance of the Storage module

Defined in

packages/client/src/WalletAPIClient.ts:67


transaction

transaction: TransactionModule

Instance of the Transaction module

Defined in

packages/client/src/WalletAPIClient.ts:72


wallet

wallet: WalletModule

Instance of the Wallet module

Defined in

packages/client/src/WalletAPIClient.ts:77

Methods

notify

notify<K>(method, params): void

Type parameters

NameType
Kextends keyof WalletHandlers

Parameters

NameType
methodK
paramsMethodParamsIfExists<WalletHandlers, K>

Returns

void

Inherited from

RpcNode.notify

Defined in

packages/core/lib/JSONRPC/RpcNode.d.ts:15


onRequest

Protected onRequest(request): Promise<void>

Parameters

NameType
requestRpcRequest<string, unknown>

Returns

Promise<void>

Overrides

RpcNode.onRequest

Defined in

packages/client/src/WalletAPIClient.ts:94


request

request<K>(method, params): Promise<ReturnTypeOfMethodIfExists<WalletHandlers, K>>

Type parameters

NameType
Kextends keyof WalletHandlers

Parameters

NameType
methodK
paramsMethodParamsIfExists<WalletHandlers, K>

Returns

Promise<ReturnTypeOfMethodIfExists<WalletHandlers, K>>

Inherited from

RpcNode.request

Defined in

packages/core/lib/JSONRPC/RpcNode.d.ts:14