Functions

accounts$

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

Defined in rpc/eth.ts:41

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:55

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:100

Get the current block number.

Parameters:

Name Type
Optional options RpcObservableOptions

Returns: Observable<BigNumber>

  • An Observable containing the block height.

chainId$

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

Defined in rpc/eth.ts:23

Observable containing the EIP155 chain ID used for transaction signing. Calls eth_chainId

Parameters:

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

Returns: Observable<BigNumber | Symbol>

  • An Observable containing the chain ID.

defaultAccount$

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

Defined in rpc/eth.ts:87

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:111

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:131

Get the syncStatus state.

Parameters:

Name Type
Optional options RpcObservableOptions

Returns: Observable<false | true | object>

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

transactionCountOf$

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

Defined in rpc/eth.ts:71

Get the transaction count of a given account. Calls eth_getTransactionCount

Parameters:

Name Type Description
address Address Address of the account whose transaction count we want to query.
Optional options RpcObservableOptions Options to pass to RpcObservableOptions.

Returns: Observable<BigNumber | Symbol>

  • An Observable containing the transaction count.

results matching ""

    No results matching ""