Functions

accounts$

accounts$(options?: RpcObservableOptions): Observable<string[]>

Defined in rpc/eth.ts:25

Observable which contains the array of all addresses managed by the light client.

Calls eth_accounts.

Parameters:

Name Type Description
Optional options RpcObservableOptions Options to pass to RpcObservableOptions.

Returns: Observable<string[]>

  • An Observable containing the list of public addresses.

balanceOf$

balanceOf$(address: Address, options?: RpcObservableOptions): Observable< BigNumber | Symbol>

Defined in rpc/eth.ts:39

Get the balance of a given account. Calls eth_getBalance.

Parameters:

Name Type Description
address Address The account address to query the balance.
Optional options RpcObservableOptions Options to pass to RpcObservableOptions.

Returns: Observable< BigNumber | Symbol>

  • An Observable containing the balance.

blockNumber$

blockNumber$(options?: RpcObservableOptions): Observable<BigNumber>

Defined in rpc/eth.ts:68

Get the current block number.

Parameters:

Name Type
Optional options RpcObservableOptions

Returns: Observable<BigNumber>

  • An Observable containing the block height.

defaultAccount$

defaultAccount$(options?: RpcObservableOptions): Observable<string>

Defined in rpc/eth.ts:55

Get the default account managed by the light client.

Parameters:

Name Type Description
Optional options RpcObservableOptions Options to pass to RpcObservableOptions.

Returns: Observable<string>

  • An Observable containing the public address of the default account.

myBalance$

myBalance$(options?: RpcObservableOptions): Observable< BigNumber | Symbol>

Defined in rpc/eth.ts:79

Shorthand for fetching the current account's balance.

Parameters:

Name Type
Optional options RpcObservableOptions

Returns: Observable< BigNumber | Symbol>


syncStatus$

syncStatus$(options?: RpcObservableOptions): Observable< false | true | object>

Defined in rpc/eth.ts:99

Get the syncStatus state.

Parameters:

Name Type
Optional options RpcObservableOptions

Returns: Observable< false | true | object>

  • An Observable containing the syncing state object, or false.

results matching ""

    No results matching ""