-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase_types.json
More file actions
90 lines (90 loc) · 2.87 KB
/
base_types.json
File metadata and controls
90 lines (90 loc) · 2.87 KB
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
{
"uint64": {
"title": "Unsigned integer 64 bit",
"type": "number",
"minimum": 0,
"maximum": 18446744073709551615
},
"uint32": {
"title": "Unsigned integer 32 bit",
"type": "number",
"minimum": 0,
"maximum": 4294967295
},
"uint256": {
"title": "Unsigned integer 256 bit",
"type": "string",
"pattern": "^([1-9][0-9]{0,77}|0)$"
},
"atto_tolar": {
"title": "Atto Tolar",
"description": "Smallest available amount of tolar. 1 attoTolar = 0.000000000000000001 Tol",
"$ref": "#/components/schemas/uint256"
},
"nonce": {
"title": "Nonce",
"description": "Unique transaction index for particular sender (auto-incremented value, each transaction has unique nonce).",
"$ref": "#/components/schemas/uint256"
},
"hash": {
"title": "Hash",
"type": "string",
"pattern": "^[0-9,a-f,A-F]{64}$"
},
"bytes": {
"title": "Hex encoded bytes",
"type": "string",
"pattern": "^[0-9,a-f,A-F]*$"
},
"address": {
"title": "Hex encoded address",
"type": "string",
"description": "Hex encoded address 50 digits long. Must start with 54 (ASCII for letter T).",
"pattern": "^54[0-9,a-f,A-F]{48}$"
},
"network_id": {
"title": "Network id",
"description": "Unique network identifier on which transaction is valid on. (i.e. mainnet = 1, testnet = 3, staging = 4 ...).",
"$ref": "#/components/schemas/uint64"
},
"block_index": {
"title": "Block index",
"description": "Unique sequential auto incremented block id.",
"$ref": "#/components/schemas/uint64"
},
"transaction_index": {
"title": "Transaction index",
"description": "Index of transaction inside a block.",
"$ref": "#/components/schemas/uint64"
},
"timestamp": {
"title": "Timestamp",
"description": "Milliseconds since Unix Epoch.",
"$ref": "#/components/schemas/uint64"
},
"confirmation_timestamp": {
"title": "Confirmation timestamp",
"description": "The time when the block was confirmed.",
"$ref": "#/components/schemas/timestamp"
},
"gas": {
"title": "Gas",
"description": "Maximum gas (gas limit) to spend to send this transaction (gas used for transaction sending or computational work in case of smart contracts).",
"$ref": "#/components/schemas/atto_tolar"
},
"gas_price": {
"title": "Gas price",
"description": "Amount of gas to pay for each unit of gas, greater gas price is related to faster time to execute the transaction (transaction fee = gas * gas price).",
"$ref": "#/components/schemas/atto_tolar"
},
"sender_address": {
"title": "Sender address",
"description": "The address that initiated this transaction.",
"$ref": "#/components/schemas/address"
},
"receiver_address": {
"title": "Receiver address",
"description": "The address that received this transaction.",
"$ref": "#/components/schemas/address"
}
}