Author

Topic: How can you create an address for a user permanently? (Read 110 times)

legendary
Activity: 2744
Merit: 3097
Top Crypto Casino
I read your old posts and it looks like you're running a service which has to generate a unique address for each user! If this is what you're asking about then you don't need to request Elctrum to regenerate the address each time a user wants to make a deposit. Instead, you have to use the wallet's master public key to generate a new address for each new user and save both the address and the corresponding username in a sort of database then call it from there when needed.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
How do you set an infinite validity period? An example with electrum jsonrpc ?
You'll have to call the method:
Code:
add_request

With the following parameters
Code:
Amount:
memo:
expiration: None

I found the documentation for JSON_RPC but it's a bit outdated since it's method was changed to one with an underscore. If you want to make the invoice never expiring, then you have to specify the expiration and put None as a value, the only other required param is the amount.

https://electrum.readthedocs.io/en/latest/jsonrpc.html
newbie
Activity: 9
Merit: 1
Addresses never expires. If tracking invoices is not something that you need, it'll be better for you to just take an addresses from your address tab and give it to the user.

If you want to use invoices, just create but set the expiry to Never. Even if it did expire, it wouldn't matter as the address would still be in your wallet and they're never deleted.

How do you set an infinite validity period? An example with electrum jsonrpc ?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Addresses never expires. If tracking invoices is not something that you need, it'll be better for you to just take an addresses from your address tab and give it to the user.

If you want to use invoices, just create but set the expiry to Never. Even if it did expire, it wouldn't matter as the address would still be in your wallet and they're never deleted.
legendary
Activity: 1876
Merit: 3139
How can this be done and is electrum suitable for this?

Electrum already does it. Your address changes every time you receive a transaction to it for privacy reasons. You are free to reuse addresses as many times as you want. You can also access a list of your addresses by clicking "View -> Show Addresses". You should see the "Addresses" tab once you do it.
newbie
Activity: 9
Merit: 1
Hello everybody. How can electrum give a user a top-up address forever? I want the address to be given in my account when requested, and it would be possible to replenish it both today and in a year. How can this be done and is electrum suitable for this?
Jump to: