Functions

accounts$

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

Defined in rpc/eth.ts:39

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<symbol | BigNumber>

Defined in rpc/eth.ts:53

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<symbol | BigNumber>

  • An Observable containing the balance.

blockNumber$

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

Defined in rpc/eth.ts:103

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<symbol | BigNumber>

Defined in rpc/eth.ts:21

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<symbol | BigNumber>

  • An Observable containing the chain ID.

defaultAccount$

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

Defined in rpc/eth.ts:90

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<symbol | BigNumber>

Defined in rpc/eth.ts:114

Shorthand for fetching the current account's balance.

Parameters:

Name Type
Optional options RpcObservableOptions

Returns: Observable<symbol | BigNumber>


syncStatus$

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

Defined in rpc/eth.ts:128

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<symbol | BigNumber>

Defined in rpc/eth.ts:69

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<symbol | BigNumber>

  • An Observable containing the transaction count.

results matching ""

    No results matching ""