tuweni / org.apache.tuweni.jsonrpc / JSONRPCClient

JSONRPCClient

class JSONRPCClient : Closeable (source)

JSON-RPC client to send requests to an Ethereum client.

Constructors

<init>

JSON-RPC client to send requests to an Ethereum client.

JSONRPCClient(vertx: Vertx, serverPort: Int, serverHost: String, userAgent: String = "Apache Tuweni JSON-RPC Client")

Properties

client

val client: WebClient!

serverHost

val serverHost: String

serverPort

val serverPort: Int

userAgent

val userAgent: String

Functions

close

fun close(): Unit

getBalance_latest

Gets the account balance.

suspend fun getBalance_latest(address: Address): UInt256

getTransactionCount_latest

Gets the number of transactions sent from an address.

suspend fun getTransactionCount_latest(address: Address): UInt256

sendRawTransaction

Sends a signed transaction to the Ethereum network.

suspend fun sendRawTransaction(tx: Transaction): String