Returns the current Tronix (TRX) balance of an account
get_account_trx_balance(address, only_confirmed = FALSE, max_attempts = 3L)
address | (character): address of the account of interest,
either in |
---|---|
only_confirmed | (boolean or |
max_attempts | (integer, positive): specifies the
maximum number of additional attempts to call a URL if the
first attempt fails (i.e. its call status is different from
|
A tibble with the following columns:
request_time
(POSIXct, UTC timezone): date and time when the API
request was made;
address
(character): address of the account, in base58
format;
trx_balance
(double): amount of TRX.
All balances are presented with a precision of 6. This means that a balance returned by this function needs to be divided by 1 million to obtain the actual amount of TRX.
#> # A tibble: 1 x 3 #> request_time address trx_balance #> <dttm> <chr> <dbl> #> 1 2021-07-12 22:03:50 TQjaZ9FD473QBTdUzMLmSyoGB6Yz1CGpux 3927692.