agent0.ethpy.base.rpc_interface =============================== .. py:module:: agent0.ethpy.base.rpc_interface .. autoapi-nested-parse:: Functions for interfacing with the anvil or ethereum RPC endpoint .. !! processed by numpydoc !! Functions --------- .. autoapisummary:: agent0.ethpy.base.rpc_interface.set_account_balance agent0.ethpy.base.rpc_interface.get_account_balance Module Contents --------------- .. py:function:: set_account_balance(web3: web3.Web3, account_address: str, amount_wei: int) -> web3.types.RPCResponse Set the eth balance of the the account using the web3 provider. :param web3: The instantiated web3 provider. :type web3: Web3 :param account_address: The address of the account to fund. :type account_address: str :param amount_wei: Amount_wei to fund, in wei. :type amount_wei: int :returns: success can be checked by inspecting `rpc_response.error` :rtype: RPCResponse .. !! processed by numpydoc !! .. py:function:: get_account_balance(web3: web3.Web3, account_address: str) -> int | None Get the balance for an account deployed on the web3 provider. :param web3: The instantiated web3 provider. :type web3: Web3 :param account_address: The address of the account to fund. :type account_address: str :returns: The balance of the account in wei, or None if the rpc call failed. :rtype: int | None .. !! processed by numpydoc !!