Version: 0.13.7

Interface: TLProvider

"providers/TLProvider".TLProvider

Interface for different provider strategies which extends the given abstract class of ethers.js.

Hierarchy#

  • TLProvider

Implemented by#

Properties#

ApiUrl#

ApiUrl: string

Defined in src/providers/TLProvider.ts:16


WsApiUrl#

WsApiUrl: string

Defined in src/providers/TLProvider.ts:17

Methods#

createWebsocketStream#

createWebsocketStream(endpoint: string, functionName: string, args: object, reconnectingOptions?: ReconnectingWSOptions): any

Defined in src/providers/TLProvider.ts:20

Parameters:#

NameType
endpointstring
functionNamestring
argsobject
reconnectingOptions?ReconnectingWSOptions

Returns: any


fetchEndpoint#

fetchEndpoint<T>(endpoint: string, options?: object): Promise<T>

Defined in src/providers/TLProvider.ts:18

Type parameters:#

Name
T

Parameters:#

NameType
endpointstring
options?object

Returns: Promise<T>


getBalance#

getBalance(userAddress: string): Promise<Amount>

Defined in src/providers/TLProvider.ts:35

Parameters:#

NameType
userAddressstring

Returns: Promise<Amount>


getIdentityImplementationAddress#

getIdentityImplementationAddress(userAddress: string): Promise<string>

Defined in src/providers/TLProvider.ts:29

Parameters:#

NameType
userAddressstring

Returns: Promise<string>


getIdentityNonce#

getIdentityNonce(userAddress: string): Promise<number>

Defined in src/providers/TLProvider.ts:28

Parameters:#

NameType
userAddressstring

Returns: Promise<number>


getMetaTxFees#

getMetaTxFees(metaTransaction: MetaTransaction): Promise<MetaTransactionFees>

Defined in src/providers/TLProvider.ts:30

Parameters:#

NameType
metaTransactionMetaTransaction

Returns: Promise<MetaTransactionFees>


getMetaTxStatus#

getMetaTxStatus(identityAddress: string, metaTransactionHash: string): Promise<MetaTransactionStatus>

Defined in src/providers/TLProvider.ts:31

Parameters:#

NameType
identityAddressstring
metaTransactionHashstring

Returns: Promise<MetaTransactionStatus>


getTxInfos#

getTxInfos(userAddress: string): Promise<TxInfos>

Defined in src/providers/TLProvider.ts:26

Parameters:#

NameType
userAddressstring

Returns: Promise<TxInfos>


getTxStatus#

getTxStatus(txHash: string): Promise<TransactionStatusObject>

Defined in src/providers/TLProvider.ts:27

Parameters:#

NameType
txHashstring

Returns: Promise<TransactionStatusObject>


postToEndpoint#

postToEndpoint<T>(endpoint: string, data: any): Promise<T>

Defined in src/providers/TLProvider.ts:19

Type parameters:#

Name
T

Parameters:#

NameType
endpointstring
dataany

Returns: Promise<T>


sendSignedMetaTransaction#

sendSignedMetaTransaction(metaTransaction: MetaTransaction): Promise<string>

Defined in src/providers/TLProvider.ts:37

Parameters:#

NameType
metaTransactionMetaTransaction

Returns: Promise<string>


sendSignedTransaction#

sendSignedTransaction(signedTransaction: string): Promise<string>

Defined in src/providers/TLProvider.ts:36

Parameters:#

NameType
signedTransactionstring

Returns: Promise<string>