mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-12 02:05:50 +00:00
Documentation updates
This commit is contained in:
parent
32c2f68cb1
commit
5a052a4f67
30
Q-Apps.md
30
Q-Apps.md
@ -53,6 +53,8 @@ myfunction();
|
|||||||
## Supported methods
|
## Supported methods
|
||||||
|
|
||||||
Here is a list of currently supported methods:
|
Here is a list of currently supported methods:
|
||||||
|
- GET_ACCOUNT_ADDRESS
|
||||||
|
- GET_ACCOUNT_PUBLIC_KEY
|
||||||
- GET_ACCOUNT_DATA
|
- GET_ACCOUNT_DATA
|
||||||
- GET_ACCOUNT_NAMES
|
- GET_ACCOUNT_NAMES
|
||||||
- GET_NAME_DATA
|
- GET_NAME_DATA
|
||||||
@ -77,20 +79,36 @@ More functionality will be added in the future.
|
|||||||
|
|
||||||
Here is some example requests for each of the above:
|
Here is some example requests for each of the above:
|
||||||
|
|
||||||
|
### Get address of logged in account
|
||||||
|
_Will likely require user approval_
|
||||||
|
```
|
||||||
|
let address = await qortalRequest({
|
||||||
|
action: "GET_ACCOUNT_ADDRESS"
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### Get public key of logged in account
|
||||||
|
_Will likely require user approval_
|
||||||
|
```
|
||||||
|
let pubkey = await qortalRequest({
|
||||||
|
action: "GET_ACCOUNT_PUBLIC_KEY"
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
### Get account data
|
### Get account data
|
||||||
```
|
```
|
||||||
let res = await qortalRequest({
|
let res = await qortalRequest({
|
||||||
action: "GET_ACCOUNT_DATA",
|
action: "GET_ACCOUNT_DATA",
|
||||||
address: "QZLJV7wbaFyxaoZQsjm6rb9MWMiDzWsqM2"
|
address: "QZLJV7wbaFyxaoZQsjm6rb9MWMiDzWsqM2"
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### Get names owned by account
|
### Get names owned by account
|
||||||
```
|
```
|
||||||
let res = await qortalRequest({
|
let res = await qortalRequest({
|
||||||
action: "GET_ACCOUNT_NAMES",
|
action: "GET_ACCOUNT_NAMES",
|
||||||
address: "QZLJV7wbaFyxaoZQsjm6rb9MWMiDzWsqM2"
|
address: "QZLJV7wbaFyxaoZQsjm6rb9MWMiDzWsqM2"
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### Get name data
|
### Get name data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user