+
+ {header}
+
+ {hasBtc && (
+
+
+
+ )}
+ {sendMax && dustFiltered && }
+
+
+ {hasBtc && (
+
+ )}
+ {!hasBtc && (
+ {
+ navigate('/buy/btc');
+ }}
+ />
+ )}
+
+
+ );
+}
+
+export default AmountSelector;
diff --git a/src/app/screens/sendBtc/helpers.ts b/src/app/screens/sendBtc/helpers.ts
new file mode 100644
index 000000000..43bb670f7
--- /dev/null
+++ b/src/app/screens/sendBtc/helpers.ts
@@ -0,0 +1,60 @@
+import { btcTransaction } from '@secretkeylabs/xverse-core';
+
+export type TransactionSummary = btcTransaction.TransactionSummary & {
+ dustFiltered?: boolean;
+};
+
+type TransactionBuildPayload = {
+ transaction: btcTransaction.EnhancedTransaction;
+ summary?: TransactionSummary;
+};
+
+export const generateTransaction = async (
+ transactionContext: btcTransaction.TransactionContext,
+ toAddress: string,
+ amount: bigint,
+ feeRate: number,
+): Promise