Receipt

Retrieve transaction receipt

This endpoint allows you to retrieve the receipt of a transaction identified by its ID. If the transaction is not found, the response will be null.

GEThttps://vet.nownodes.io/transactions/{id}/receipt
Path parameters
id*string

The transaction ID

Example: "0xb6b5b47a5eee8b14e5222ac1bb957c0bbdc3d489850b033e3e544d9ca0cef934"
Query parameters
Response

OK

Body
gasUsedinteger (uint64)

The amount of gas used by the transaction.

Example: 21000
gasPayerstring

The address of the account that paid the gas fee.

Example: "0xdb4027477b2a8fe4c83c6dafe7f86678bb1b8a8d"
Pattern: ^0x[0-9a-f]{40}$
paidstring

The amount of energy (VTHO) in wei, used to pay for the gas.

Example: "0x1236efcbcbb340000"
Pattern: ^0x[0-9a-f]*$
rewardstring

The amount of energy (VTHO) in wei, paid to the block signer as a reward.

Example: "0x576e189f04f60000"
Pattern: ^0x[0-9a-f]*$
revertedboolean

Indicates whether the transaction was reverted (true means reverted).

Example: false
outputsarray of object

An array of outputs produced by the transaction.

metaReceiptMeta

The transaction receipt metadata such as block number, block timestamp, etc.

Request
const response = await fetch('https://vet.nownodes.io/transactions/{id}/receipt', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "gasUsed": 21000,
  "gasPayer": "0xdb4027477b2a8fe4c83c6dafe7f86678bb1b8a8d",
  "paid": "0x1236efcbcbb340000",
  "reward": "0x576e189f04f60000",
  "reverted": false,
  "outputs": [
    {
      "contractAddress": "0x0000000000000000000000000000456e65726779",
      "events": [
        {
          "address": "0x0000000000000000000000000000456e65726779",
          "topics": [
            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
            "0x000000000000000000000000435933c8064b4ae76be665428e0307ef2ccfbd68"
          ],
          "data": "0x4de71f2d588aa8a1ea00fe8312d92966da424d9939a511fc0be81e65fad52af8"
        }
      ],
      "transfers": [
        {
          "sender": "0x5034aa590125b64023a0262112b98d72e3c8e40e",
          "recipient": "0x6d95e6dca01d109882fe1726a2fb9865fa41e7aa",
          "amount": "0x47fdb3c3f456c0000"
        }
      ]
    }
  ],
  "meta": {
    "blockID": "0x0004f6cc88bb4626a92907718e82f255b8fa511453a78e8797eb8cea3393b215",
    "blockNumber": 325324,
    "blockTimestamp": 1533267900,
    "txID": "0x284bba50ef777889ff1a367ed0b38d5e5626714477c40de38d71cedd6f9fa477",
    "txOrigin": "0xdb4027477b2a8fe4c83c6dafe7f86678bb1b8a8d"
  }
}