Variables

<Let> api

● api: any

Defined in api.ts:10


Functions

<Const> getApi

getApi(): any

Defined in api.ts:46

We only ever use api() at call-time of functions; this allows the options (particularly the transport option) to be changed dynamically and the data structure to be reused.

Returns: any

  • The current Api object.

<Const> setApi

setApi(newApi: any): void

Defined in api.ts:26

Sets a new Api object.

Parameters:

Name Type Description
newApi any An Api object.

Returns: void


<Const> setProvider

setProvider(provider?: any): void

Defined in api.ts:35

Sets a new Ethereum provider object.

Parameters:

Name Type Description
Optional provider any An Ethereum provider object.

Returns: void


results matching ""

    No results matching ""