-
Notifications
You must be signed in to change notification settings - Fork 384
/
receipt.yaml
104 lines (104 loc) · 3.11 KB
/
receipt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Log:
title: log
type: object
required:
- transactionHash
properties:
removed:
title: removed
type: boolean
logIndex:
title: log index
$ref: '#/components/schemas/uint'
transactionIndex:
title: transaction index
$ref: '#/components/schemas/uint'
transactionHash:
title: transaction hash
$ref: '#/components/schemas/hash32'
blockHash:
title: block hash
$ref: '#/components/schemas/hash32'
blockNumber:
title: block number
$ref: '#/components/schemas/uint'
address:
title: address
$ref: '#/components/schemas/address'
data:
title: data
$ref: '#/components/schemas/bytes'
topics:
title: topics
type: array
items:
$ref: '#/components/schemas/bytes32'
ReceiptInfo:
type: object
title: Receipt info
required:
- blockHash
- blockNumber
- from
- cumulativeGasUsed
- gasUsed
- logs
- logsBloom
- transactionHash
- transactionIndex
- effectiveGasPrice
properties:
transactionHash:
title: transaction hash
$ref: '#/components/schemas/hash32'
transactionIndex:
title: transaction index
$ref: '#/components/schemas/uint'
blockHash:
title: block hash
$ref: '#/components/schemas/hash32'
blockNumber:
title: block number
$ref: '#/components/schemas/uint'
from:
title: from
$ref: '#/components/schemas/address'
to:
title: to
description: Address of the receiver or null in a contract creation transaction.
$ref: '#/components/schemas/address'
cumulativeGasUsed:
title: cumulative gas used
description: The sum of gas used by this transaction and all preceding transactions in the same block.
$ref: '#/components/schemas/uint'
gasUsed:
title: gas used
description: The amount of gas used for this specific transaction alone.
$ref: '#/components/schemas/uint'
contractAddress:
title: contract address
description: The contract address created, if the transaction was a contract creation, otherwise null.
oneOf:
- $ref: '#/components/schemas/address'
- name: Null
type: "null"
logs:
title: logs
type: array
items:
$ref: '#/components/schemas/Log'
logsBloom:
title: logs bloom
$ref: '#/components/schemas/bytes256'
root:
title: state root
description: The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.
$ref: '#/components/schemas/hash32'
status:
title: status
description: Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.
$ref: '#/components/schemas/uint'
effectiveGasPrice:
title: effective gas price
description: The actual value per gas deducted from the senders account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).
$ref: '#/components/schemas/uint'