Reference / Modules / client / TransactionClient
Class: TransactionClient
client.TransactionClient
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new TransactionClient(params
): TransactionClient
Parameters
Name | Type |
---|---|
params | Object |
params.axiosFactory | AxiosFactory |
params.currentAccount | ValidAccountId |
params.networkState | NetworkState <LegalOfficerEndpoint > |
Returns
Defined in
packages/client/src/TransactionClient.ts:52
Properties
axiosFactory
• Private
Readonly
axiosFactory: AxiosFactory
Defined in
packages/client/src/TransactionClient.ts:64
currentAccount
• Private
Readonly
currentAccount: ValidAccountId
Defined in
packages/client/src/TransactionClient.ts:66
networkState
• Private
Readonly
networkState: NetworkState
<LegalOfficerEndpoint
>
Defined in
packages/client/src/TransactionClient.ts:62
Methods
fetchTransactions
▸ fetchTransactions(): Promise
<BackendTransaction
[]>
Returns
Promise
<BackendTransaction
[]>
Defined in
packages/client/src/TransactionClient.ts:68
getTransactions
▸ getTransactions(axios
, request
): Promise
<BackendTransaction
[]>
Parameters
Name | Type |
---|---|
axios | AxiosInstance |
request | FetchTransactionsSpecification |
Returns
Promise
<BackendTransaction
[]>