Bitcoin Forum

Bitcoin => Electrum => Topic started by: h4rpreet on April 21, 2021, 07:41:01 AM



Title: How do i send USD figure instead of bitcoin figure ?
Post by: h4rpreet on April 21, 2021, 07:41:01 AM
Hi, I am trying to do a mass pay ( multiple payments at once), I recently shifted from a blockchain web wallet.

I am uploading a file in this format



walletid, 50

waalleetid, 50


(50 = $)
When I upload this file, it treats $50 as BTC, i mean if I want to send 50-50$ each of them, it treats as I want to send 100 bitcoin. How can I change this?

Since BTC/sat value keep changing. I want to send specific $ to these multiple addresses every day, can someone help me with this?


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: NeuroticFish on April 21, 2021, 07:55:20 AM
Since BTC/sat value keep changing. I want to send specific $ to these multiple addresses every day, can someone help me with this?

Since you send Bitcoin and Electrum Pay-To-Many also works with Bitcoin, why not simply use a 3rd party website to do the calculation for you?
I would use https://preev.com where I can enter the 50$ and for example show now 0.0009025BTC
And then you can do in Electrum:

Code:
walletid, 0.0009025
waalleetid, 0.0009025

Of course, you'll probably have to tell the other people you use preev rate and everybody will have to understand that this amount's price may be different in the moment they arrive in the destination wallet.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: hugeblack on April 21, 2021, 10:20:41 AM
In electrum wallet there are four options, BTC, mBTC, sat, bits.
If you want to pay them based on the dollar value, you will need to modify CSV file to automatically calculate Bitcoin/USD value before exporting the file.
you dont need to do it manually.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: ranochigo on April 21, 2021, 11:43:02 AM
Modifying the CSV is unfortunately your only option. Using specific spreadsheet shortcuts to calculate the value to pay to each user and it would be fairly quick as well.

Electrum checks and treats the value after the comma in BTC and isn't linked to the fiat conversion. Perhaps make an issue on Github as a feature enhancement?


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: The Sceptical Chymist on April 21, 2021, 11:59:46 AM
Electrum checks and treats the value after the comma in BTC and isn't linked to the fiat conversion. Perhaps make an issue on Github as a feature enhancement?
I never have the need for sending specific USD amounts to multiple recipients, but I do often use the multi-send feature and I think it would be a great idea if that was added as a feature.  I'd think it might help some campaign managers who use Electrum to send out funds at the end of a pay period, but either way it would be a nifty upgrade.



Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: h4rpreet on April 21, 2021, 02:24:35 PM
Ty guys, i have 1 more query if anyone can answer.


Till now I was using the default blockchain.com web wallet, now i am shifting to electrum, someone told me electrum support segwit wallet and it has less fee.


How do I generate segwit address?

How does it look like?

I am using MAC, and I don't see any option to create segwit wallet on Mac electrum.

If i send all my bitcoin funds from default blockchain wallet to electurm wallet, WIll i be able to send funds from electrum wallet moving forward in less fee than normal blockchain.com address ? Since this will be segwit address...


Little confused here.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: NeuroticFish on April 21, 2021, 02:32:38 PM
How do I generate segwit address?
How does it look like?

If you create a new wallet with the latest Electrum, it will be SegWit wallet. You can check by giung to View->Show Addresses and then switch to Addresses tab. They'll all start with bc1.

If i send all my bitcoin funds from default blockchain wallet to electurm wallet, WIll i be able to send funds from electrum wallet moving forward in less fee than normal blockchain.com address ? Since this will be segwit address...

Before using funds with Electrum, you better make sure it's downloaded from electrum.org and it's verified: https://bitcoinelectrum.com/how-to-verify-your-electrum-download/
Then, if you send from your SegWit address to SegWit addresses, yes, the fees will be a bit lower. But since now the network is congested, that will still be pretty high...


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: h4rpreet on April 21, 2021, 02:42:29 PM
How do I generate segwit address?
How does it look like?

If you create a new wallet with the latest Electrum, it will be SegWit wallet. You can check by giung to View->Show Addresses and then switch to Addresses tab. They'll all start with bc1.

If i send all my bitcoin funds from default blockchain wallet to electurm wallet, WIll i be able to send funds from electrum wallet moving forward in less fee than normal blockchain.com address ? Since this will be segwit address...

