[lbry] rpc: added optional address type for getnewaddress

This commit is contained in:
Brannon King 2021-11-12 16:49:24 -05:00 committed by Roy Lee
parent c035acb6b2
commit 30f4bd6582

View file

@ -243,6 +243,7 @@ func NewGetBalancesCmd() *GetBalancesCmd {
// GetNewAddressCmd defines the getnewaddress JSON-RPC command.
type GetNewAddressCmd struct {
Account *string
AddressType *string // must be one of legacy / p2pkh or p2sh-p2wkh / p2sh-segwit, or p2wkh / bech32
}
// NewGetNewAddressCmd returns a new instance which can be used to issue a