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
Assuming for example that from contains 1 doge, send 0.5 to to, expect from to end up at 0.5 (minus fees).
All parameters are valid.
Does not work. Rest of the funds are sent to miner.
vartransaction=newTransaction().from(utxos)// Feed information about what unspent outputs one can use.to(address,amount)// Add an output with the given amount of satoshis.change(address)// Sets up a change address where the rest of the funds will go.sign(privkeySet)// Signs all the inputs it can```
Changefunctionshouldsendtherestofthefundbacktothefromaddress.
The text was updated successfully, but these errors were encountered:
Assuming for example that from contains 1 doge, send 0.5 to to, expect from to end up at 0.5 (minus fees).
All parameters are valid.
Does not work. Rest of the funds are sent to miner.
https://sochain.com/tx/DOGE/35d551e393f5c6822fcd0f0989cce980f75d40824b136f31980e3393810a49a4
Using the following code
Force me to do something like
For it to work.
According to the documentation :
The text was updated successfully, but these errors were encountered: