Class: WalletAPIClient
WalletAPI Client which rely on WindowMessage communication
Hierarchy
RpcNode
<typeofrequestHandlers
,WalletHandlers
>↳
WalletAPIClient
Constructors
constructor
• new WalletAPIClient(transport
, logger?
)
Parameters
Name | Type | Default value |
---|---|---|
transport | Transport | undefined |
logger | Logger | defaultLogger |
Overrides
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
Name | Type |
---|---|
event.account.updated | (_request : RpcRequest <string , unknown >) => Promise <void > |
Inherited from
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
Name | Type |
---|---|
K | extends keyof WalletHandlers |
Parameters
Name | Type |
---|---|
method | K |
params | MethodParamsIfExists <WalletHandlers , K > |
Returns
void
Inherited from
Defined in
packages/core/src/JSONRPC/RpcNode.ts:102
onRequest
▸ Protected
onRequest(request
): Promise
<void
>
Parameters
Name | Type |
---|---|
request | RpcRequest <string , unknown > |
Returns
Promise
<void
>
Overrides
Defined in
packages/client/src/WalletAPIClient.ts:101
request
▸ request<K
>(method
, params
): Promise
<ReturnTypeOfMethodIfExists
<WalletHandlers
, K
>>
Type parameters
Name | Type |
---|---|
K | extends keyof WalletHandlers |
Parameters
Name | Type |
---|---|
method | K |
params | MethodParamsIfExists <WalletHandlers , K > |
Returns
Promise
<ReturnTypeOfMethodIfExists
<WalletHandlers
, K
>>
Inherited from
Defined in
packages/core/src/JSONRPC/RpcNode.ts:89