omnilayer

package
v0.0.0-...-452d5d4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 8 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
}

func New

func New(config *ConnConfig) *Client

func (*Client) GetAccountAddress

func (c *Client) GetAccountAddress(account string) (omnijson.GetAccountAddressResult, error)

func (*Client) GetAddressesByAccount

func (c *Client) GetAddressesByAccount(account string) (omnijson.GetAddressesByAccountResult, error)

func (*Client) GetBlockChainInfo

func (c *Client) GetBlockChainInfo() (omnijson.GetBlockChainInfoResult, error)

func (*Client) GetInfo

func (c *Client) GetInfo() (omnijson.OmniGetInfoResult, error)

func (*Client) GetNewAddress

func (c *Client) GetNewAddress(account string) (omnijson.GetNewAddressResult, error)

func (*Client) ImportAddress

func (c *Client) ImportAddress(address string, rescan bool) error

func (*Client) ListAccounts

func (c *Client) ListAccounts(minConf int64) (omnijson.ListAccountsResult, error)

func (*Client) ListUnspent

func (*Client) NextID

func (c *Client) NextID() uint64

func (*Client) OmniFoundedSend

func (c *Client) OmniFoundedSend(from, to string, propertyid int64, amount, fee string) (omnijson.OmniFoundedSendResult, error)

func (*Client) OmniGetBalance

func (*Client) OmniGetTransaction

func (c *Client) OmniGetTransaction(hash string) (omnijson.OmniGettransactionResult, error)

func (*Client) OmniListBlockTransactions

func (c *Client) OmniListBlockTransactions(block int64) (omnijson.OmniListBlockTransactionsResult, error)

func (*Client) Shutdown

func (c *Client) Shutdown()

type ConnConfig

type ConnConfig struct {
	Host                 string
	Endpoint             string
	User                 string
	Pass                 string
	Proxy                string
	ProxyUser            string
	ProxyPass            string
	Certificates         []byte
	DisableAutoReconnect bool
	DisableConnectOnNew  bool
	EnableBCInfoHacks    bool
}

type ErrClientShutdown

type ErrClientShutdown struct{}

func (*ErrClientShutdown) Error

func (*ErrClientShutdown) Error() string

type SigHashType

type SigHashType = string
const (
	// SigHashAll indicates ALL of the outputs should be signed.
	SigHashAll SigHashType = "ALL"

	// SigHashNone indicates NONE of the outputs should be signed.  This
	// can be thought of as specifying the signer does not care where the
	// bitcoins go.
	SigHashNone SigHashType = "NONE"

	// SigHashSingle indicates that a SINGLE output should be signed.  This
	// can be thought of specifying the signer only cares about where ONE of
	// the outputs goes, but not any of the others.
	SigHashSingle SigHashType = "SINGLE"

	// SigHashAllAnyoneCanPay indicates that signer does not care where the
	// other inputs to the transaction come from, so it allows other people
	// to add inputs.  In addition, it uses the SigHashAll signing method
	// for outputs.
	SigHashAllAnyoneCanPay SigHashType = "ALL|ANYONECANPAY"

	// SigHashNoneAnyoneCanPay indicates that signer does not care where the
	// other inputs to the transaction come from, so it allows other people
	// to add inputs.  In addition, it uses the SigHashNone signing method
	// for outputs.
	SigHashNoneAnyoneCanPay SigHashType = "NONE|ANYONECANPAY"

	// SigHashSingleAnyoneCanPay indicates that signer does not care where
	// the other inputs to the transaction come from, so it allows other
	// people to add inputs.  In addition, it uses the SigHashSingle signing
	// method for outputs.
	SigHashSingleAnyoneCanPay SigHashType = "SINGLE|ANYONECANPAY"
)

Constants used to indicate the signature hash type for SignRawTransaction.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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