Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 1131

Python bitcoin

by pilpoile - 25 May, 2022 - 01:39 AM
This post is by a banned member (pilpoile) - Unhide
pilpoile  
Registered
4
Posts
1
Threads
4 Years of service
#1
Hi,
Can you help me to understand reception address in Bitcoin
In my python software I would like one reception bitcoin address for each customer to know who is send me satoshis
But I've just one reception bitcoin address in my wallet
Thank's a lot if you can me help !!
:pepo:
This post is by a banned member (Tsunade) - Unhide
Tsunade  
Supreme
786
Posts
323
Threads
4 Years of service
#2
depends on what wallet u use, you'd probably want to find wallet with api so you can do that easily with requests
This post is by a banned member (ANG) - Unhide
This post is by a banned member (pilpoile) - Unhide
pilpoile  
Registered
4
Posts
1
Threads
4 Years of service
#4
(25 May, 2022 - 01:41 AM)Tsunade Wrote: Show More
depends on what wallet u use, you'd probably want to find wallet with api so you can do that easily with requests

I would like to use Hierarchical Deterministic wallet
I find this solution but it doen't create wallet
Code:
import binascii from py_crypto_hd_wallet
import HdWalletBip44Coins, HdWalletBipChanges, HdWalletBipFactory
# Create factory
hd_wallet_fact = HdWalletBipFactory(HdWalletBip44Coins.BITCOIN)
# Create random
hd_wallet = hd_wallet_fact.CreateRandom("my_wallet_name")
# Generate with default parameters
hd_wallet.Generate()
# Specify parameters (it'll generate addresses from index 10 to 15)
hd_wallet.Generate(acc_idx=1, change_idx=HdWalletBipChanges.CHAIN_EXT, addr_num=5, addr_off=10)
# After generated, you can check if the wallet is watch-only with the IsWatchOnly method
is_wo = hd_wallet.IsWatchOnly()

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)