Versions in this module Expand all Collapse all v1 v1.0.0 Sep 18, 2021 Changes in this version + func AtLeast(amt int32) func(utxo Utxo) bool + func ExcludeScripts(enabled bool) func(utxo Utxo) bool + func ExcludeTokens(enabled bool) func(utxo Utxo) bool + func HasToken(assetID string) func(utxo Utxo) bool + type Asset struct + AssetName string + Description string + Logo string + Name string + PolicyId string + Ticker string + Url string + func (a Asset) ID() string + type BuildOption func(options *BuildOptions) + func Certificate(files ...string) BuildOption + func Fee(fee string) BuildOption + func Mint(s string) BuildOption + func MintScriptFile(filename string) BuildOption + func TxIn(address string, index int32) BuildOption + func TxOut(address string, quantity string, tokens ...string) BuildOption + type BuildOptions struct + Certificates []string + Fee string + Mint string + MintScriptFile string + TxIn []txIn + TxOut []txOut + func MakeBuildOptions(opts ...BuildOption) BuildOptions + type CLI struct + Cmd []string + Debug bool + Dir string + PoolDir string + SocketPath string + TestnetMagic string + TreasuryAddr string + TreasurySkeyFile string + func (c *CLI) NormalizeAddress(address string) (string, error) + func (c *CLI) WalletLocation(addressMnemonic string) string + func (c CLI) Build(opts ...BuildOption) ([]byte, error) + func (c CLI) CreateWallet(ctx context.Context, initialFunds, name string) (wallet string, err error) + func (c CLI) DataDir() string + func (c CLI) Delegate(ctx context.Context, address string) (tx Tx, err error) + func (c CLI) FindAllWallets(query string) ([]string, error) + func (c CLI) FundWallet(ctx context.Context, address, quantity string) (tx Tx, err error) + func (c CLI) KeyHash(ctx context.Context, wallet string) (keyHash string, err error) + func (c CLI) MinFee(ctx context.Context, filename string, txIn, txOut, witnesses int32) (fee string, err error) + func (c CLI) PolicyID(ctx context.Context, filename string) (policyID string, err error) + func (c CLI) ProtocolParameters(ctx context.Context) (filename string, err error) + func (c CLI) QueryTip() (*Tip, error) + func (c CLI) RegisterStake(ctx context.Context, address string) (tx Tx, err error) + func (c CLI) Sign(ctx context.Context, raw []byte, wallets ...string) (data []byte, err error) + func (c CLI) Submit(ctx context.Context, signed []byte) (err error) + func (c CLI) Utxos(address string, excludes ...func(Utxo) bool) (utxos Utxos, err error) + func (c CLI) Version() (version Version, err error) + type Tip struct + Block int32 + Epoch int32 + Era string + Hash string + Slot int32 + type Token struct + Asset *Asset + Quantity string + type Tx struct + ID string + func ParseTx(data []byte) (Tx, error) + type Utxo struct + Address string + DatumHash string + Index int32 + Tokens []Token + Value string + func ParseUtxos(buf *bytes.Buffer) []Utxo + func (u Utxo) String() string + func (u Utxo) TxIn() string + type Utxos []Utxo + func (uu Utxos) Filter(includes ...func(utxo Utxo) bool) (filtered Utxos) + func (uu Utxos) Find(address string, index int32) (Utxo, error) + type Version struct + Git string + Revision string