eth_getTransactionReceipt RPC Method
Please note that transaction receipts are not available for pending transactions.
Parameters
hash
string
REQUIRED
Loading...
Returns
object
object
Loading...
blockHash
string
Loading...
blockNumber
string
Loading...
contractAddress
string
Loading...
cumulativeGasUsed
string
Loading...
effectiveGasPrice
string
Loading...
from
string
Loading...
gasUsed
string
Loading...
logs
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...
logsBloom
string
Loading...
status
string
Loading...
to
string
Loading...
transactionHash
string
Loading...
transactionIndex
string
Loading...
type
string
Loading...
Request
1curl https://docs-demo.ault-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getTransactionReceipt","params":["0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.ault-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getTransactionReceipt","params":["0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"],"id":1,"jsonrpc":"2.0"}'
1require 'eth'23client = Eth::Client.create 'https://docs-demo.ault-mainnet.quiknode.pro/'4payload = {5"jsonrpc": "2.0",6"method": "eth_getTransactionReceipt",7"params": ["0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"],8"id": "1"9}1011response = client.send(payload.to_json)12puts response
1require 'eth'23client = Eth::Client.create 'https://docs-demo.ault-mainnet.quiknode.pro/'4payload = {5"jsonrpc": "2.0",6"method": "eth_getTransactionReceipt",7"params": ["0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"],8"id": "1"9}1011response = client.send(payload.to_json)12puts response
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.ault-mainnet.quiknode.pro/");4const txReceipt = await provider.waitForTransaction(5"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"6);7console.log(txReceipt);8})();
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.ault-mainnet.quiknode.pro/");4const txReceipt = await provider.waitForTransaction(5"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"6);7console.log(txReceipt);8})();
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_getTransactionReceipt",6"params": [7"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"8],9"id": 1,10"jsonrpc": "2.0"11});1213var requestOptions = {14method: 'POST',15headers: myHeaders,16body: raw,17redirect: 'follow'18};1920fetch("https://docs-demo.ault-mainnet.quiknode.pro/", requestOptions)21.then(response => response.text())22.then(result => console.log(result))23.catch(error => console.log('error', error));24
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_getTransactionReceipt",6"params": [7"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"8],9"id": 1,10"jsonrpc": "2.0"11});1213var requestOptions = {14method: 'POST',15headers: myHeaders,16body: raw,17redirect: 'follow'18};1920fetch("https://docs-demo.ault-mainnet.quiknode.pro/", requestOptions)21.then(response => response.text())22.then(result => console.log(result))23.catch(error => console.log('error', error));24
1import requests2import json34url = "https://docs-demo.ault-mainnet.quiknode.pro/"56payload = json.dumps({7"method": "eth_getTransactionReceipt",8"params": [9"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"10],11"id": 1,12"jsonrpc": "2.0"13})14headers = {15'Content-Type': 'application/json'16}1718response = requests.request("POST", url, headers=headers, data=payload)1920print(response.text)21
1import requests2import json34url = "https://docs-demo.ault-mainnet.quiknode.pro/"56payload = json.dumps({7"method": "eth_getTransactionReceipt",8"params": [9"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"10],11"id": 1,12"jsonrpc": "2.0"13})14headers = {15'Content-Type': 'application/json'16}1718response = requests.request("POST", url, headers=headers, data=payload)1920print(response.text)21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ault-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "eth_getTransactionReceipt",14"params": [15"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"16],17"id": 1,18"jsonrpc": "2.0"19})2021response = https.request(request)22puts response.read_body23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ault-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "eth_getTransactionReceipt",14"params": [15"0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5"16],17"id": 1,18"jsonrpc": "2.0"19})2021response = https.request(request)22puts response.read_body23
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.ault-mainnet.quiknode.pro/'))3print(w3.eth.get_transaction_receipt('0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5'))4
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.ault-mainnet.quiknode.pro/'))3print(w3.eth.get_transaction_receipt('0xd54c82eee74293d579f16073c5f63f3336be71cacdb0c10281db073b20c7b4e5'))4
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free