Browse Source

Documentation updates

qdn-on-chain-data
CalDescent 2 years ago
parent
commit
5a052a4f67
  1. 18
      Q-Apps.md

18
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,6 +79,22 @@ 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({

Loading…
Cancel
Save