EthJsonRPC
EthJsonRPC is a library with utilities to interact with an Ethereum JSON-RPC endpoint.
Functionsβ
nonceβ
Get the nonce of an address.
Input:
addr
(address
): The address to get the nonce.
Output:
val
(uint256
): The nonce of the address.
callβ
Call a contract function.
Input:
-
to
(address
): The address of the contract. -
data
(bytes
): The data of the function.
Output:
the
(bytes
): Result of the function call.