Help us shape the future of Go! Take the 2026 Go Developer Survey

omnilayer

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

omnilayer-go

Golang client for bitcoin omni layer

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) GetAddressesByAccount added in v0.0.2

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

func (*Client) GetBlockChainInfo

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

func (*Client) GetBlockCount added in v0.0.2

func (c *Client) GetBlockCount() (omnijson.GetBlockCountResult, error)

func (*Client) GetInfo

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

func (*Client) GetNewAddress added in v0.0.2

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

func (*Client) ImportAddress

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

func (*Client) ListUnspent

func (*Client) NextID

func (c *Client) NextID() uint64

func (*Client) OmniFundedSend added in v0.0.2

func (c *Client) OmniFundedSend(from, to string, propertyid int64, amount, fee string) (omnijson.OmniFundedSendResult, 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) OmniListTransactions added in v0.0.2

func (*Client) OmniSend added in v0.0.2

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