-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into release/v1.8.0
- Loading branch information
Showing
6 changed files
with
342 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Import Subaddresses | ||
|
||
## Parameters | ||
|
||
| Required Param | Purpose | Requirements | | ||
| :--- | :--- | :--- | | ||
| `account_id` | The account on which to perform this action. | Account must exist in the wallet as a view only account. | | ||
| `subaddresses` | List of subaddress in json format | | | ||
|
||
### subaddress import json fields: | ||
| field | description (all strings) | | ||
| :--- | :--- | | ||
| `object` | "view_only_subaddress" | | ||
| `public_address` |A b58 encoding of the public address materials | | ||
| `account_id` | The account that owns this subaddress | | ||
| `comment` | Additional data associated with this address. | | ||
| `subaddress_index` | The index of this address in the subaddress space for the account | | ||
| `public_spend_key` | The public spend key for this addres | | ||
|
||
## Example | ||
|
||
{% tabs %} | ||
{% tab title="Request" %} | ||
``` | ||
{ | ||
"method": "import_subaddresses_to_view_only_account", | ||
"params": { | ||
"account_id": "f85920dd83f69d8850799e28240e3d395f0ad46dec2561b71f4614dd90a3edb5", | ||
"subaddresses": "[{ | ||
object: "view_only_subaddress", | ||
public_address: "USm3fpXnKG5EUBx2ndxBDMPVciP5hGey2Jh4NDv6gmeo1LkMeiKrLJUUBk6Z", | ||
account_id: "f85920dd83f69d8850799e28240e3d395f0ad46dec2561b71f4614dd90a3edb5", | ||
comment: "target address", | ||
"subaddress_index: "5", | ||
public_spend_key: "asdsfpXnKG5EUBx2ndxBDMPVciP5hGey2Jh4NDv6gmeo1LkMeiKrLJUUBk6Z" | ||
}]" | ||
}, | ||
"jsonrpc": "2.0", | ||
"id": 1 | ||
} | ||
``` | ||
{% endtab %} | ||
|
||
{% tab title="Response" %} | ||
``` | ||
{ | ||
"method": "import_subaddresses_to_view_only_account", | ||
"result": { | ||
"public_address_b58s": "["USm3fpXnKG5EUBx2ndxBDMPVciP5hGey2Jh4NDv6gmeo1LkMeiKrLJUUBk6Z"]", | ||
}, | ||
"jsonrpc": "2.0", | ||
"id": 1 | ||
} | ||
``` | ||
{% endtab %} | ||
{% endtabs %} |
6 changes: 6 additions & 0 deletions
6
docs/view-only-accounts/syncing/create_view_only_account_sync_request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Sync View Only Account | ||
|
||
## Parameters | ||
|
||
| Required Param | Purpose | Requirements | | ||
| :--- | :--- | :--- | | ||
| `account_id` | The account on which to perform this action. | Account must exist in the wallet as a view only account. | | ||
| `completed_txos` | signed txos. A array of tuples (txoID, KeyImage) | | | ||
| `subaddresses` | The subaddress to sync | | | ||
|
||
### subaddress import json fields: | ||
| field | description (all strings) | | ||
| :--- | :--- | | ||
| `object` | "view_only_subaddress" | | ||
| `public_address` |A b58 encoding of the public address materials | | ||
| `account_id` | The account that owns this subaddress | | ||
| `comment` | Additional data associated with this address. | | ||
| `subaddress_index` | The index of this address in the subaddress space for the account | | ||
| `public_spend_key` | The public spend key for this addres | | ||
|
||
## Example | ||
|
||
{% tabs %} | ||
{% tab title="Request" %} | ||
``` | ||
{ | ||
"method": "sync_view_only_account", | ||
"params": { | ||
"account_id": "f85920dd83f69d8850799e28240e3d395f0ad46dec2561b71f4614dd90a3edb5", | ||
"completed_txos": "[(asdasedeerwe..., sadjashdoauihdkahwk...)]", | ||
"subaddresses": "[{ | ||
object: "view_only_subaddress", | ||
public_address: "USm3fpXnKG5EUBx2ndxBDMPVciP5hGey2Jh4NDv6gmeo1LkMeiKrLJUUBk6Z", | ||
account_id: "f85920dd83f69d8850799e28240e3d395f0ad46dec2561b71f4614dd90a3edb5", | ||
comment: "target address", | ||
"subaddress_index: "5", | ||
public_spend_key: "asdsfpXnKG5EUBx2ndxBDMPVciP5hGey2Jh4NDv6gmeo1LkMeiKrLJUUBk6Z" | ||
}]" | ||
}, | ||
"jsonrpc": "2.0", | ||
"id": 1 | ||
} | ||
``` | ||
{% endtab %} | ||
|
||
{% tab title="Response" %} | ||
``` | ||
{ | ||
"method": "sync_view_only_account", | ||
"jsonrpc": "2.0", | ||
"id": 1 | ||
} | ||
``` | ||
{% endtab %} | ||
{% endtabs %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters