cmd

package
v0.0.0-...-3ef0e5c Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountConfig

func AccountConfig(acct data.Account, tag *uint32) (*ini.Section, bool)

func AmountFromArg

func AmountFromArg(arg string) (*data.Amount, error)

func DataAPI

func DataAPI() (string, error)

func FormatAccount

func FormatAccount(account data.Account, tag *uint32) string

returns account nickname if known; otherwise, address string

func Rippled

func Rippled() (string, error)

Types

type AccountTag

type AccountTag struct {
	Account data.Account
	Tag     uint32 // not *uint32, because we want to use AccountTag as map key
}

AccountTag is a "fully qualified" account identifier, meaning an address and destination (or source) tag.

func NewAccountTag

func NewAccountTag(acct data.Account, tag *uint32) AccountTag

func ParseAccountArg

func ParseAccountArg(arg []string) ([]AccountTag, error)

Helper for operations that expect a list of accounts. We want to accept (and display) accounts by local nickname, as well as normal ripple address.

func (*AccountTag) String

func (this *AccountTag) String() string

Jump to

Keyboard shortcuts

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