-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #357 from KomodoPlatform/kdf/add/get_wallet_names
- Loading branch information
Showing
4 changed files
with
76 additions
and
0 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
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
62 changes: 62 additions & 0 deletions
62
src/pages/komodo-defi-framework/api/v20/get_wallet_names/index.mdx
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,62 @@ | ||
export const title = "Komodo DeFi Framework Method: Get Wallet Names"; | ||
export const description = "The get_wallet_names method returns a list of wallet names for a user's device."; | ||
|
||
# get\_wallet\_names | ||
|
||
The `get_wallet_names` method returns returns a list of wallet names for a user's device. If the user is logged in, it will also return the name of the active wallet. | ||
|
||
## Arguments | ||
|
||
| Structure | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| (none) | | | | ||
|
||
#### Response | ||
|
||
| Structure | Type | Description | | ||
| ----------------- | ------ | ---------------------------------------------------------------------------- | | ||
| wallet\_names | list | Names of wallets stored on a user's device. | | ||
| activated\_wallet | string | Names of the currrently active wallet. If not yet logged in, returns `null`. | | ||
|
||
#### 📌 Examples | ||
|
||
#### Command | ||
|
||
<CodeGroup title="" tag="POST" label="get_wallet_names" mm2MethodDecorate="true"> | ||
```json | ||
{ | ||
"userpass": "RPC_UserP@SSW0RD", | ||
"mmrpc": "2.0", | ||
"method": "get_wallet_names", | ||
"id": 0 | ||
} | ||
``` | ||
</CodeGroup> | ||
|
||
<CollapsibleSection expandedText="Hide Response" collapsedText="Show Response"> | ||
#### Response (in no-login mode) | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"result": { | ||
"wallet_names": ["Robert Paulson", "Spartacus", "John Galt", "Kaiser Soze"], | ||
"activated_wallet": null | ||
}, | ||
"id": 0 | ||
} | ||
``` | ||
|
||
#### Response (while logged in) | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"result": { | ||
"wallet_names": ["Robert Paulson", "Spartacus", "John Galt", "Kaiser Soze"], | ||
"activated_wallet": "Robert Paulson" | ||
}, | ||
"id": 0 | ||
} | ||
``` | ||
</CollapsibleSection> |