Browse Source

Merge pull request #123 from QuickMythril/2023-05-25

Added some fee info & Q-App support for foreign coins
arbitrary-resources-cache
QuickMythril 1 year ago committed by GitHub
parent
commit
5650923805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Q-Apps.md
  2. 4
      src/main/resources/q-apps/q-apps.js

5
Q-Apps.md

@ -576,14 +576,15 @@ let res = await qortalRequest({
```
### Send foreign coin to address
_Requires user approval_
_Requires user approval_<br />
Note: default fees can be found [here](https://github.com/Qortal/qortal-ui/blob/master/plugins/plugins/core/qdn/browser/browser.src.js#L205-L209).
```
let res = await qortalRequest({
action: "SEND_COIN",
coin: "LTC",
destinationAddress: "LSdTvMHRm8sScqwCi6x9wzYQae8JeZhx6y",
amount: 1.00000000, // 1 LTC
fee: 0.00000020 // fee per byte
fee: 0.00000020 // Optional fee per byte (default fee used if omitted, recommended) - not used for QORT or ARRR
});
```

4
src/main/resources/q-apps/q-apps.js

@ -467,6 +467,10 @@ function getDefaultTimeout(action) {
// Allow extra time for other actions that create transactions, even if there is no PoW
return 5 * 60 * 1000;
case "GET_WALLET_BALANCE":
// Getting a wallet balance can take a while, if there are many transactions
return 2 * 60 * 1000;
default:
break;
}

Loading…
Cancel
Save