Documentation
¶
Index ¶
- type Client
- func (c *Client) EstimateFeeRate(ctx context.Context, targetBlocks int) (float64, float64, error)
- func (c *Client) GetBestBlockHash(ctx context.Context) (string, error)
- func (c *Client) GetBlock(ctx context.Context, hash string) (*types.ChainBlock, error)
- func (c *Client) GetBlockCount(ctx context.Context) (int, error)
- func (c *Client) GetBlockHash(ctx context.Context, height int64) (string, error)
- func (c *Client) GetBlockHeader(ctx context.Context, hash string) (*types.ChainBlock, error)
- func (c *Client) GetUTXO(ctx context.Context, hash [32]byte, index uint32) ([]byte, int64, error)
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(bitcoindrpcClient *bitcoindrpc.Client, mempoolapisClient *mempoolapis.Client) *Client
func (*Client) EstimateFeeRate ¶
func (*Client) GetBestBlockHash ¶ added in v0.1.0
获取最新区块的hash
func (*Client) GetBlockCount ¶ added in v0.1.0
获取节点区块数量
func (*Client) GetBlockHash ¶ added in v0.1.0
使用区块高度 查询区块哈希
func (*Client) GetBlockHeader ¶ added in v0.1.0
使用区块block hash 查询区块头
Click to show internal directories.
Click to hide internal directories.