tuweni / org.apache.tuweni.jsonrpc / JSONRPCClient / sendRawTransaction

sendRawTransaction

suspend fun sendRawTransaction(tx: Transaction): String (source)

Sends a signed transaction to the Ethereum network.

Parameters

tx - the transaction object to send

Exceptions

ClientRequestException - if the request is rejected

ConnectException - if it cannot dial the remote client

Return
the hash of the transaction, or an empty string if the hash is not available yet.