RpcClient

liewhite.ethers.rpc.RpcClient
See theRpcClient companion object
class RpcClient(val url: String, id: Ref[Long], proxy: Option[Proxy])

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def eth_blockNumber(): ZIO[Any, Throwable, HexUint]
def eth_call(call: TransactionCall, blockNumber: BlockNumberOrTag): ZIO[Any, Throwable, Array[Byte]]
def eth_chainId(): ZIO[Any, Throwable, HexUint]
def eth_estimateGas(call: TransactionCall, blockNumber: BlockNumberOrTag): ZIO[Any, Throwable, HexUint]
def eth_gasPrice(): ZIO[Any, Throwable, HexUint]
def eth_getBalance(address: Address, blockNumber: BlockNumberOrTag): ZIO[Any, Throwable, HexUint]
def eth_getBlockByHash(hash: Array[Byte], withTxs: Boolean): ZIO[Any, Throwable, Block]
def eth_getBlockByNumber(blockNumber: BlockNumberOrTag, withTxs: Boolean): ZIO[Any, Throwable, Block]
def eth_getCode(address: Address, blockNumber: BlockNumberOrTag): ZIO[Any, Throwable, Array[Byte]]
def eth_getStorageAt(address: Address, position: HexUint, blockNumber: BlockNumberOrTag): ZIO[Any, Throwable, Array[Byte]]
def eth_getTransactionCount(address: Address, blockNumber: BlockNumberOrTag): ZIO[Any, Throwable, HexUint]
def eth_getTransactionReceipt(hash: Array[Byte]): ZIO[Any, Throwable, Receipt]
def eth_sendRawTransaction(txs: Seq[Array[Byte]]): ZIO[Any, Throwable, Array[Byte]]
def request[I : Schema, O : Schema](method: String, params: I): ZIO[Any, Throwable, O]

Concrete fields

val client: OkHttpClient
val clientBuilder: Builder
val url: String