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
로딩 중...
누적 가스 사용량
문자열
로딩 중...
실질가스가격
문자열
로딩 중...
출처:
문자열
로딩 중...
가스 사용량
문자열
로딩 중...
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}'
1필수 '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응답을 반환합니다
1필수 '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.추가("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.그런 다음(응답 => response.text())22.그런 다음(결과 => console.log(result))23.catch(오류 => console.log('error', error));24
1var myHeaders = new Headers();2myHeaders.추가("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.그런 다음(응답 => response.text())22.그런 다음(결과 => console.log(result))23.catch(오류 => 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, 헤더=헤더, data=페이로드)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, 헤더=헤더, data=페이로드)1920인쇄(응답.text)21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.soneium-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(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 = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(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