Documentation ¶
Index ¶
- func OkRes() statusRes
- type SetupWalletMnemonicReqBody
- type SetupWalletPrKeyReqBody
- type WalletController
- func (s *WalletController) DeleteWallet(ctx *gin.Context)
- func (s *WalletController) GetWallet(ctx *gin.Context)
- func (s *WalletController) RegisterRoutes(r interfaces.Router)
- func (s *WalletController) SetupWalletMnemonic(ctx *gin.Context)
- func (s *WalletController) SetupWalletPrivateKey(ctx *gin.Context)
- type WalletRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SetupWalletPrKeyReqBody ¶
type WalletController ¶
type WalletController struct {
// contains filtered or unexported fields
}
func NewWalletController ¶
func NewWalletController(service interfaces.Wallet) *WalletController
func (*WalletController) DeleteWallet ¶
func (s *WalletController) DeleteWallet(ctx *gin.Context)
DeleteWallet godoc
@Summary Remove wallet from proxy @Description Remove wallet from proxy storage @Tags wallet @Produce json @Success 200 {statusRes} res @Router /wallet [delete]
func (*WalletController) GetWallet ¶
func (s *WalletController) GetWallet(ctx *gin.Context)
GetWallet godoc
@Summary Get Wallet @Description Get wallet address @Tags wallet @Produce json @Success 200 {WalletRes} WalletRes @Router /wallet [get]
func (*WalletController) RegisterRoutes ¶
func (s *WalletController) RegisterRoutes(r interfaces.Router)
func (*WalletController) SetupWalletMnemonic ¶
func (s *WalletController) SetupWalletMnemonic(ctx *gin.Context)
SetupWalletMnemonic godoc
@Summary Setup wallet using mnemonic @Description Setup wallet using mnemonic @Tags wallet @Produce json @Param mnemonic body string false "Mnemonic" @Param derivationPath body string false "Derivation path" @Success 200 {WalletRes} walletRes @Router /wallet/mnemonic [post]
func (*WalletController) SetupWalletPrivateKey ¶
func (s *WalletController) SetupWalletPrivateKey(ctx *gin.Context)
SetupWalletPrivateKey godoc
@Summary Setup wallet with private key @Description Setup wallet with private key @Tags wallet @Produce json @Param privatekey body string true "Private key" @Success 200 {WalletRes} walletRes @Router /wallet/privateKey [post]
Click to show internal directories.
Click to hide internal directories.