You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`feeE8` (optional) | unsigned 64 bit integer | Amount of `WART` to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 `WART` this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
12
-
`fee` (optional) | string | Amount of `WART` to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
15
+
`feeStr` (optional) | string | Amount of `WART` to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
13
16
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values.
14
17
`pinHeight` | unsigned 32 bit integer | Signature includes block hash at this height
15
18
`signature65`| string of length 130 | hex-encoded 65 byte compact recoverable ECDSA signature in custom format, see below.
16
19
`toAddr` | string of length 48| The address that `WART` shall be transferred to.
17
-
`wartE8` (optional) | unsigned 64 bit integer | Amount of `WART` to send multiplied by 10^8. For example to send one coin this value must be 100000000.
18
-
`wartStr` (optional) | string | Amount of `WART` to send. Format must be string, non-scientific notation with at most 8 digits after comma. "`1`" or "`1.00000000`" are valid.
20
+
`wartE8` (optional) | unsigned 64 bit integer | Nonzero amount of `WART` to send multiplied by 10^8. For example to send one coin this value must be 100000000.
21
+
`wartStr` (optional) | string | Nonzero amount of `WART` to send. Format must be string, non-scientific notation with at most 8 digits after comma. "`1`" or "`1.00000000`" are valid.
19
22
20
23
**NOTE**:
21
24
22
-
- The `WART` amount must be specified either via `wart` or via `wartE8`.
23
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
25
+
- The `WART` amount must be specified either via `wartE8` or via `wartStr`.
26
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
24
27
- Miner fee must be exactly representable in a 16 bit encoding.
25
28
26
29
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
@@ -43,20 +46,19 @@ BYTES | DESCRIPTION
43
46
`amountU64` | unsigned 64 bit integer | Number of smallest representable units of the token to be sent. See the warning below.
44
47
`assetHash` | string of length 64 | The asset hash specifies the asset for this transfer.
45
48
`feeE8` (optional) | unsigned 64 bit integer | Amount of `WART` to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 `WART` this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
46
-
`fee` (optional) | string | Amount of `WART` to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
49
+
`feeStr` (optional) | string | Amount of `WART` to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
47
50
`isLiquidity` | boolean | Specify whether you want to send the asset itself (`false`) or its pool liquidity (`true`).
48
51
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values.
49
52
`pinHeight` | unsigned 32 bit integer | Signature includes block hash at this height
50
53
`signature65`| string of length 130 | hex-encoded 65 byte compact recoverable ECDSA signature in custom format, see below.
51
54
`toAddr` | string of length 48| The address that tokens shall be transferred to.
52
55
53
56
!!!warning Warning
54
-
The `amountU64` parameter specifies the number of smallest units of the specified token type. The actual conversion to token units depends on the token type's precision `p` (one token unit corresponds to `10^p` smallest representable units). Note that every asset has **its own precision** fixed during asset creation whereas any asset pool's liquidity **always has precision 8** (like the WART token type).
57
+
The `amountU64` parameter specifies the number of smallest units of the specified token type. The actual conversion to token units depends on the token type's precision `p` (one token unit corresponds to `10^p` smallest representable units). Note that every asset has **its own precision** fixed during asset creation whereas any asset pool's liquidity **always has precision 8** (like the WART token itself).
55
58
!!!
56
59
**NOTE**:
57
60
58
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
59
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
61
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
60
62
- Miner fee must be exactly representable in a 16 bit encoding.
61
63
62
64
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
@@ -82,7 +84,7 @@ Create a new buy or sell limit swap order for a specific asset.
82
84
`amountU64` | unsigned 64 bit integer | Number of smallest representable units of the token to be spent on the swap.
83
85
`assetHash` | string of length 64 | The asset hash specifies the asset for this transfer.
84
86
`feeE8` (optional) | unsigned 64 bit integer | Amount of coins to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 coins this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
85
-
`fee` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
87
+
`feeStr` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
86
88
`isBuy` | boolean | Specify whether this order is a buy (`true`) or a sell (`false`) order.
87
89
`limit` | string of length 6| Hexadecimal of of 3 byte encoded limit price. Use the `/tools/parse_price` endpoint to request this encoding.
88
90
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values
@@ -94,7 +96,7 @@ The `amountU64` parameter specifies the number of smallest units of the token th
94
96
!!!
95
97
**NOTE**:
96
98
97
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
99
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
98
100
- Miner fee must be exactly representable in a 16 bit encoding.
99
101
100
102
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
@@ -121,7 +123,7 @@ Deposit liquidity into an asset's `WART` pool.
121
123
`amountU64` | unsigned 64 bit integer | Number of smallest representable units of the asset to spend into the pool. See the warning below.
122
124
`assetHash` | string of length 64 | The asset hash specifies the asset for this transfer.
123
125
`feeE8` (optional) | unsigned 64 bit integer | Amount of coins to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 coins this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
124
-
`fee` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
126
+
`feeStr` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
125
127
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values
126
128
`pinHeight` | unsigned 32 bit integer | Signature includes block hash at this height
127
129
`signature65`| string of length 130 | hex-encoded 65 byte compact recoverable ECDSA signature in custom format, see below.
@@ -133,8 +135,8 @@ The `amountU64` parameter specifies the number of smallest units of the specifie
133
135
!!!
134
136
**NOTE**:
135
137
136
-
- The `WART` amount must be specified either via `wart` or via `wartE8`.
137
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
138
+
- The `WART` amount must be specified either via `wartE8` or via `wartStr`.
139
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
138
140
- Miner fee must be exactly representable in a 16 bit encoding.
139
141
140
142
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
@@ -155,11 +157,11 @@ Withdraw liquidity from an asset's `WART` pool by redeeming liquidity tokens.
155
157
156
158
PARAMETER | TYPE | DETAILS
157
159
----------|------|--------
158
-
`type`| string | Set to `liquidityDeposit`.
160
+
`type`| string | Set to `liquidityWithdrawal`.
159
161
`amountE8` | unsigned 64 bit integer | Number of smallest representable units of the liquidity tokens to spend into the pool. Since liquidity tokens always have precision 8, this is the number of liquidity tokens multiplied by `10^8`.
160
162
`assetHash` | string of length 64 | The asset hash specifies the asset for this transfer.
161
163
`feeE8` (optional) | unsigned 64 bit integer | Amount of coins to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 coins this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
162
-
`fee` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
164
+
`feeStr` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
163
165
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values
164
166
`pinHeight` | unsigned 32 bit integer | Signature includes block hash at this height
165
167
`signature65`| string of length 130 | hex-encoded 65 byte compact recoverable ECDSA signature in custom format, see below.
@@ -169,7 +171,7 @@ The `amountU64` parameter specifies the number of smallest units of the specifie
169
171
!!!
170
172
**NOTE**:
171
173
172
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
174
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
173
175
- Miner fee must be exactly representable in a 16 bit encoding.
174
176
175
177
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
@@ -189,18 +191,18 @@ Cancel a pending transaction or an existing order.
189
191
190
192
PARAMETER | TYPE | DETAILS
191
193
----------|------|--------
192
-
`type`| string | Set to `liquidityDeposit`.
194
+
`type`| string | Set to `cancelation`.
193
195
`cancelHeight` | unsigned 32 bit integer | The canceled transaction's `pinHeight`.
194
196
`cancelNonceId` | unsinged 32 bit integer | The canceled transaction's `nonceId`.
195
197
`feeE8` (optional) | unsigned 64 bit integer | Amount of coins to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 coins this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
196
-
`fee` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
198
+
`feeStr` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
197
199
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values
198
200
`pinHeight` | unsigned 32 bit integer | Signature includes block hash at this height
199
201
`signature65`| string of length 130 | hex-encoded 65 byte compact recoverable ECDSA signature in custom format, see below.
200
202
201
203
**NOTE**:
202
204
203
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
205
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
204
206
- Miner fee must be exactly representable in a 16 bit encoding.
205
207
206
208
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
@@ -222,7 +224,7 @@ Create a new asset.
222
224
----------|------|--------
223
225
`type`| string | Set to `assetCreation`.
224
226
`feeE8` (optional) | unsigned 64 bit integer | Amount of coins to spend on transaction fees multiplied by 10^8. For example to send one 0.00000001 coins this value must be 1. This value must be exactly representable value in a 16 bit encoding, see below.
225
-
`fee` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
227
+
`feeStr` (optional) | string | Amount of coins to spend on transaction fees. This value must be exactly representable value in a 16 bit encoding, see below.
226
228
`name` | string of length 1 to 5 | The name of asset to be created.
227
229
`nonceId` | unsigned 32 bit integer | To avoid double spend, there can only be one transaction with a specific (pinHeight,nonceId) pair. The same nonceId can be used for different pinHeight values
228
230
`pinHeight` | unsigned 32 bit integer | Signature includes block hash at this height
@@ -232,7 +234,7 @@ Create a new asset.
232
234
233
235
**NOTE**:
234
236
235
-
- The transaction fee must be specified either via `fee` or via `feeE8`.
237
+
- The transaction fee must be specified either via `feeE8` or via `feeStr`.
236
238
- Miner fee must be exactly representable in a 16 bit encoding.
237
239
238
240
The transaction hash needed for signature generation is the SHA256 hash of the following bytes:
0 commit comments