We're now supporting Polygon zkEVM!
Learn more here.

Contents

eth_sendRawTransaction RPC Method

The API credit value for this method is 29 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. data - The signed transaction (typically signed with a library, using your private key)

Returns:

  1. result - The transaction hash, or the zero hash if the transaction is not yet available

Code Examples:

require 'eth'

client = Eth::Client.create 'http://sample-endpoint-name.network.quiknode.pro/token-goes-here/'
payload = {
    "jsonrpc": "2.0",
    "method": "eth_sendRawTransaction",
    "params": ["signed transaction"],
    "id": "1"
}

response = client.send(payload.to_json)
puts response
Ready to get started? Create a free account