Bitcoin Forum
May 05, 2024, 11:42:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Using Electrum on web server  (Read 863 times)
Fakens (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 09, 2016, 10:13:13 AM
 #1

Hi! I'm thinking about Bitcoin related web site where the user can register and login, and after that send some bitcoins to its account. So I should assign an unique bitcoin address to one user.

Is there any way to do this with Electrum? I think I should generate a new bitcoin address just after the user registered.
1714909379
Hero Member
*
Offline Offline

Posts: 1714909379

View Profile Personal Message (Offline)

Ignore
1714909379
Reply with quote  #2

1714909379
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714909379
Hero Member
*
Offline Offline

Posts: 1714909379

View Profile Personal Message (Offline)

Ignore
1714909379
Reply with quote  #2

1714909379
Report to moderator
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6122



View Profile
January 09, 2016, 10:42:11 AM
 #2

Twister didn't get your question as should be I suppose .
So yes you can do , see the documentation here : http://docs.electrum.org/en/latest/merchant.html


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Fakens (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 09, 2016, 01:22:37 PM
 #3

Twister didn't get your question as should be I suppose .
So yes you can do , see the documentation here : http://docs.electrum.org/en/latest/merchant.html

http://docs.electrum.org/en/latest/_images/payrequest.png

Thanks for reply! Looks pretty cool but a little complicated. As I can see first of all I need to create a payment request by :

Code:
electrum addrequest 3.14 -m "this is a test"

But what if I only want to show some Bitcoin address to the user so she could just send Bitcoins to it, I mean any sum, not necessary predefined sum 3.14.
twister
Hero Member
*****
Offline Offline

Activity: 672
Merit: 501



View Profile WWW
January 09, 2016, 01:55:38 PM
 #4

Yes, I was lost in translation, I think he is just looking a way to assign address to people's accounts who register on his site and so when they send money to that address it will show up in their account, kind of like when you register on a gambling website, you get a deposit address and any money sent to that get added to your account.

 

██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
 
Get Free Bitcoin Now!
  ¦¯¦¦¯¦    ¦¯¦¦¯¦    ¦¯¦¦¯¦    ¦¯¦¦¯¦   
0.8%-1% House Edge
[/
Fakens (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 09, 2016, 04:18:44 PM
 #5

Yes, I was lost in translation, I think he is just looking a way to assign address to people's accounts who register on his site and so when they send money to that address it will show up in their account, kind of like when you register on a gambling website, you get a deposit address and any money sent to that get added to your account.

Yes, that's absolutely my case. Could I do just such a thing with Electrum?
twister
Hero Member
*****
Offline Offline

Activity: 672
Merit: 501



View Profile WWW
January 10, 2016, 01:07:33 PM
 #6

Yes, I was lost in translation, I think he is just looking a way to assign address to people's accounts who register on his site and so when they send money to that address it will show up in their account, kind of like when you register on a gambling website, you get a deposit address and any money sent to that get added to your account.

Yes, that's absolutely my case. Could I do just such a thing with Electrum?

The instructions link presented above would be the right way to do it, other than that you can manually create an address, label it to that user's name and allot it to their account.

 

██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████
 
Get Free Bitcoin Now!
  ¦¯¦¦¯¦    ¦¯¦¦¯¦    ¦¯¦¦¯¦    ¦¯¦¦¯¦   
0.8%-1% House Edge
[/
Fakens (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 11, 2016, 07:56:09 PM
 #7

Yes, I was lost in translation, I think he is just looking a way to assign address to people's accounts who register on his site and so when they send money to that address it will show up in their account, kind of like when you register on a gambling website, you get a deposit address and any money sent to that get added to your account.

Yes, that's absolutely my case. Could I do just such a thing with Electrum?

The instructions link presented above would be the right way to do it, other than that you can manually create an address, label it to that user's name and allot it to their account.

Seem there is no way to create an address. I googled about two days, god...
Fakens (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 13, 2016, 06:17:27 PM
 #8


Code:
electrum addrequest 3.14 -m "this is a test"

But what if I only want to show some Bitcoin address to the user so she could just send Bitcoins to it, I mean any sum, not necessary predefined sum 3.14.

The payment request is the way to go to send your customers a bitcoin address from your Electrum wallet.  The amount is not important - you could set the amount to 0.00 BTC and let the sender decide how much to send in the future. A new Bitcoin address from the list of available addresses will be used (not created) for every payment request.  Electrum generates automatically bitcoin addresses - deterministically - based on the Master Private Key (which is derived from the wallet seed words).  All the keys in the Electrum wallet are a child of that Master Private Key - as you use them, new "child" keys are revealed automatically by Electrum (how many unused addresses are revealed at the same time depends on your gap limit setting).  

Don't worry about the "expiration" of the request either, Bitcoin addresses don't expire - addresses are representations of public keys.  To be confirmed, but I believe this locks the Bitcoin address from being used by Electrum in another payment request, until the expiration time is over (in case the customer didn't use it).  I would make the address available again in the pool of "new" addresses, if unused during the time period.

Thanks a lot! I got it. The last question. Could this command ever return two equal addresses?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!