Requires wallet support. Requires an unlocked wallet or an unencrypted wallet.
keypoolrefill RPC fills the cache of unused pre-generated keys (the keypool).
Parameter #1—the new keypool size
|Key Pool Size||number (int)||Optional
(0 or 1)
|The new size of the keypool; if the number of keys in the keypool is less than this number, new keys will be generated. Default is
null on success
|If the keypool is successfully filled, JSON
Generate one extra key than the default:
pai-cli -testnet keypoolrefill 101
(No result shown: success.)
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.
GetWalletInfo: provides information about the wallet.