goshimmer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a wrapper for the official Goshimmer client, providing a cleaner interface for commonly used Goshimmer webapi endpoints in wasp.

func NewClient

func NewClient(goshimmerHost string, faucetPowTarget int) *Client

NewClient returns a new Goshimmer client

func (*Client) BalanceIOTA

func (c *Client) BalanceIOTA(targetAddress ledgerstate.Address) (uint64, error)

func (*Client) GetConfirmedOutputs

func (c *Client) GetConfirmedOutputs(address ledgerstate.Address) ([]ledgerstate.Output, error)

func (*Client) PostAndWaitForConfirmation

func (c *Client) PostAndWaitForConfirmation(tx *ledgerstate.Transaction) error

func (*Client) PostRequestTransaction

func (c *Client) PostRequestTransaction(par transaction.NewRequestTransactionParams) (*ledgerstate.Transaction, error)

func (*Client) PostTransaction

func (c *Client) PostTransaction(tx *ledgerstate.Transaction) error

func (*Client) RequestFunds

func (c *Client) RequestFunds(targetAddress ledgerstate.Address) error

func (*Client) WaitForConfirmation

func (c *Client) WaitForConfirmation(txid ledgerstate.TransactionID) error

Jump to

Keyboard shortcuts

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