Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions api/lightwallet_rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ list of candidate spends is returned.
| blockchain_height | `uint64` | Current blockchain height |
| spent_outputs | array of `spend` objects | Possible spend info |
| rates * | `rates` | Current exchange rates |
| lookahead_fail * | `uint64` | Block lookahead failed |

> `rates` is omitted if unavailable.

Expand Down Expand Up @@ -266,6 +267,7 @@ spends is returned.
| start_height | `uint64` | Start height of response |
| blockchain_height | `uint64` | Current blockchain height |
| transactions | array of `transaction` objects | Possible spend info |
| lookahead_fail * | `uint64` | Block lookahead failed |

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

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

#### `import_request`
#### `import_wallet_request`
Request an account scan from the genesis block.

**Request** object

| Field | Type | Description |
|----------|------------------|-------------------------|
| address | `base58-address` | Address to create/probe |
| view_key | `binary` | View key bytes |
| Field | Type | Description |
|---------------|------------------|--------------------------|
| address | `base58-address` | Address to create/probe |
| view_key | `binary` | View key bytes |
| from_height * | `uint64` | import start height |
| lookahead * | `address_meta` | use subaddress lookahead |

**Response** object

Expand All @@ -343,13 +348,17 @@ Request an account scan from the genesis block.
| payment_address * | `base58-address` | Payment location |
| payment_id * | `binary` | Bytes for payment_id tx field |
| import_fee * | `uint64-string` | Fee required to complete request |
| lookahead * | `boolean` | Lookahead enabled and active |
| new_request | `boolean` | New or existing request |
| request_fulfilled | `boolean` | Indicates success |
| status | `string` | Custom message |

> `payment_id`, `import_fee`, and `payment_address` may be omitted if the
> client does not need to send XMR to complete the request.

> If `lookahead` is omitted or false, clients should assume the lookahead
> request was silently rejected.

#### `login`
Check for the existence of an account or create a new one.

Expand Down