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.
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.