> For a complete page index, fetch https://docs.conduit.xyz/llms.txt # eth_getTransactionByHash POST https://rpc.plume.org/YOUR_API_KEY Content-Type: application/json Returns the transaction object for the given transaction hash. Returns `null` if the transaction is unknown. For pending transactions (in the mempool but not yet mined), `blockHash`, `blockNumber`, and `transactionIndex` are `null`. ⚡ Compute Units: [15 CU](https://docs.conduit.xyz/rpc-nodes/information/compute-units) Reference: https://docs.conduit.xyz/rpc-nodes/json-rpc-reference/eth-get-transaction-by-hash ## Request ### Body (application/json) This endpoint expects an object. - `transactionHash` (string, required) — 32-byte hash of a transaction ## Response ### 200 Transaction object, or null if the transaction doesn't exist - `hash` (string, required) — 32-byte hash of the transaction - `from` (string, required) — 20-byte address of the sender - `to` (string, required, nullable) — 20-byte address of the receiver, or null for contract-creation transactions. - `value` (string, required) — Value transferred in wei - `gasPrice` (string, required) — Gas price provided by the sender in wei - `gas` (string, required) — Gas provided by the sender - `input` (string, required) — Data sent along with the transaction - `nonce` (string, optional) — Number of transactions made by the sender prior to this one - `blockHash` (string, optional, nullable) — 32-byte hash of the block where this transaction was included. Null for pending transactions (mempool, not yet mined). - `blockNumber` (string, optional, nullable) — Block number where this transaction was included. Null for pending transactions. - `transactionIndex` (string, optional, nullable) — Integer of the transaction's index position in the block. Null for pending transactions. - `type` (string, optional) — Transaction type as hex-encoded byte. Standard EIP values: 0x0 legacy, 0x1 EIP-2930 access list, 0x2 EIP-1559, 0x3 EIP-4844 blob, 0x4 EIP-7702 authorization. Some rollup stacks define additional types (e.g. 0x7E OP-Stack deposit transactions); these values are stack-specific. - `chainId` (string, optional) — Chain ID the transaction was signed for - `accessList` (list of TransactionAccessListItems, optional) — EIP-2930 access list (present on type 0x1 and 0x2+) - `maxFeePerGas` (string, optional) — EIP-1559 max total fee per gas (present on type 0x2+) - `maxPriorityFeePerGas` (string, optional) — EIP-1559 max miner tip per gas (present on type 0x2+) - `maxFeePerBlobGas` (string, optional) — EIP-4844 max fee per blob gas (present on type 0x3) - `blobVersionedHashes` (list of string, optional) — EIP-4844 versioned hashes of blob commitments (present on type 0x3) - `yParity` (string, optional) — Signature y-parity (present on type 0x1+ instead of v) - `v` (string, optional) — Signature recovery byte (legacy and EIP-155 transactions) - `r` (string, optional) — Signature r component - `s` (string, optional) — Signature s component ## Types ### TransactionAccessListItems - `address` (string, required) - `storageKeys` (list of string, required) ## Examples **Request** ```json [ "0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c" ] ``` **Response** ```json { "id": "1", "jsonrpc": "2.0", "result": { "accessList": [], "blockHash": "0x7b99b97aa538547a6e4e38f011f250da6d05675461e92d25819f08c756872f83", "blockNumber": "0x28401d2", "chainId": "0x18232", "from": "0xee03f376ad26948d24c2e3ae76c8d95c77930763", "gas": "0x22362", "gasPrice": "0xe8d4a51000", "hash": "0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c", "input": "0x20b76e81000000000000000000000000dddd73f5df1f0dc31373357beac77545dc5a6f3f000000000000000000000000593ccca4c4bf58b7526a4c164ceef4003c6388db0000000000000000000000007824e4b3e21678f143ce22308adfd48d1d3160fb0000000000000000000000007420302ddd469031cd2282cd64225ccd46f581ea0000000000000000000000000000000000000000000000000cb2bba6f17b800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a37805cda000000000000000000000000ee03f376ad26948d24c2e3ae76c8d95c7793076300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000117e", "maxFeePerGas": "0x13a52453c00", "maxPriorityFeePerGas": "0x0", "nonce": "0xdbd", "r": "0xf18fbf44e14f54e164b3d41a3bddb286fda45ff67884e7bb4b0992362a44937f", "s": "0x4f685fcd1a2238f82be66f94dc43eb7ec117974afe3282feefc55c64cd36ff0b", "to": "0x42b18785ce0aed7bf7ca43a39471ed4c0a3e0bb5", "transactionIndex": "0x1", "type": "0x2", "v": "0x0", "value": "0x0", "yParity": "0x0" } } ``` **SDK Code** ```python import requests url = "https://rpc.plume.org/YOUR_API_KEY" payload = ["0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c"] headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://rpc.plume.org/YOUR_API_KEY'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '["0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c"]' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://rpc.plume.org/YOUR_API_KEY" payload := strings.NewReader("[\n \"0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c\"\n]") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://rpc.plume.org/YOUR_API_KEY") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "[\n \"0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c\"\n]" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://rpc.plume.org/YOUR_API_KEY") .header("Content-Type", "application/json") .body("[\n \"0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c\"\n]") .asString(); ``` ```php request('POST', 'https://rpc.plume.org/YOUR_API_KEY', [ 'body' => '[ "0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c" ]', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://rpc.plume.org/YOUR_API_KEY"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "[\n \"0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c\"\n]", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Content-Type": "application/json"] let parameters = ["0x85681434491f687150b2ff934554f149b284839eafc579b6abffb54f7df3b42c"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://rpc.plume.org/YOUR_API_KEY")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```