koios

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(network cardano.Network, ctx context.Context, opts ...koios.Option) cardano.Node

Types

type KoiosCli

type KoiosCli struct {
	*koios.Client
	// contains filtered or unexported fields
}

func (*KoiosCli) Network

func (kc *KoiosCli) Network() cardano.Network

Network returns the node's current network type

func (*KoiosCli) ProtocolParams

func (kc *KoiosCli) ProtocolParams() (*cardano.ProtocolParams, error)

ProtocolParams returns the Node's Protocol Parameters

func (*KoiosCli) SubmitTx

func (kc *KoiosCli) SubmitTx(tx *cardano.Tx) (*cardano.Hash32, error)

SubmitTx submits a transaction to the node using cbor encoding

func (*KoiosCli) Tip

func (kc *KoiosCli) Tip() (*cardano.NodeTip, error)

Tip returns the node's current tip

func (*KoiosCli) UTxOs

func (kc *KoiosCli) UTxOs(a cardano.Address) ([]cardano.UTxO, error)

Jump to

Keyboard shortcuts

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