You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to build a new deposit transaction using the testnet helper, it fails due to lack of funds. I've verified that the address does indeed have UTXOs to spend. Checking the UTXOs in the console successfully shows them.
How to reproduce
Here is the code calling the function:
consttest=newTestnetHelper();constdev=newDevEnvHelper();constutxos=awaittest.fetchUtxos(userData.profile.btcAddress.p2wpkh.testnet);// get sBTC deposit address from bridge APIconstresponse=awaitfetch("https://bridge.sbtc.tech/bridge-api/testnet/v1/sbtc/init-ui");constdata=awaitresponse.json();consttx=awaitsbtcDepositHelper({network: TESTNET,pegAddress: data.sbtcContractData.sbtcWalletAddress,stacksAddress: userData.profile.stxAddress.testnet,amountSats: satoshis,feeRate: test.estimateFeeRate("low"),
utxos,bitcoinChangeAddress: userData.profile.btcAddress.p2wpkh.testnet,});console.log(tx);return;
Additional context
Bitcoin address being used to fetch UTXOs: tb1q3zl64vadtuh3vnsuhdgv6pm93n82ye8qc36c07
The text was updated successfully, but these errors were encountered:
What version of Stacks.js are you using?
Using sBTC package
Describe the bug
When I try to build a new deposit transaction using the testnet helper, it fails due to lack of funds. I've verified that the address does indeed have UTXOs to spend. Checking the UTXOs in the console successfully shows them.
How to reproduce
Here is the code calling the function:
Additional context
Bitcoin address being used to fetch UTXOs: tb1q3zl64vadtuh3vnsuhdgv6pm93n82ye8qc36c07
The text was updated successfully, but these errors were encountered: