wallet

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCmd added in v0.9.0

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

NewAddCmd returns the `kh wallet add` subcommand -- a thin wrapper around `npx @keeperhub/wallet add` that provisions a new agentic wallet.

func NewBalanceCmd

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

func NewFeedbackCmd added in v0.10.0

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

NewFeedbackCmd returns the `kh wallet feedback` subcommand -- a thin wrapper around `npx @keeperhub/wallet feedback` that submits ERC-8004 ReputationRegistry feedback for a workflow execution this wallet paid for.

Signing + broadcast happens server-side in the npm package; the wallet's Turnkey policy gates what can be signed (only giveFeedback() on the ReputationRegistry on Ethereum mainnet). Caller wallet pays gas natively.

func NewFundCmd added in v0.9.0

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

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

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

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

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

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).

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