Skip to content

Commit 6af0a3b

Browse files
committed
Add lookahead to LWS import wallet spec
1 parent 37b5fc4 commit 6af0a3b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

api/lightwallet_rest.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ list of candidate spends is returned.
238238
| blockchain_height | `uint64` | Current blockchain height |
239239
| spent_outputs | array of `spend` objects | Possible spend info |
240240
| rates * | `rates` | Current exchange rates |
241+
| lookahead_fail * | bool | Import lookahead failed |
241242

242243
> `rates` is omitted if unavailable.
243244
@@ -266,6 +267,7 @@ spends is returned.
266267
| start_height | `uint64` | Start height of response |
267268
| blockchain_height | `uint64` | Current blockchain height |
268269
| transactions | array of `transaction` objects | Possible spend info |
270+
| lookahead_fail * | bool | Import lookahead failed |
269271

270272
#### `get_random_outs`
271273
Selects random outputs to use in a ring signature of a new transaction. If the
@@ -313,6 +315,7 @@ was actually spent.
313315
| mixin | `uint32` | Minimum mixin for source output |
314316
| use_dust | `boolean` | Return all available outputs |
315317
| dust_threshold * | `uint64-string` | Ignore outputs below this amount |
318+
| lookahead_fail * | bool | Import lookahead failed |
316319

317320
> If the total received outputs for the address is less than `amount`, the
318321
> server shall return a HTTP 400 "Bad Request" error code.
@@ -326,15 +329,17 @@ was actually spent.
326329
| amount | `uint64-string` | The total value in outputs |
327330
| outputs | array of `output` objects | Outputs possibly available for spending |
328331

329-
#### `import_request`
332+
#### `import_wallet_request`
330333
Request an account scan from the genesis block.
331334

332335
**Request** object
333336

334-
| Field | Type | Description |
335-
|----------|------------------|-------------------------|
336-
| address | `base58-address` | Address to create/probe |
337-
| view_key | `binary` | View key bytes |
337+
| Field | Type | Description |
338+
|---------------|------------------|--------------------------|
339+
| address | `base58-address` | Address to create/probe |
340+
| view_key | `binary` | View key bytes |
341+
| from_height * | `uint64` | import start height |
342+
| lookahead * | `address_meta` | use subaddress lookahead |
338343

339344
**Response** object
340345

0 commit comments

Comments
 (0)