Please note that Quicknode does not support the eth_signTransaction RPC method. To sign a transaction without a node-held key, see How to Sign Ethereum Transactions Locally.
Parameters
object
object
REQUIRED
The transaction object:
from
string
REQUIRED
The address the transaction is sent from
to
string
REQUIRED
The address the transaction is directed to
gas
string
The integer of the gas provided for the transaction execution, in hex
gasPrice
string
The integer of the gasPrice used for each paid gas, in wei
value
string
The integer of the value sent with this transaction, in wei
data
string
The compiled code of a contract or the hash of the invoked method signature and encoded parameters
nonce
string
The integer of a nonce. This allows overwriting your own pending transactions that use the same nonce
Returns
result
string
The signed transaction object (RLP-encoded hex string)
Request
1curl -X POST "https://docs-demo.giwa-sepolia.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_signTransaction",6"params": [7{8"from": "0x0000000000000000000000000000000000000000",9"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",10"gas": "0x76c0",11"gasPrice": "0x9184e72a000",12"value": "0x9184e72a",13"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",14"nonce": "0x1"15}16],17"id": 118}'
1curl -X POST "https://docs-demo.giwa-sepolia.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_signTransaction",6"params": [7{8"from": "0x0000000000000000000000000000000000000000",9"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",10"gas": "0x76c0",11"gasPrice": "0x9184e72a000",12"value": "0x9184e72a",13"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",14"nonce": "0x1"15}16],17"id": 118}'
1import { ethers } from "ethers";23async function main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.giwa-sepolia.quiknode.pro/");5const response = await provider.send("eth_signTransaction", [6{7"from": "0x0000000000000000000000000000000000000000",8"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",9"gas": "0x76c0",10"gasPrice": "0x9184e72a000",11"value": "0x9184e72a",12"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",13"nonce": "0x1"14}15]);16console.log(response);17}1819main();
1import { ethers } from "ethers";23async function main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.giwa-sepolia.quiknode.pro/");5const response = await provider.send("eth_signTransaction", [6{7"from": "0x0000000000000000000000000000000000000000",8"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",9"gas": "0x76c0",10"gasPrice": "0x9184e72a000",11"value": "0x9184e72a",12"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",13"nonce": "0x1"14}15]);16console.log(response);17}1819main();
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.giwa-sepolia.quiknode.pro/'))3response = w3.provider.make_request("eth_signTransaction", [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}])4print(response)
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.giwa-sepolia.quiknode.pro/'))3response = w3.provider.make_request("eth_signTransaction", [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}])4print(response)
1import { createPublicClient, http } from 'viem'23async function main() {4const client = createPublicClient({5transport: http('https://docs-demo.giwa-sepolia.quiknode.pro/')6})78const result = await client.request({9method: 'eth_signTransaction',10params: [11{12"from": "0x0000000000000000000000000000000000000000",13"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",14"gas": "0x76c0",15"gasPrice": "0x9184e72a000",16"value": "0x9184e72a",17"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",18"nonce": "0x1"19}20]21})2223console.log(result)24}2526main()
1import { createPublicClient, http } from 'viem'23async function main() {4const client = createPublicClient({5transport: http('https://docs-demo.giwa-sepolia.quiknode.pro/')6})78const result = await client.request({9method: 'eth_signTransaction',10params: [11{12"from": "0x0000000000000000000000000000000000000000",13"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",14"gas": "0x76c0",15"gasPrice": "0x9184e72a000",16"value": "0x9184e72a",17"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",18"nonce": "0x1"19}20]21})2223console.log(result)24}2526main()
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.giwa-sepolia.quiknode.pro/",5})67core.client8.request({9method: 'eth_signTransaction',10params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}]11})12.then(res => console.log(res))
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.giwa-sepolia.quiknode.pro/",5})67core.client8.request({9method: 'eth_signTransaction',10params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}]11})12.then(res => console.log(res))
1const body = {2jsonrpc: '2.0',3method: 'eth_signTransaction',4params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}],5id: 16}78async function main() {9const response = await fetch('https://docs-demo.giwa-sepolia.quiknode.pro/', {10method: 'POST',11headers: {'Content-Type': 'application/json'},12body: JSON.stringify(body)13})14const data = await response.json()15console.log(data)16}1718main()
1const body = {2jsonrpc: '2.0',3method: 'eth_signTransaction',4params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}],5id: 16}78async function main() {9const response = await fetch('https://docs-demo.giwa-sepolia.quiknode.pro/', {10method: 'POST',11headers: {'Content-Type': 'application/json'},12body: JSON.stringify(body)13})14const data = await response.json()15console.log(data)16}1718main()
1import requests2import json34url = "https://docs-demo.giwa-sepolia.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "eth_signTransaction",9"params": [10{11"from": "0x0000000000000000000000000000000000000000",12"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",13"gas": "0x76c0",14"gasPrice": "0x9184e72a000",15"value": "0x9184e72a",16"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",17"nonce": "0x1"18}19],20"id": 121})22headers = {23'Content-Type': 'application/json'24}2526response = requests.request("POST", url, headers=headers, data=payload)2728print(response.text)
1import requests2import json34url = "https://docs-demo.giwa-sepolia.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "eth_signTransaction",9"params": [10{11"from": "0x0000000000000000000000000000000000000000",12"to": "0x70997970c51812dc3a010c7d01b50e0d17dc79c8",13"gas": "0x76c0",14"gasPrice": "0x9184e72a000",15"value": "0x9184e72a",16"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",17"nonce": "0x1"18}19],20"id": 121})22headers = {23'Content-Type': 'application/json'24}2526response = requests.request("POST", url, headers=headers, data=payload)2728print(response.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.giwa-sepolia.quiknode.pro/")67payload = {8jsonrpc: "2.0",9id: 1,10method: "eth_signTransaction",11params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}]12}1314request = Net::HTTP::Post.new(uri)15request["Content-Type"] = "application/json"16request.body = JSON.generate(payload)1718response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.request(request)20end2122puts response.body
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.giwa-sepolia.quiknode.pro/")67payload = {8jsonrpc: "2.0",9id: 1,10method: "eth_signTransaction",11params: [{"from":"0x0000000000000000000000000000000000000000","to":"0x70997970c51812dc3a010c7d01b50e0d17dc79c8","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675","nonce":"0x1"}]12}1314request = Net::HTTP::Post.new(uri)15request["Content-Type"] = "application/json"16request.body = JSON.generate(payload)1718response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.request(request)20end2122puts response.body
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0xf86b808502540be4008252089470997970c51812dc3a010c7d01b50e0d17dc79c8872386f26fc1000080820a96a0d29b498ef49e9dd94a5e0e3ec6eccd85c21edcee32dc4d12a3b3e4a1c2c30e1a06c3b15e13e0bffa8f6de1f5e1e0c3d7ed3f3d6fccfe0a2e9c0d4b3a8c7f1e2b9"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0xf86b808502540be4008252089470997970c51812dc3a010c7d01b50e0d17dc79c8872386f26fc1000080820a96a0d29b498ef49e9dd94a5e0e3ec6eccd85c21edcee32dc4d12a3b3e4a1c2c30e1a06c3b15e13e0bffa8f6de1f5e1e0c3d7ed3f3d6fccfe0a2e9c0d4b3a8c7f1e2b9"5}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free