bee icon indicating copy to clipboard operation
bee copied to clipboard

Bee option for Node Spinup: Funding private key

Open Cafe137 opened this issue 9 months ago • 1 comments

Summary

A private key passed as an option to Bee, which, given it has xDAI (and xBZZ), funds are automatically transferred to the node's wallet.

Motivation

  • Good UX with gift wallets (common)
  • May simplify "1. init bee wallet, 2. transfer funds, 3. start bee" setup to "1. prepare funds, 2. start bee" in CI or for node operators (less common)
  • Future potential: May reuse multichain toolkit and include automatic swapping and bridging, e.g. end user provides wallet with some low ETH, and the rest is handled

Implementation

  • Check option on startup
  • Return if no xDAI
  • Transfer xBZZ, if any
  • Transfer xDAI, if any
  • Proceed with startup

Drawbacks

  • Development costs
  • Risk of being an underused feature
  • Funding private key must be an ephemeral, low-value PK strictly for this purpose

Cafe137 avatar Mar 03 '25 20:03 Cafe137

on hold until multichain tool is finalised and get user feedback

nikipapadatou avatar Apr 01 '25 09:04 nikipapadatou