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

Properties

account

account: AccountModule

Instance of the Account module

Defined in

packages/client/src/WalletAPIClient.ts:43


bitcoin

bitcoin: BitcoinModule

Instance of the Bitcoin module

Defined in

packages/client/src/WalletAPIClient.ts:48


currency

currency: CurrencyModule

Instance of the Currency module

Defined in

packages/client/src/WalletAPIClient.ts:53


device

device: DeviceModule

Instance of the Device module

Defined in

packages/client/src/WalletAPIClient.ts:58


exchange

exchange: ExchangeModule

Instance of the Wallet module

Defined in

packages/client/src/WalletAPIClient.ts:83


logger

Private logger: Logger

Defined in

packages/client/src/WalletAPIClient.ts:85


message

message: MessageModule

Instance of the Message module

Defined in

packages/client/src/WalletAPIClient.ts:63


requestHandlers

Protected requestHandlers: Object

Type declaration

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

Inherited from

RpcNode.requestHandlers

Defined in

packages/core/src/JSONRPC/RpcNode.ts:28


storage

storage: StorageModule

Instance of the Storage module

Defined in

packages/client/src/WalletAPIClient.ts:68


transaction

transaction: TransactionModule

Instance of the Transaction module

Defined in

packages/client/src/WalletAPIClient.ts:73


wallet

wallet: WalletModule

Instance of the Wallet module

Defined in

packages/client/src/WalletAPIClient.ts:78

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/src/JSONRPC/RpcNode.ts:102


onRequest

Protected onRequest(request): Promise<void>

Parameters

NameType
requestRpcRequest<string, unknown>

Returns

Promise<void>

Overrides

RpcNode.onRequest

Defined in

packages/client/src/WalletAPIClient.ts:101


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/src/JSONRPC/RpcNode.ts:89