api

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(
	ctx context.Context,
	cfg *config.Config,
	apiListener, metricsListener net.Listener,
) error

Start initializes and starts the HTTP servers for the API and metrics Listeners can be passed in for testing purposes to provide ephermeral ports

Types

type WalletCreateRequest added in v0.9.0

type WalletCreateRequest struct {
	Password string `json:"password"`
}

WalletCreateRequest defines the request payload for wallet creation

type WalletDeleteRequest added in v0.10.0

type WalletDeleteRequest struct {
	Name     string `json:"name"     binding:"required"`
	Password string `json:"password"`
}

WalletDeleteRequest defines the request payload for wallet deletion

type WalletGetRequest added in v0.10.0

type WalletGetRequest struct {
	Name     string `json:"name"     binding:"required"`
	Password string `json:"password"`
}

WalletGetRequest defines the request payload for wallet loading

type WalletRestoreRequest added in v0.6.0

type WalletRestoreRequest struct {
	Mnemonic  string `json:"mnemonic"   binding:"required"`
	Password  string `json:"password"`
	AccountId uint   `json:"account_id"`
	PaymentId uint32 `json:"payment_id"`
	StakeId   uint32 `json:"stake_id"`
	AddressId uint32 `json:"address_id"`
}

WalletRestoreRequest defines the request payload for wallet restoration

type WalletUpdateRequest added in v0.10.0

type WalletUpdateRequest struct {
	Name        string `json:"name"        binding:"required"`
	Password    string `json:"password"`
	Description string `json:"description"`
}

WalletUpdateRequest defines the request payload for wallet update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL