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: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
Name | Type |
---|---|
event.account.updated | (_request : RpcRequest <string , unknown >) => Promise <void > |
Inherited from
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
Name | Type |
---|---|
K | extends keyof WalletHandlers |
Parameters
Name | Type |
---|---|
method | K |
params | MethodParamsIfExists <WalletHandlers , K > |
Returns
void
Inherited from
Defined in
packages/core/lib/JSONRPC/RpcNode.d.ts:15
onRequest
▸ Protected
onRequest(request
): Promise
<void
>
Parameters
Name | Type |
---|---|
request | RpcRequest <string , unknown > |
Returns
Promise
<void
>
Overrides
Defined in
packages/client/src/WalletAPIClient.ts:94
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/lib/JSONRPC/RpcNode.d.ts:14