I want every buyer on my website to be given a unique Bitcoin or Ethereum address, only the address without the amount. How to generate a new crypto address using API?
Hi albertbrim,
Welcome to the community. Let me try to answer these in order:
unique Bitcoin address
This feature is built-in. You need to make sure to enter your bitcoin wallet public key, also known as xPub, zPub, or yPub in wallet settings in Merchant Panel. If you enter a wallet public key, our system will automatically generate unique addresses for your wallet.
unique Ethereum addresses
We do not have this feature, because on Ethereum, each wallet address is a separate Ethereum account with a separate private key. It is also not very practical, because unlike bitcoin, when you send ether, it does not allow you to create transactions with multiple inputs. So, you will have to first consolidate all your payments to a single Ethereum account before sending. This will cost you additional miner frees.
only the address without the amount
Could you explain your use case a little more? We have a donation widget for example, where a user can enter any amount, but I’m not sure what you are looking for
How to generate a new crypto address using API?
You will need to use the Payment/Create API method to generate a receiving payment address (which may or may not be new depending on the blockchain and your wallet settings).