Learn R Programming

ether (version 0.1.6)

eth_getBalance: Returns the balance (in Wei) of the account at specified address.

Description

Returns the balance (in Wei) of the account at specified address.

Usage

eth_getBalance(address = NULL, number = "latest")

Arguments

address

A 20 byte (hexadecimal) Ethereum address.

number

An integer block number (as a hexidecimal string) or one of "earliest", "latest" or "pending".

Value

Integer.

Examples

Run this code
# NOT RUN {
eth_getBalance()
eth_getBalance("0xD34DA389374CAAD1A048FBDC4569AAE33fD5a375")
# }

Run the code above in your browser using DataLab