Skip to content

Commit

Permalink
docs: update get_balance docs (#938)
Browse files Browse the repository at this point in the history
* docs: update get_balance docs

* Update crates/provider/src/provider/trait.rs

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>

---------

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
  • Loading branch information
mattsse and onbjerg authored Jun 18, 2024
1 parent 707fdb5 commit 9b49122
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/provider/src/provider/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:
RpcWithBlock::new(self.weak_client(), "eth_getAccount", address)
}

/// Gets the balance of the account at the specified tag, which defaults to latest.
/// Gets the balance of the account.
///
/// Defaults to the latest block. See also [`RpcWithBlock::block_id`].
fn get_balance(&self, address: Address) -> RpcWithBlock<T, Address, U256> {
RpcWithBlock::new(self.weak_client(), "eth_getBalance", address)
}
Expand Down

0 comments on commit 9b49122

Please sign in to comment.