Skip to main content

Reference / Modules / client / TransactionClient

Class: TransactionClient

client.TransactionClient

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TransactionClient(params): TransactionClient

Parameters

NameType
paramsObject
params.axiosFactoryAxiosFactory
params.currentAccountValidAccountId
params.networkStateNetworkState<LegalOfficerEndpoint>

Returns

TransactionClient

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

NameType
axiosAxiosInstance
requestFetchTransactionsSpecification

Returns

Promise<BackendTransaction[]>

Defined in

packages/client/src/TransactionClient.ts:76