From 655073c524d6b53f8bf591cd6d62fc8fb5218f50 Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Thu, 25 May 2023 04:41:03 -0400 Subject: [PATCH 1/3] Added 2m timeout for GET_WALLET_BALANCE action --- src/main/resources/q-apps/q-apps.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/q-apps/q-apps.js b/src/main/resources/q-apps/q-apps.js index dae20e5d..d26b7791 100644 --- a/src/main/resources/q-apps/q-apps.js +++ b/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; } From d260c0a9a9fab04c8dc0d28ee9fc026ca1334729 Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Thu, 25 May 2023 16:35:08 -0400 Subject: [PATCH 2/3] Updated info on foreign coin fees --- Q-Apps.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Q-Apps.md b/Q-Apps.md index ca750e7d..83718507 100644 --- a/Q-Apps.md +++ b/Q-Apps.md @@ -576,14 +576,15 @@ let res = await qortalRequest({ ``` ### Send foreign coin to address -_Requires user approval_ +_Requires user approval_
+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: 20 // Optional sats per byte (default fee used if omitted, recommended) - not used for QORT or ARRR }); ``` From 13da0e8a7a04dc227907dd1f1b61a7c04c59ec3e Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Thu, 25 May 2023 17:26:29 -0400 Subject: [PATCH 3/3] Adjusted fee info to long format --- Q-Apps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Q-Apps.md b/Q-Apps.md index 83718507..83f2a356 100644 --- a/Q-Apps.md +++ b/Q-Apps.md @@ -584,7 +584,7 @@ let res = await qortalRequest({ coin: "LTC", destinationAddress: "LSdTvMHRm8sScqwCi6x9wzYQae8JeZhx6y", amount: 1.00000000, // 1 LTC - fee: 20 // Optional sats per byte (default fee used if omitted, recommended) - not used for QORT or ARRR + fee: 0.00000020 // Optional fee per byte (default fee used if omitted, recommended) - not used for QORT or ARRR }); ```