Requires wallet support.
getrawchangeaddress RPC returns a new Pai address for receiving change. This is for use with raw transactions, not normal use.
Result—a P2PKH address which can be used in raw transactions
|A P2PKH address which has not previously been returned by this RPC. The address will be removed from the keypool but not marked as a receiving address, so RPCs such as the
pai-cli -testnet getrawchangeaddress
GetNewAddress: returns a new Pai address for receiving payments. If an account is specified, payments received with the address will be credited to that account.
GetAccountAddress: returns the current Pai address for receiving payments to this account. If the account doesn’t exist, it creates both the account and a new address for receiving payment. Once a payment has been received to an address, future calls to this RPC for the same account will return a different address.