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 -X POST "https://docs-demo.matic.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_sendRawTransactionSync",6"params": [7"SIGNED_TRANSACTION"8],9"id": 110}'
1curl -X POST "https://docs-demo.matic.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_sendRawTransactionSync",6"params": [7"SIGNED_TRANSACTION"8],9"id": 110}'
1import { ethers } from "ethers";23async 関数 main() {4const プロバイダー = new ethers.JsonRpcProvider(「https://docs-demo.matic.quiknode.pro/」);5const response = await provider.send("eth_sendRawTransactionSync", [6"SIGNED_TRANSACTION"7]);8コンソール.log(レスポンス);9}1011メイン();
1import { ethers } from "ethers";23async 関数 main() {4const プロバイダー = new ethers.JsonRpcProvider(「https://docs-demo.matic.quiknode.pro/」);5const response = await provider.send("eth_sendRawTransactionSync", [6"SIGNED_TRANSACTION"7]);8コンソール.log(レスポンス);9}1011メイン();
1require 'eth'23client = Eth::Client.create 'https://docs-demo.matic.quiknode.pro/'4ペイロード = {5"jsonrpc": "2.0",6"method": "eth_sendRawTransactionSync",7"params": [8"SIGNED_TRANSACTION"9],10"id": "1"11}1213回答 = クライアント.送信(ペイロード.to_json)14レスポンスを格納する
1require 'eth'23client = Eth::Client.create 'https://docs-demo.matic.quiknode.pro/'4ペイロード = {5"jsonrpc": "2.0",6"method": "eth_sendRawTransactionSync",7"params": [8"SIGNED_TRANSACTION"9],10"id": "1"11}1213回答 = クライアント.送信(ペイロード.to_json)14レスポンスを格納する
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.matic.quiknode.pro/')))3response = w3.provider.make_request("eth_sendRawTransactionSync", ["SIGNED_TRANSACTION"])4印刷(レスポンス)
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.matic.quiknode.pro/')))3response = w3.provider.make_request("eth_sendRawTransactionSync", ["SIGNED_TRANSACTION"])4印刷(レスポンス)
1import { createPublicClient, http } from 'viem'23async 関数 main() {4const クライアント = createPublicClient({5輸送: http(「https://docs-demo.matic.quiknode.pro/」)6})78const result = await client.リクエスト({9method: 'eth_sendRawTransactionSync',10params: [11"SIGNED_TRANSACTION"12]13})1415コンソール.log(結果)16}1718メイン()
1import { createPublicClient, http } from 'viem'23async 関数 main() {4const クライアント = createPublicClient({5輸送: http(「https://docs-demo.matic.quiknode.pro/」)6})78const result = await client.リクエスト({9method: 'eth_sendRawTransactionSync',10params: [11"SIGNED_TRANSACTION"12]13})1415コンソール.log(結果)16}1718メイン()
1import { Core } from '@quicknode/sdk'23const コア = new Core({4endpointUrl: "https://docs-demo.matic.quiknode.pro/",5})67コア.クライアント8.リクエスト({9method: 'eth_sendRawTransactionSync',10params: ["SIGNED_TRANSACTION"]11})12.その後(res => console.log(res))
1import { Core } from '@quicknode/sdk'23const コア = new Core({4endpointUrl: "https://docs-demo.matic.quiknode.pro/",5})67コア.クライアント8.リクエスト({9method: 'eth_sendRawTransactionSync',10params: ["SIGNED_TRANSACTION"]11})12.その後(res => console.log(res))
1const body = {2jsonrpc: '2.0',3method: 'eth_sendRawTransactionSync',4params: ["SIGNED_TRANSACTION"],5id: 16}78async 関数 main() {9const response = await fetch('https://docs-demo.matic.quiknode.pro/', {10メソッド: 'POST',11headers: {'Content-Type': 'application/json'},12本文: JSON.stringify(body)13})14const データ = await response.json()15コンソール.log(データ)16}1718メイン()
1const body = {2jsonrpc: '2.0',3method: 'eth_sendRawTransactionSync',4params: ["SIGNED_TRANSACTION"],5id: 16}78async 関数 main() {9const response = await fetch('https://docs-demo.matic.quiknode.pro/', {10メソッド: 'POST',11headers: {'Content-Type': 'application/json'},12本文: JSON.stringify(body)13})14const データ = await response.json()15コンソール.log(データ)16}1718メイン()
1import リクエスト2import json34url = "https://docs-demo.matic.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)
1import リクエスト2import json34url = "https://docs-demo.matic.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)
1require "uri"2require "json"3require "net/http"45uri = URI(「https://docs-demo.matic.quiknode.pro/」)67ペイロード = {8jsonrpc: "2.0",9id: 1,10method: "eth_sendRawTransactionSync",11params: ["SIGNED_TRANSACTION"]12}1314リクエスト = ネット::HTTP::POST.new(URI)15リクエスト["Content-Type"] = "application/json"16リクエスト.本文 = JSON.generate(ペイロード)1718回答 = ネット::HTTP.開始(uri.host, uri.port, use_ssl: true) do |http|19http.リクエスト(リクエスト)20終わり2122レスポンスを格納する。body
1require "uri"2require "json"3require "net/http"45uri = URI(「https://docs-demo.matic.quiknode.pro/」)67ペイロード = {8jsonrpc: "2.0",9id: 1,10method: "eth_sendRawTransactionSync",11params: ["SIGNED_TRANSACTION"]12}1314リクエスト = ネット::HTTP::POST.new(URI)15リクエスト["Content-Type"] = "application/json"16リクエスト.本文 = JSON.generate(ペイロード)1718回答 = ネット::HTTP.開始(uri.host, uri.port, use_ssl: true) do |http|19http.リクエスト(リクエスト)20終わり2122レスポンスを格納する。body
回答
1{2"jsonrpc": "2.0",3"id": 1,4"結果": "0x0000000000000000000000000000000000000000000000000000000000000000"5}
1{2"jsonrpc": "2.0",3"id": 1,4"結果": "0x0000000000000000000000000000000000000000000000000000000000000000"5}