eth-prices 0.0.3

A library for fetching Ethereum prices.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use alloy::sol;

sol! {
    #[sol(rpc)]
    #[derive(Debug, PartialEq, Eq)]
    interface ERC20 {
        function balanceOf(address owner) external view returns (uint256);
        function name() external view returns (string memory);
        function symbol() external view returns (string memory);
        function decimals() external view returns (uint8);
    }
}