Marketplace has launched, further enabling blockchain developers! Learn more

Contents

eth_sendRawTransaction RPC method

The eth_sendRawTransaction EVM method is only supported on the Avalanche C-Chain.

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:

To use the eth_sendRawTransaction EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

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
response = client.transfer(key, "0xaC2d0226AdE52e6b4CCc97359359f01e34d50352", amount)
puts response
Ready to get started? Create a free account