eth_getTransactionByBlockNumberAndIndex RPC 메서드
매개변수
블록 번호
문자열
필수
로딩 중...
목차
문자열
필수
로딩 중...
반품
객체
객체
로딩 중...
blockHash
문자열
로딩 중...
블록 번호
문자열
로딩 중...
chainId
문자열
로딩 중...
출처:
문자열
로딩 중...
가스
문자열
로딩 중...
가스 가격
문자열
로딩 중...
해시
문자열
로딩 중...
입력
문자열
로딩 중...
논스
문자열
로딩 중...
~에
문자열
로딩 중...
트랜잭션 인덱스
문자열
로딩 중...
값
문자열
로딩 중...
유형
문자열
로딩 중...
v
문자열
로딩 중...
r
문자열
로딩 중...
s
문자열
로딩 중...
요청
1curl https://docs-demo.hedera-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getTransactionByBlockNumberAndIndex","params":["0x3f2e613", "0xe27"],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.hedera-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getTransactionByBlockNumberAndIndex","params":["0x3f2e613", "0xe27"],"id":1,"jsonrpc":"2.0"}'
1필수 'eth'23클라이언트 = Eth::클라이언트.생성 'https://docs-demo.hedera-testnet.quiknode.pro/'4페이로드 = {5"jsonrpc": "2.0",6"방법": "eth_getTransactionByBlockNumberAndIndex",7"params": ["0x3f2e613", "0xe27"],8"id": "1"9}1011답변 = 클라이언트.전송(페이로드.to_json)12응답을 반환합니다
1필수 'eth'23클라이언트 = Eth::클라이언트.생성 'https://docs-demo.hedera-testnet.quiknode.pro/'4페이로드 = {5"jsonrpc": "2.0",6"방법": "eth_getTransactionByBlockNumberAndIndex",7"params": ["0x3f2e613", "0xe27"],8"id": "1"9}1011답변 = 클라이언트.전송(페이로드.to_json)12응답을 반환합니다
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hedera-testnet.quiknode.pro/");4const txInfo = await provider.send(5"eth_getTransactionByBlockNumberAndIndex",6["0x3f2e613", "0xe27"]7);8console.log(txInfo);9})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hedera-testnet.quiknode.pro/");4const txInfo = await provider.send(5"eth_getTransactionByBlockNumberAndIndex",6["0x3f2e613", "0xe27"]7);8console.log(txInfo);9})();
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"방법": "eth_getTransactionByBlockNumberAndIndex",6"params": [7"0x3f2e613",8"0xe27"9],10"id": 1,11"jsonrpc": "2.0"12});1314var requestOptions = {15메서드: 'POST',16헤더: myHeaders,17본문: raw,18리디렉션: 'follow'19};2021가져오기("https://docs-demo.hedera-testnet.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_getTransactionByBlockNumberAndIndex",6"params": [7"0x3f2e613",8"0xe27"9],10"id": 1,11"jsonrpc": "2.0"12});1314var requestOptions = {15메서드: 'POST',16헤더: myHeaders,17본문: raw,18리디렉션: 'follow'19};2021가져오기("https://docs-demo.hedera-testnet.quiknode.pro/", requestOptions)22.그런 다음(응답 => response.text())23.그런 다음(결과 => console.log(result))24.catch(오류 => console.log('error', error));25
1import 요청2import json34url = "https://docs-demo.hedera-testnet.quiknode.pro/"56페이로드 = json.dumps({7"방법": "eth_getTransactionByBlockNumberAndIndex",8"params": [9"0x3f2e613",10"0xe27"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.hedera-testnet.quiknode.pro/"56페이로드 = json.dumps({7"방법": "eth_getTransactionByBlockNumberAndIndex",8"params": [9"0x3f2e613",10"0xe27"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.hedera-testnet.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_getTransactionByBlockNumberAndIndex",14"params": [15"0x3f2e613",16"0xe27"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.hedera-testnet.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_getTransactionByBlockNumberAndIndex",14"params": [15"0x3f2e613",16"0xe27"17],18"id": 1,19"jsonrpc": "2.0"20})2122답변 = https.요청(요청)23응답을 넣습니다.read_body24
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3print(w3.eth.get_transaction_by_block('0x3f2e613', '0xe27'))
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hedera-testnet.quiknode.pro/'))3print(w3.eth.get_transaction_by_block('0x3f2e613', '0xe27'))