Documentation
¶
Index ¶
- func NewAddCmd(f *cmdutil.Factory) *cobra.Command
- func NewBalanceCmd(f *cmdutil.Factory) *cobra.Command
- func NewFundCmd(f *cmdutil.Factory) *cobra.Command
- func NewInfoCmd(f *cmdutil.Factory) *cobra.Command
- func NewLinkCmd(f *cmdutil.Factory) *cobra.Command
- func NewTokensCmd(f *cmdutil.Factory) *cobra.Command
- func NewWalletCmd(f *cmdutil.Factory) *cobra.Command
- type BalancesResponse
- type ChainBalance
- type Token
- type TokenBalance
- type TokensResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddCmd ¶ added in v0.9.0
NewAddCmd returns the `kh wallet add` subcommand -- a thin wrapper around `npx @keeperhub/wallet add` that provisions a new agentic wallet.
func NewFundCmd ¶ added in v0.9.0
NewFundCmd returns the `kh wallet fund` subcommand -- a thin wrapper around `npx @keeperhub/wallet fund` that prints funding instructions for the agentic wallet.
func NewInfoCmd ¶ added in v0.9.0
NewInfoCmd returns the `kh wallet info` subcommand -- a thin wrapper around `npx @keeperhub/wallet info` that prints the local agentic wallet identity.
func NewLinkCmd ¶ added in v0.9.0
NewLinkCmd returns the `kh wallet link` subcommand -- a thin wrapper around `npx @keeperhub/wallet link` that links an agentic wallet to a KeeperHub account.
Requires KH_SESSION_COOKIE to be set (v0.1.0 env-var contract from Phase 34 Plan 06).
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.