Before using funds with Electrum, you better make sure it's downloaded from electrum.org and it's verified: https://bitcoinelectrum.com/how-to-verify-your-electrum-download/
Then, if you send from your SegWit address to SegWit addresses, yes, the fees will be a bit lower. But since now the network is congested, that will still be pretty high...


Ok sounds clear.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: h4rpreet on April 26, 2021, 02:38:59 PM
Since BTC/sat value keep changing. I want to send specific $ to these multiple addresses every day, can someone help me with this?

Since you send Bitcoin and Electrum Pay-To-Many also works with Bitcoin, why not simply use a 3rd party website to do the calculation for you?
I would use https://preev.com where I can enter the 50$ and for example show now 0.0009025BTC
And then you can do in Electrum:

Code:
walletid, 0.0009025
waalleetid, 0.0009025

Of course, you'll probably have to tell the other people you use preev rate and everybody will have to understand that this amount's price may be different in the moment they arrive in the destination wallet.

This preev.com is exactly what I need but I'll have to do 100's of conversion manually,edit csv and upload it in electrum. Does anyone know by automatic way? Maybe a API of preev.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: NeuroticFish on April 26, 2021, 03:07:23 PM
This preev.com is exactly what I need but I'll have to do 100's of conversion manually,edit csv and upload it in electrum. Does anyone know by automatic way? Maybe a API of preev.

My recommendation would be to try with Excel or LibreOffice Calc.
You put in column one wallet and the ending comma and on the column two you put a formula, based on, let's say column 3 and the fixed rate you get from preev, bitstamp or whatever.
Then you copy the columns 1 and 2 and you have the equivalent of the CSV, which you can save into CSV or directly into Electrum's pay-to-may. From my test on testnet it works, even if it has some potentially scary extra spaces here and there.

If it's unclear, if you tell me what format you want - Excel or LibreOffice - I'll prepare a sample for you and put it on WeTransfer so you can download it.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: h4rpreet on April 26, 2021, 10:05:15 PM
This preev.com is exactly what I need but I'll have to do 100's of conversion manually,edit csv and upload it in electrum. Does anyone know by automatic way? Maybe a API of preev.

My recommendation would be to try with Excel or LibreOffice Calc.
You put in column one wallet and the ending comma and on the column two you put a formula, based on, let's say column 3 and the fixed rate you get from preev, bitstamp or whatever.
Then you copy the columns 1 and 2 and you have the equivalent of the CSV, which you can save into CSV or directly into Electrum's pay-to-may. From my test on testnet it works, even if it has some potentially scary extra spaces here and there.

If it's unclear, if you tell me what format you want - Excel or LibreOffice - I'll prepare a sample for you and put it on WeTransfer so you can download it.



Hi, Thank you, Can you give me example excel?

Thank you so much.


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: DireWolfM14 on April 27, 2021, 01:28:24 AM
https://i.ibb.co/MSDcv1Y/Capture.png


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: TryNinja on April 27, 2021, 02:37:05 AM
Hi, Thank you, Can you give me example excel?
Here is one on Google Spreadsheets: https://docs.google.com/spreadsheets/d/19aV_Hf9-a8Xc3DQ5oayc9_GR81XHnqhd3W0K2_PDnAA/edit?usp=sharing

Basically: divide the amount in USD by the BTC price to get the amount in BTC. Using the right format (address comma amount) you can just copy and paste on the Electrum "Pay to" box.

Code:
1ninja1bumhsotxozbrbetr8lef9tgbzbn	,	0.00092593
12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX , 0.00185185
bc1qnspu8hrvee0t9ang6a57ffn0yjk7eff40472ze , 0.00287037


Title: Re: How do i send USD figure instead of bitcoin figure ?
Post by: NeuroticFish on April 27, 2021, 05:51:17 AM
This is the file I've promised: https://we.tl/t-8HM89evnUE

If you want to add more wallets, copy/paste for example A7, B7 and C7 as A8, B8, C8 and adapt the formula from B8 so it's C8/F2 (instead of F3). Since I expect that the recipients are the same every week, this should be a one-time job.

Then, at normal use, you just fill the exchange rate to F2 and copy/paste the relevant cells from row A and row B into the CSV. In current case that's A4:B7.