I want to create 100 to 500 to 1000 BTC receive addresses. It should not expire. Is it possible ? Is it possible in Bitcoin core ?
1 Answer
It is possible with json-rpc interface and one-time script.
- Enable json-rpc port by changing bitcoin.conf used by your Bitcoin Core (usually
~/.bitcoin/bitcoin.conf
).
https://ma.ttias.be/enable-the-rpc-json-api-with-password-authentication-in-bitcoin-core/
Start bitcoind/bitcoin core.
Unlock your wallet using RPC walletpassphrase with timeout parameter like 600 or greater.
Obtain new address using RPC getnewaddress. This function creates new receive address under the same account(~wallet).
Write the returned string into the TXT file with appending to the existing list of addresses.
This is to be done via simple python script and for i in range(0, 500):
loop.
Use library such as python-bitcoinrpc to easily connect to your json-rpc.
Funds send to any of these addresses you've generated and saved to a TXT file joined to the available wallet balance and will be available to spend in a transaction from the interface.