Parameters:
Returns:
Code Examples:
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf8680685051f4d5c00833d090094ac2d0226ade52e6b4ccc97359359f01e34d50352834c4b40802aa004f4410acfc636f5d65e75ca37448fd0b1e90632661ad3ea071594b646e7621fa0186d78ddbeef43bc372fcc650ad4e77e0629206426cd183d751e9ddcc8d5e777"],"id":1}'
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); const wallet = new ethers.Wallet("{your-key-here}"); let tx = { to: "0xaC2d0226AdE52e6b4CCc97359359f01e34d50352", value: ethers.utils.parseEther("0.05"), gasLimit: 8000000, gasPrice: "0x07f9acf02", }; let signedTx = await wallet.signTransaction(tx); console.log(signedTx); let sentTx = await provider.sendTransaction(signedTx); console.log(sentTx); })();
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
from web3 import Web3, HTTPProvider w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')) signed_txn = w3.eth.account.sign_transaction(dict( nonce=w3.eth.get_transaction_count("{your-public-address-here}"), maxFeePerGas=3000000000, maxPriorityFeePerGas=2000000000, gas=100000, to='0xaC2d0226AdE52e6b4CCc97359359f01e34d50352', value=50000000000, data=b'', type=2, chainId=3, ), "{your-key-here}", ) txHash = w3.eth.send_raw_transaction(signed_txn.rawTransaction) print(txHash)