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

Added some fee info & Q-App support for foreign coins
This commit is contained in:
QuickMythril 2023-05-31 09:14:46 -04:00 committed by GitHub
commit 5650923805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -576,14 +576,15 @@ let res = await qortalRequest({
``` ```
### Send foreign coin to address ### 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({ let res = await qortalRequest({
action: "SEND_COIN", action: "SEND_COIN",
coin: "LTC", coin: "LTC",
destinationAddress: "LSdTvMHRm8sScqwCi6x9wzYQae8JeZhx6y", destinationAddress: "LSdTvMHRm8sScqwCi6x9wzYQae8JeZhx6y",
amount: 1.00000000, // 1 LTC 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
}); });
``` ```

View File

@ -467,6 +467,10 @@ function getDefaultTimeout(action) {
// Allow extra time for other actions that create transactions, even if there is no PoW // Allow extra time for other actions that create transactions, even if there is no PoW
return 5 * 60 * 1000; 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: default:
break; break;
} }