eth_call RPC 메서드
매개변수
거래
객체
필수
로딩 중...
출처:
문자열
로딩 중...
~에
문자열
필수
로딩 중...
가스
정수
로딩 중...
가스 가격
정수
로딩 중...
값
정수
로딩 중...
데이터
문자열
로딩 중...
블록 번호/태그
문자열
필수
로딩 중...
목적
객체
로딩 중...
균형
문자열
로딩 중...
논스
문자열
로딩 중...
코드
문자열
로딩 중...
상태
객체
로딩 중...
stateDiff
정수
로딩 중...
반품
결과
문자열
로딩 중...
요청
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"id": 1,7"method": "eth_call",8"params": [9{10"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"data": "0x919840ad"12},13"최신",14{15"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {16"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"17}18}19]20}'
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"id": 1,7"method": "eth_call",8"params": [9{10"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"data": "0x919840ad"12},13"최신",14{15"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {16"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"17}18}19]20}'
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.hype-mainnet.quiknode.pro/evm",5})67핵심.클라이언트8.call({9account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',10data: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',11to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',12})13.then(res => console.log(res))14
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.hype-mainnet.quiknode.pro/evm",5})67핵심.클라이언트8.call({9account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',10data: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',11to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',12})13.then(res => console.log(res))14
1필수 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4페이로드 = {5"jsonrpc": "2.0",6"방법": "eth_call",7"params": [8{9"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",10"데이터": "0x919840ad"11},12"최신",13{14"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {15"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"16}17}18],19"id": "1"20}2122답변 = 클라이언트.전송(페이로드.to_json)23응답을 반환합니다
1필수 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4페이로드 = {5"jsonrpc": "2.0",6"방법": "eth_call",7"params": [8{9"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",10"데이터": "0x919840ad"11},12"최신",13{14"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {15"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"16}17}18],19"id": "1"20}2122답변 = 클라이언트.전송(페이로드.to_json)23응답을 반환합니다
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("eth_call", [5{6"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",7"데이터": "0x919840ad"8},9"최신",10{11"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {12"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"13}14}15]);16콘솔.log(응답);17})();18
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("eth_call", [5{6"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",7"데이터": "0x919840ad"8},9"최신",10{11"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {12"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"13}14}15]);16콘솔.log(응답);17})();18
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"방법": "eth_call",6"params": [7{8"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",9"데이터": "0x919840ad"10},11"최신",12{13"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {14"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"15}16}17],18"id": 1,19"jsonrpc": "2.0"20});2122var requestOptions = {23메서드: 'POST',24헤더: myHeaders,25본문: raw,26리디렉션: 'follow'27};2829fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)30.그런 다음(응답 => response.text())31.그런 다음(결과 => console.log(result))32.catch(오류 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"방법": "eth_call",6"params": [7{8"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",9"데이터": "0x919840ad"10},11"최신",12{13"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {14"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"15}16}17],18"id": 1,19"jsonrpc": "2.0"20});2122var requestOptions = {23메서드: 'POST',24헤더: myHeaders,25본문: raw,26리디렉션: 'follow'27};2829fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)30.그런 다음(응답 => response.text())31.그런 다음(결과 => console.log(result))32.catch(오류 => console.log('error', error));
1import 요청2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56페이로드 = json.dumps({7"방법": "eth_call",8"params": [9{10"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"데이터": "0x919840ad"12},13"최신",14{15"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {16"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"17}18}19],20"id": 1,21"jsonrpc": "2.0"22})23헤더 = {24'Content-Type': 'application/json'25}2627답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2829인쇄(응답.text)30
1import 요청2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56페이로드 = json.dumps({7"방법": "eth_call",8"params": [9{10"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"데이터": "0x919840ad"12},13"최신",14{15"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {16"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"17}18}19],20"id": 1,21"jsonrpc": "2.0"22})23헤더 = {24'Content-Type': 'application/json'25}2627답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2829인쇄(응답.text)30
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"방법": "eth_call",14"params": [15{16"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",17"데이터": "0x919840ad"18},19"최신",20{21"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {22"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"23}24}25],26"id": 1,27"jsonrpc": "2.0"28})2930답변 = https.요청(요청)31응답을 넣습니다.read_body32
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"방법": "eth_call",14"params": [15{16"~에": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",17"데이터": "0x919840ad"18},19"최신",20{21"0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460": {22"code": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063919840ad14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b60005a90509056fea265627a7a72315820df124583906aafd283490b866399b6762e2075e1d84214363893c5993a13276f64736f6c63430005110032"23}24}25],26"id": 1,27"jsonrpc": "2.0"28})2930답변 = https.요청(요청)31응답을 넣습니다.read_body32
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm'))3abi = '[{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}]'4myContract = w3.eth.contract(address="0x6B175474E89094C44Da98b954EedeAC495271d0F", abi=abi)5response = myContract.functions.balanceOf("0x6E0d01A76C3Cf4288372a29124A26D4353EE51BE").call()6인쇄(응답)
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm'))3abi = '[{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}]'4myContract = w3.eth.contract(address="0x6B175474E89094C44Da98b954EedeAC495271d0F", abi=abi)5response = myContract.functions.balanceOf("0x6E0d01A76C3Cf4288372a29124A26D4353EE51BE").call()6인쇄(응답)