qan_getTransactionReceipt

get

https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/

API details

Returns the receipt of a transaction by transaction hash.

Parameters for "qan_getTransactionReceipt"

Path parameters
HashstringRequired

The hash of a transaction

Examples:0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd0X4E3A3754410177E6937EF1F84BBA68EA139E8D1A2258C5F85DB9F1CD715A1BDD

HTTP response status codes for "qan_getTransactionReceipt"

Status Code Description
200 OK
400 Bad Request
404 Not Found
422 Unprocessable Entity
500 Internal Server Error

Code samples for "qan_getTransactionReceipt"

Request examples

get

https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/

cURLJavaScriptGoPythonJava
curl --request GET \
  --url https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/ \
  --header 'Accept: application/json, application/problem+json'
const options = {method: 'GET', headers: {Accept: 'application/json, application/problem+json'}};

fetch('https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
package main

import (
  "fmt"
  "net/http"
  "io"
)

func main() {

  url := "https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/"

  req, _ := http.NewRequest("GET", url, nil)

  req.Header.Add("Accept", "application/json, application/problem+json")

  res, _ := http.DefaultClient.Do(req)

  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)

  fmt.Println(string(body))

}
import requests

url = "https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/"

headers = {"Accept": "application/json, application/problem+json"}

response = requests.get(url, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.get("https://rpc-testnet.qanplatform.com/getTransactionReceipt/{Hash}/")
  .header("Accept", "application/json, application/problem+json")
  .asString();

Responses

200400404422500

Description: OK

Content type: application/json

Example

{
  "$schema": "https://rpc-testnet.qanplatform.com/schemas/Output_getTransactionReceipt.json",
  "TransactionReceipt": {}
}

Body

$schemastring<uri>

A URL to the JSON Schema for this object.

Example:https://rpc-testnet.qanplatform.com/schemas/Output_getTransactionReceipt.json

TransactionReceiptobjectRequired

A transaction receipt object, or null when the transaction is not available

BlockHashstring

The hash of the block. null when pending

BlockNumberstring

undefined

ContractAddressstring

The contract address created if the transaction was a contract creation, otherwise null

CumulativeGasUsedstring

The total amount of gas used when this transaction was executed in the block

EffectiveGasPricestring

The actual value per gas deducted from the sender account

Fromstring

The address of the sender

GasUsedstring

The amount of gas used by this specific transaction alone

Logsarray[object]

An array of log objects that generated this transaction

AddressstringRequired

An address from which this log originated

BlockHashstring,nullRequired

The hash of the block where this log was in. null when its a pending log

BlockNumberstring,nullRequired

The block number where this log was in. null when its a pending log

DatastringRequired

It contains one or more 32 Bytes non-indexed arguments of the log

LogIndexstring,nullRequired

The integer of the log index position in the block. null when its a pending log

RemovedbooleanRequired

It is true when the log was removed due to a chain reorganization, and false if it's a valid log

Topicsarray[string]Required

An array of zero to four 32 Bytes DATA of indexed log arguments. In Solidity, the first topic is the hash of the signature of the event (e.g. Deposit(address, bytes32, uint256)), except you declare the event with the anonymous specifier

TransactionHashstring,nullRequired

The hash of the transactions this log was created from. null when its a pending log

TransactionIndexstring,nullRequired

The integer of the transaction's index position that the log was created from. null when it's a pending log

LogsBloomstring

The bloom filter for light clients to quickly retrieve related logs

Statusstring

It is either 1 (success) or 0 (failure) encoded as a decimal

Tostring

The address of the receiver. null when it's a contract creation transaction

TransactionHashstring

The hash of the transaction

TransactionIndexstring

An index of the transaction in the block

Typestring

The value type

Description: Bad Request

Content type: application/problem+json

Example

{
  "$schema": "https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json",
  "detail": "Property foo is required but is missing.",
  "errors": [],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}

Body

$schemastring<uri>

A URL to the JSON Schema for this object.

Example:https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json

detailstring

A human-readable explanation specific to this occurrence of the problem.

Example:Property foo is required but is missing.

errorsarray[object]

Optional list of individual error details

locationstring

Where the error occurred, e.g. 'body.items3.tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

Example:https://example.com/error-log/abc123

statusinteger<int64>

HTTP status code

Example:400

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

Example:Bad Request

typestring<uri>

A URI reference to human-readable documentation for the error.

Default:about:blank

Example:https://example.com/errors/example

Description: Not Found

Content type: application/problem+json

Example

{
  "$schema": "https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json",
  "detail": "Property foo is required but is missing.",
  "errors": [],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}

Body

$schemastring<uri>

A URL to the JSON Schema for this object.

Example:https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json

detailstring

A human-readable explanation specific to this occurrence of the problem.

Example:Property foo is required but is missing.

errorsarray[object]

Optional list of individual error details

locationstring

Where the error occurred, e.g. 'body.items3.tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

Example:https://example.com/error-log/abc123

statusinteger<int64>

HTTP status code

Example:400

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

Example:Bad Request

typestring<uri>

A URI reference to human-readable documentation for the error.

Default:about:blank

Example:https://example.com/errors/example

Description: Unprocessable Entity

Content type: application/problem+json

Example

{
  "$schema": "https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json",
  "detail": "Property foo is required but is missing.",
  "errors": [],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}

Body

$schemastring<uri>

A URL to the JSON Schema for this object.

Example:https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json

detailstring

A human-readable explanation specific to this occurrence of the problem.

Example:Property foo is required but is missing.

errorsarray[object]

Optional list of individual error details

locationstring

Where the error occurred, e.g. 'body.items3.tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

Example:https://example.com/error-log/abc123

statusinteger<int64>

HTTP status code

Example:400

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

Example:Bad Request

typestring<uri>

A URI reference to human-readable documentation for the error.

Default:about:blank

Example:https://example.com/errors/example

Description: Internal Server Error

Content type: application/problem+json

Example

{
  "$schema": "https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json",
  "detail": "Property foo is required but is missing.",
  "errors": [],
  "instance": "https://example.com/error-log/abc123",
  "status": 400,
  "title": "Bad Request",
  "type": "https://example.com/errors/example"
}

Body

$schemastring<uri>

A URL to the JSON Schema for this object.

Example:https://rpc-testnet.qanplatform.com/schemas/ErrorModel.json

detailstring

A human-readable explanation specific to this occurrence of the problem.

Example:Property foo is required but is missing.

errorsarray[object]

Optional list of individual error details

locationstring

Where the error occurred, e.g. 'body.items3.tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

Example:https://example.com/error-log/abc123

statusinteger<int64>

HTTP status code

Example:400

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

Example:Bad Request

typestring<uri>

A URI reference to human-readable documentation for the error.

Default:about:blank

Example:https://example.com/errors/example

Previous

qan_getTransactionCount

Next

qan_maxPriorityFeePerGas