Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkTip ¶
type NetworkTip struct { Slot uint `json:"slot,omitempty"` Epoch uint `json:"epoch,omitempty"` Block uint `json:"block,omitempty"` }
NetworkTip contains parameters from the tip of the network
type Node ¶
type Node interface { // UTXOs returns list of unspent transaction outputs UTXOs(address.Address) ([]tx.TxInput, error) // SubmitTx submits a cbor marshalled transaction to the cardano blockchain // using blockfrost or cardano-cli SubmitTx(tx.Tx) (string, error) // ProtocolParameters returns Protocol Parameters from the network ProtocolParameters() (protocol.Protocol, error) // QueryTip returns the tip of the network for use in tx building // // Using `query tip` on cardano-cli requires a synced local node QueryTip() (NetworkTip, error) }
func NewBlockfrostClient ¶
func NewBlockfrostClient(projectId string, network *network.NetworkInfo) Node
NewBlockfrostClient returns a wrapper for the blockfrost API/SDK with Node interface
func NewCardanoCliNode ¶
func NewCardanoCliNode(network *network.NetworkInfo, cliPaths ...string) Node
NewCardanoCliNode returns a wrapper for the cardano-cli with the Node interface
Click to show internal directories.
Click to hide internal directories.