diff --git a/packages/react/src/actions/bitcoin/transaction.ts b/packages/react/src/actions/bitcoin/transaction.ts index 20a5286a..d9d30165 100644 --- a/packages/react/src/actions/bitcoin/transaction.ts +++ b/packages/react/src/actions/bitcoin/transaction.ts @@ -68,7 +68,7 @@ function executeTransferRequest( from, recipient, amount: { - amount, + amount: amount.toString(), decimals: 8, // BTC decimals }, memo: `hex::${removeHexPrefix(memo)}`, diff --git a/packages/react/src/types/bitcoin.ts b/packages/react/src/types/bitcoin.ts index 2d23c174..2e115e72 100644 --- a/packages/react/src/types/bitcoin.ts +++ b/packages/react/src/types/bitcoin.ts @@ -12,7 +12,7 @@ export type XfiBitcoinConnector = { feeRate: number; from: string; recipient: string; - amount: { amount: number; decimals: number }; + amount: { amount: string; decimals: number }; memo: string; }, ]; @@ -41,7 +41,7 @@ export type BitcoinTransferRequest = { from: string; recipient: string; amount: { - amount: number; + amount: string; decimals: number; }; memo: string;