wallet

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBalanceCmd

func NewBalanceCmd(f *cmdutil.Factory) *cobra.Command

func NewTokensCmd

func NewTokensCmd(f *cmdutil.Factory) *cobra.Command

func NewWalletCmd

func NewWalletCmd(f *cmdutil.Factory) *cobra.Command

Types

type BalancesResponse

type BalancesResponse struct {
	WalletAddress string         `json:"walletAddress"`
	Balances      []ChainBalance `json:"balances"`
}

BalancesResponse is the API response from GET /api/user/wallet/balances.

type ChainBalance

type ChainBalance struct {
	ChainID       string         `json:"chainId"`
	ChainName     string         `json:"chainName"`
	NativeBalance string         `json:"nativeBalance"`
	Tokens        []TokenBalance `json:"tokens"`
}

ChainBalance holds the balance for a single chain.

type Token

type Token struct {
	ChainID      string `json:"chainId"`
	TokenAddress string `json:"tokenAddress"`
	Symbol       string `json:"symbol"`
	Name         string `json:"name"`
	Decimals     int    `json:"decimals"`
}

Token holds metadata for a single supported token.

type TokenBalance

type TokenBalance struct {
	Symbol   string `json:"symbol"`
	Balance  string `json:"balance"`
	Decimals int    `json:"decimals"`
}

TokenBalance holds the balance for a single token.

type TokensResponse

type TokensResponse struct {
	Tokens []Token `json:"tokens"`
}

TokensResponse is the API response from GET /api/user/wallet/tokens.

Jump to

Keyboard shortcuts

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