Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kevinovecka on October 18, 2021, 06:19:32 PM



Title: Bitcoin RPC API - other address type support
Post by: kevinovecka on October 18, 2021, 06:19:32 PM
Hi,

Does Bitcoin RPC support all address types when withdrawing?

I am just asking to be sure I did over 400 transactions, but better to ask if somebody has some experience with it.

Thank you


Title: Re: Bitcoin RPC API - other address type support
Post by: Quickseller on October 18, 2021, 06:49:30 PM
You can do anything via a RPC command as you could via the GUI. So if you wanted to send a transaction to a P2PKH address for example, you can use a RPC command to do this.


Title: Re: Bitcoin RPC API - other address type support
Post by: kevinovecka on October 19, 2021, 12:23:04 AM
You can do anything via a RPC command as you could via the GUI. So if you wanted to send a transaction to a P2PKH address for example, you can use a RPC command to do this.

Thank you
I mean for example seller will add withdraw address P2PKH and when automatically sent from RPC (bech32 addresses) will it be okay without problems?


Title: Re: Bitcoin RPC API - other address type support
Post by: Quickseller on October 19, 2021, 12:33:37 AM
You can do anything via a RPC command as you could via the GUI. So if you wanted to send a transaction to a P2PKH address for example, you can use a RPC command to do this.

Thank you
I mean for example seller will add withdraw address P2PKH and when automatically sent from RPC (bech32 addresses) will it be okay without problems?

If you are using bitcoin core, mixing address types is not a problem. You can both send and receive transactions from different address types than what you are using.


Title: Re: Bitcoin RPC API - other address type support
Post by: kevinovecka on October 19, 2021, 12:57:44 AM
You can do anything via a RPC command as you could via the GUI. So if you wanted to send a transaction to a P2PKH address for example, you can use a RPC command to do this.

Thank you
I mean for example seller will add withdraw address P2PKH and when automatically sent from RPC (bech32 addresses) will it be okay without problems?

If you are using bitcoin core, mixing address types is not a problem. You can both send and receive transactions from different address types than what you are using.

Thank you very much :)