erigon_getLogsByHash RPC Method
Parameters
blockHash
string
REQUIRED
Loading...
Returns
result
array
Loading...
address
string
Loading...
topics
array
Loading...
data
string
Loading...
blockNumber
string
Loading...
transactionHash
string
Loading...
transactionIndex
string
Loading...
blockHash
string
Loading...
logIndex
string
Loading...
removed
boolean
Loading...
Request
1curl -X POST "https://docs-demo.xdai.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "erigon_getLogsByHash",6"params": [7"0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"8],9"id": 110}'
1curl -X POST "https://docs-demo.xdai.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "erigon_getLogsByHash",6"params": [7"0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"8],9"id": 110}'
1const body = {2jsonrpc: '2.0',3method: 'erigon_getLogsByHash',4params: ["0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"],5id: 16}78async function main() {9const response = await fetch('https://docs-demo.xdai.quiknode.pro/', {10method: 'POST',11headers: {'Content-Type': 'application/json'},12body: JSON.stringify(body)13})14const data = await response.json()15console.log(data)16}1718main()
1const body = {2jsonrpc: '2.0',3method: 'erigon_getLogsByHash',4params: ["0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"],5id: 16}78async function main() {9const response = await fetch('https://docs-demo.xdai.quiknode.pro/', {10method: 'POST',11headers: {'Content-Type': 'application/json'},12body: JSON.stringify(body)13})14const data = await response.json()15console.log(data)16}1718main()
1import requests2import json34url = "https://docs-demo.xdai.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "erigon_getLogsByHash",9"params": [10"0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"11],12"id": 113})14headers = {15'Content-Type': 'application/json'16}1718response = requests.request("POST", url, headers=headers, data=payload)1920print(response.text)
1import requests2import json34url = "https://docs-demo.xdai.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "erigon_getLogsByHash",9"params": [10"0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"11],12"id": 113})14headers = {15'Content-Type': 'application/json'16}1718response = requests.request("POST", url, headers=headers, data=payload)1920print(response.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.xdai.quiknode.pro/")67payload = {8jsonrpc: "2.0",9id: 1,10method: "erigon_getLogsByHash",11params: ["0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"]12}1314request = Net::HTTP::Post.new(uri)15request["Content-Type"] = "application/json"16request.body = JSON.generate(payload)1718response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.request(request)20end2122puts response.body
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.xdai.quiknode.pro/")67payload = {8jsonrpc: "2.0",9id: 1,10method: "erigon_getLogsByHash",11params: ["0xfcb8522910545b55a6e5984d54e00ea35f6e7eee4800cffeacda3b74afad4d33"]12}1314request = Net::HTTP::Post.new(uri)15request["Content-Type"] = "application/json"16request.body = JSON.generate(payload)1718response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.request(request)20end2122puts response.body
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free