Documentation ¶
Index ¶
- func SetDefaultClientSettings(addr string)
- type Client
- func (c *Client) GetBlock(hash types.Hash, ctx context.Context) (*daemon.GetBlockResult, error)
- func (c *Client) GetBlockByHeight(height uint64, ctx context.Context) (*daemon.GetBlockResult, error)
- func (c *Client) GetBlockHeaderByHash(hash types.Hash, ctx context.Context) (*daemon.BlockHeader, error)
- func (c *Client) GetBlockHeaderByHeight(height uint64, ctx context.Context) (*daemon.GetBlockHeaderByHeightResult, error)
- func (c *Client) GetBlockHeadersRangeResult(start, end uint64, ctx context.Context) (*daemon.GetBlockHeadersRangeResult, error)
- func (c *Client) GetBlockTemplate(address string) (*daemon.GetBlockTemplateResult, error)
- func (c *Client) GetCoinbaseTransaction(txId types.Hash) (*transaction.CoinbaseTransaction, error)
- func (c *Client) GetInfo() (*daemon.GetInfoResult, error)
- func (c *Client) GetLastBlockHeader() (*daemon.GetLastBlockHeaderResult, error)
- func (c *Client) GetMinerData() (*daemon.GetMinerDataResult, error)
- func (c *Client) GetOutputIndexes(id types.Hash) (indexes []uint64, err error)
- func (c *Client) GetOuts(inputs ...uint64) ([]Output, error)
- func (c *Client) GetPeerList() (*daemon.GetPeerListResult, error)
- func (c *Client) GetTransactionInputs(ctx context.Context, hashes ...types.Hash) ([]TransactionInputResult, error)
- func (c *Client) GetTransactions(txIds ...types.Hash) (data [][]byte, jsonTx []*daemon.TransactionJSON, err error)
- func (c *Client) GetVersion() (*daemon.GetVersionResult, error)
- func (c *Client) SetThrottle(timesPerSecond uint64)
- func (c *Client) SubmitBlock(blob []byte) (*daemon.SubmitBlockResult, error)
- type Output
- type TransactionInput
- type TransactionInputResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultClientSettings ¶
func SetDefaultClientSettings(addr string)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client
func GetDefaultClient ¶
func GetDefaultClient() *Client
func (*Client) GetBlockByHeight ¶
func (*Client) GetBlockHeaderByHash ¶
func (*Client) GetBlockHeaderByHeight ¶
func (*Client) GetBlockHeadersRangeResult ¶
func (*Client) GetBlockTemplate ¶
func (c *Client) GetBlockTemplate(address string) (*daemon.GetBlockTemplateResult, error)
func (*Client) GetCoinbaseTransaction ¶
func (c *Client) GetCoinbaseTransaction(txId types.Hash) (*transaction.CoinbaseTransaction, error)
func (*Client) GetLastBlockHeader ¶
func (c *Client) GetLastBlockHeader() (*daemon.GetLastBlockHeaderResult, error)
func (*Client) GetMinerData ¶
func (c *Client) GetMinerData() (*daemon.GetMinerDataResult, error)
func (*Client) GetOutputIndexes ¶
GetOutputIndexes Get global output indexes for a given transaction
func (*Client) GetPeerList ¶
func (c *Client) GetPeerList() (*daemon.GetPeerListResult, error)
func (*Client) GetTransactionInputs ¶
func (c *Client) GetTransactionInputs(ctx context.Context, hashes ...types.Hash) ([]TransactionInputResult, error)
GetTransactionInputs get transaction input information for several transactions, including key images and global key offsets
func (*Client) GetTransactions ¶
func (*Client) GetVersion ¶
func (c *Client) GetVersion() (*daemon.GetVersionResult, error)
func (*Client) SetThrottle ¶
func (*Client) SubmitBlock ¶
func (c *Client) SubmitBlock(blob []byte) (*daemon.SubmitBlockResult, error)
type TransactionInput ¶
type TransactionInputResult ¶
type TransactionInputResult struct { Id types.Hash `json:"id"` UnlockTime uint64 `json:"unlock_time"` Inputs []TransactionInput `json:"inputs"` }
Click to show internal directories.
Click to hide internal directories.