Documentation
¶
Index ¶
- type SignatureFunc
- type UTXOClient
- func (c *UTXOClient) GetByHashes(shardID uint32, address string, hashes ...string) (utxos txmodels.UTXORows, err error)
- func (c *UTXOClient) GetForAmount(amount int64, shardID uint32, addresses ...string) (utxos *txmodels.UTXO, err error)
- func (c *UTXOClient) SelectForAmount(amount int64, shardID uint32, addresses ...string) (utxos txmodels.UTXORows, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignatureFunc ¶
type UTXOClient ¶
type UTXOClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(hostsAndPorts map[uint32]string, useHTTPS bool, sigFunc SignatureFunc) (c *UTXOClient, err error)
func (*UTXOClient) GetByHashes ¶
func (*UTXOClient) GetForAmount ¶
func (c *UTXOClient) GetForAmount(amount int64, shardID uint32, addresses ...string) (utxos *txmodels.UTXO, err error)
GetForAmount returns at most one UTXO for required `amount`, `shardID` and list of addresses. The list of UTXOs returned is sorted from the smallest one to the biggest one.
func (*UTXOClient) SelectForAmount ¶
func (c *UTXOClient) SelectForAmount(amount int64, shardID uint32, addresses ...string) (utxos txmodels.UTXORows, err error)
SelectForAmount returns all found UTXOs for required `amount`, `shardID` and list of addresses. The list of UTXOs returned is sorted from the smallest one to the biggest one.
Click to show internal directories.
Click to hide internal directories.