gatewaycash / gateway

Gateway - Simple Bitcoin Payments
GNU Affero General Public License v3.0
18 stars 10 forks source link

XPUBIndex Discovery #116

Open ty-everett opened 5 years ago

ty-everett commented 5 years ago

When a new XPUB key is added, we should discover the current index by deriving an querying the address balances. XPUBIndex should be querryable and changeable using GET and PATCH /use/payout/xpub.

Platform XPUBIndex should be changeable in the same fashion.

EDIT: We need the total ever received from the block explorer, not the current balance which could very well be zero.