QuickNode Raises $60M Series B!
Read the Letter from our CEO.


qn_broadcastRawTransaction RPC method

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

Currently supports Binance Smart Chain (mainnet and testnet) and Ethereum (mainnet, goerli, and sepolia) networks.


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


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

Code Examples:

require 'ethereum.rb'
require 'eth'
client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')
key = Eth::Key.new priv: "{your-key-here}"
amount = 50000000000
payload = {
  chain_id: Eth::Chain::GOERLI, #replace with correct chain!
  nonce: 5, #replace with correct nonce!
  priority_fee: 3 * Eth::Unit::GWEI,
  max_gas_fee: 21 * Eth::Unit::GWEI,
  gas_limit: 69_420,
  to: "0xaC2d0226AdE52e6b4CCc97359359f01e34d50352",
  value: amount,
tx = Eth::Tx.new(payload)
response = client.send_command('qn_broadcastRawTransaction', [tx.hex])
puts response
Ready to get started? Create a free account