eth_sendRawTransactionSync RPC Method
Please note that this RPC method requires the Synchronous SendTransaction add-on enabled on your Quicknode endpoint.
パラメータ
データ
文字列
必須
読み込み中...
返品
結果
オブジェクト
読み込み中...
blockHash
文字列
読み込み中...
ブロック番号
文字列
読み込み中...
contractAddress
string|null
読み込み中...
累積ガス使用量
文字列
読み込み中...
実効ガソリン価格
文字列
読み込み中...
出典:
文字列
読み込み中...
gasUsed
文字列
読み込み中...
l1BaseFeeScalar
文字列
読み込み中...
l1BlobBaseFee
文字列
読み込み中...
l1BlobBaseFeeScalar
文字列
読み込み中...
l1Fee
文字列
読み込み中...
l1GasPrice
文字列
読み込み中...
l1GasUsed
文字列
読み込み中...
ログ
配列
読み込み中...
logsBloom
文字列
読み込み中...
ステータス
文字列
読み込み中...
~へ
文字列
読み込み中...
トランザクションハッシュ
文字列
読み込み中...
トランザクションインデックス
文字列
読み込み中...
タイプ
文字列
読み込み中...
リクエスト
1curl https://docs-demo.soneium-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"eth_sendRawTransactionSync","params":["SIGNED_TRANSACTION"],"id":1}'
1curl https://docs-demo.soneium-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"eth_sendRawTransactionSync","params":["SIGNED_TRANSACTION"],"id":1}'
1require 'eth'23client = Eth::Client.create 'https://docs-demo.soneium-mainnet.quiknode.pro/'4ペイロード = {5"jsonrpc": "2.0",6"method": "eth_sendRawTransactionSync",7"params": ["SIGNED_TRANSACTION"],8"id": "1"9}1011回答 = クライアント.送信(ペイロード.to_json)12レスポンスを格納する
1require 'eth'23client = Eth::Client.create 'https://docs-demo.soneium-mainnet.quiknode.pro/'4ペイロード = {5"jsonrpc": "2.0",6"method": "eth_sendRawTransactionSync",7"params": ["SIGNED_TRANSACTION"],8"id": "1"9}1011回答 = クライアント.送信(ペイロード.to_json)12レスポンスを格納する
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.soneium-mainnet.quiknode.pro/");4const signer = new ethers.Wallet("YOUR_PRIVATE_KEY", provider);5const txResponse = await signer.sendTransaction("eth_sendRawTransactionSync");6console.log(txResponse);7})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.soneium-mainnet.quiknode.pro/");4const signer = new ethers.Wallet("YOUR_PRIVATE_KEY", provider);5const txResponse = await signer.sendTransaction("eth_sendRawTransactionSync");6console.log(txResponse);7})();
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"method": "eth_sendRawTransactionSync",7"params": [8"SIGNED_TRANSACTION"9],10"id": 111});1213var requestOptions = {14メソッド: 'POST',15ヘッダー: myHeaders,16本文: raw,17リダイレクト: 'follow'18};1920fetch("https://docs-demo.soneium-mainnet.quiknode.pro/", requestOptions)21.その後(レスポンス => レスポンス.text())22.その後(結果 => コンソール.log(result))23.catchcatch(エラー => console.log('error', error));24
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"method": "eth_sendRawTransactionSync",7"params": [8"SIGNED_TRANSACTION"9],10"id": 111});1213var requestOptions = {14メソッド: 'POST',15ヘッダー: myHeaders,16本文: raw,17リダイレクト: 'follow'18};1920fetch("https://docs-demo.soneium-mainnet.quiknode.pro/", requestOptions)21.その後(レスポンス => レスポンス.text())22.その後(結果 => コンソール.log(result))23.catchcatch(エラー => console.log('error', error));24
1import リクエスト2import json34url = "https://docs-demo.soneium-mainnet.quiknode.pro/"56ペイロード = json.dumps({7"jsonrpc": "2.0",8"method": "eth_sendRawTransactionSync",9"params": [10"SIGNED_TRANSACTION"11],12"id": 113})14ヘッダー = {15「Content-Type」: 'application/json'16}1718回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1920印刷(レスポンス.text)21
1import リクエスト2import json34url = "https://docs-demo.soneium-mainnet.quiknode.pro/"56ペイロード = json.dumps({7"jsonrpc": "2.0",8"method": "eth_sendRawTransactionSync",9"params": [10"SIGNED_TRANSACTION"11],12"id": 113})14ヘッダー = {15「Content-Type」: 'application/json'16}1718回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)1920印刷(レスポンス.text)21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.soneium-mainnet.quiknode.pro/")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"jsonrpc": "2.0",14"method": "eth_sendRawTransactionSync",15"params": [16"SIGNED_TRANSACTION"17],18"id": 119})2021回答 = https.リクエスト(リクエスト)22レスポンスを格納する.read_body23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.soneium-mainnet.quiknode.pro/")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"jsonrpc": "2.0",14"method": "eth_sendRawTransactionSync",15"params": [16"SIGNED_TRANSACTION"17],18"id": 119})2021回答 = https.リクエスト(リクエスト)22レスポンスを格納する.read_body23