eth_getTransactionByBlockHashAndIndex RPC 메서드
매개변수
blockHash
문자열
필수
로딩 중...
목차
문자열
필수
로딩 중...
반품
객체
로딩 중...
blockHash
로딩 중...
블록 번호
로딩 중...
출처:
로딩 중...
가스
로딩 중...
가스 가격
로딩 중...
maxFeePerGas
로딩 중...
가스당 최대 우선순위 수수료
로딩 중...
해시
로딩 중...
입력
로딩 중...
논스
로딩 중...
~에
로딩 중...
트랜잭션 인덱스
로딩 중...
값
로딩 중...
유형
로딩 중...
accessList
로딩 중...
chainId
로딩 중...
v
로딩 중...
r
로딩 중...
s
로딩 중...
yParity
로딩 중...
요청
1curl https://docs-demo.sei-pacific.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getTransactionByBlockHashAndIndex","params":["0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9","0x14"],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.sei-pacific.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getTransactionByBlockHashAndIndex","params":["0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9","0x14"],"id":1,"jsonrpc":"2.0"}'
1필수 'eth'23클라이언트 = Eth::클라이언트.생성 'https://docs-demo.sei-pacific.quiknode.pro/'4페이로드 = {5"jsonrpc": "2.0",6"method": "eth_getTransactionByBlockHashAndIndex",7"params": ["0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9","0x14"],8"id": "1"9}10
1필수 'eth'23클라이언트 = Eth::클라이언트.생성 'https://docs-demo.sei-pacific.quiknode.pro/'4페이로드 = {5"jsonrpc": "2.0",6"method": "eth_getTransactionByBlockHashAndIndex",7"params": ["0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9","0x14"],8"id": "1"9}10
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.sei-pacific.quiknode.pro/");4const txInfo = await provider.send("eth_getTransactionByBlockHashAndIndex", [5"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",6"0x14",7]);8console.log(txInfo);9})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.sei-pacific.quiknode.pro/");4const txInfo = await provider.send("eth_getTransactionByBlockHashAndIndex", [5"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",6"0x14",7]);8console.log(txInfo);9})();
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"방법": "eth_getTransactionByBlockHashAndIndex",6"params": [7"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",8"0x14"9],10"id": 1,11"jsonrpc": "2.0"12});1314var requestOptions = {15메서드: 'POST',16헤더: myHeaders,17본문: raw,18리디렉션: 'follow'19};2021가져오기("https://docs-demo.sei-pacific.quiknode.pro/", requestOptions)22.그런 다음(응답 => response.text())23.그런 다음(결과 => console.log(result))24.catch(오류 => console.log('error', error));25
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"방법": "eth_getTransactionByBlockHashAndIndex",6"params": [7"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",8"0x14"9],10"id": 1,11"jsonrpc": "2.0"12});1314var requestOptions = {15메서드: 'POST',16헤더: myHeaders,17본문: raw,18리디렉션: 'follow'19};2021가져오기("https://docs-demo.sei-pacific.quiknode.pro/", requestOptions)22.그런 다음(응답 => response.text())23.그런 다음(결과 => console.log(result))24.catch(오류 => console.log('error', error));25
1import 요청2import json34url = "https://docs-demo.sei-pacific.quiknode.pro/"56페이로드 = json.dumps({7"방법": "eth_getTransactionByBlockHashAndIndex",8"params": [9"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",10"0x14"11],12"id": 1,13"jsonrpc": "2.0"14})15헤더 = {16'Content-Type': 'application/json'17}1819답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2021인쇄(응답.text)22
1import 요청2import json34url = "https://docs-demo.sei-pacific.quiknode.pro/"56페이로드 = json.dumps({7"방법": "eth_getTransactionByBlockHashAndIndex",8"params": [9"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",10"0x14"11],12"id": 1,13"jsonrpc": "2.0"14})15헤더 = {16'Content-Type': 'application/json'17}1819답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2021인쇄(응답.text)22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sei-pacific.quiknode.pro/")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"방법": "eth_getTransactionByBlockHashAndIndex",14"params": [15"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",16"0x14"17],18"id": 1,19"jsonrpc": "2.0"20})2122답변 = https.요청(요청)23응답을 넣습니다.read_body24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sei-pacific.quiknode.pro/")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"방법": "eth_getTransactionByBlockHashAndIndex",14"params": [15"0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9",16"0x14"17],18"id": 1,19"jsonrpc": "2.0"20})2122답변 = https.요청(요청)23응답을 넣습니다.read_body24
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.sei-pacific.quiknode.pro/'))3print(w3.eth.get_transaction_by_block('0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9', '0x14'))
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.sei-pacific.quiknode.pro/'))3print(w3.eth.get_transaction_by_block('0x001d9f52369db82c343d3f8a43657074beeb786f1dd8b92061cf3e49daaf09f9', '0x14'))