The entire balance is charged as transaction fees
Closed this issue · 2 comments
weixiaojian001 commented
weixiaojian001 commented
const outputs = [{
address: toAddress,
amount: transAmount
}];
let btcTxParams = {
inputs: inputs,
outputs: outputs,
address: fromAddress,
feePerB: 1
};
let signParams = {
privateKey: privateKey,
data: btcTxParams
};
rawTx = await wallet.signTransaction(signParams);
debuggor commented
default change address is "address: fromAddress
"