Documentation ¶
Index ¶
- Constants
- func State(conState jsonrpc.State) *btcState
- type Client
- func (c *Client) CreateWallet(ctx context.Context, conState jsonrpc.State, args CreateWallet) (*btcjson.CreateWalletResult, error)
- func (c *Client) EstimateSmartFee(ctx context.Context, conState jsonrpc.State, args EstimateSmartFee) (*btcjson.EstimateSmartFeeResult, error)
- func (c *Client) GenerateBlocks(ctx context.Context, conState jsonrpc.State, numBlocks uint32) ([]string, error)
- func (c *Client) GenerateBlocksToAddress(ctx context.Context, conState jsonrpc.State, args GenerateToAddress) ([]string, error)
- func (c *Client) GetAccount(ctx context.Context, conState jsonrpc.State, address string) (string, error)
- func (c *Client) GetAccountAddress(ctx context.Context, conState jsonrpc.State, account string) (string, error)
- func (c *Client) GetAddressInfo(ctx context.Context, conState jsonrpc.State, address string) (*btcjson.GetAddressInfoResult, error)
- func (c *Client) GetAddressesByAccount(ctx context.Context, conState jsonrpc.State, account string) ([]string, error)
- func (c *Client) GetBalance(ctx context.Context, conState jsonrpc.State, account string) (btcutil.Amount, error)
- func (c *Client) GetBlockCount(ctx context.Context, conState jsonrpc.State) (int64, error)
- func (c *Client) GetBlockHash(ctx context.Context, conState jsonrpc.State, blockHeight int64) (string, error)
- func (c *Client) GetBlockStats(ctx context.Context, conState jsonrpc.State, hash string) (*btcjson.GetBlockStatsResult, error)
- func (c *Client) GetBlockVerboseTx(ctx context.Context, conState jsonrpc.State, hash string) (*btcjson.GetBlockVerboseTxResult, error)
- func (c *Client) GetChainTxStats(ctx context.Context, conState jsonrpc.State, ...) (*btcjson.GetChainTxStatsResult, error)
- func (c *Client) GetDifficulty(ctx context.Context, conState jsonrpc.State) (float64, error)
- func (c *Client) GetMiningInfo(ctx context.Context, conState jsonrpc.State) (*btcjson.GetMiningInfoResult, error)
- func (c *Client) GetNewAddress(ctx context.Context, conState jsonrpc.State, account string) (string, error)
- func (c *Client) GetNodeAddresses(ctx context.Context, conState jsonrpc.State) ([]btcjson.GetNodeAddressesResult, error)
- func (c *Client) GetPeerInfo(ctx context.Context, conState jsonrpc.State) ([]btcjson.GetPeerInfoResult, error)
- func (c *Client) GetRawTransaction(ctx context.Context, conState jsonrpc.State, txHash string) (*btcutil.Tx, error)
- func (c *Client) ImportAddress(ctx context.Context, conState jsonrpc.State, address string) error
- func (c *Client) ImportAddressRescan(ctx context.Context, conState jsonrpc.State, args ImportAddressRescan) error
- func (c *Client) ImportPrivKey(ctx context.Context, conState jsonrpc.State, wif string) error
- func (c *Client) ImportPrivKeyLabel(ctx context.Context, conState jsonrpc.State, args ImportPrivKeyLabel) error
- func (c *Client) ImportPrivKeyRescan(ctx context.Context, conState jsonrpc.State, args ImportPrivKeyRescan) error
- func (c *Client) ImportPubKey(ctx context.Context, conState jsonrpc.State, pubKey string) error
- func (c *Client) ImportPubKeyRescan(ctx context.Context, conState jsonrpc.State, args ImportPubKeyRescan) error
- func (c *Client) Load(ctx context.Context, conState jsonrpc.State, args Load) error
- func (c *Client) Move(ctx context.Context, conState jsonrpc.State, args Move) (bool, error)
- func (c *Client) RenameAccount(ctx context.Context, conState jsonrpc.State, args RenameAccount) error
- func (c *Client) SendToAddress(ctx context.Context, conState jsonrpc.State, args SendToAddress) (string, error)
- type CreateWallet
- type EstimateSmartFee
- type GenerateToAddress
- type GetChainTxStatsNBlocksBlockHash
- type ImportAddressRescan
- type ImportPrivKeyLabel
- type ImportPrivKeyRescan
- type ImportPubKeyRescan
- type Load
- type Move
- type RenameAccount
- type SendToAddress
Constants ¶
View Source
const (
// NostrID is the ID for state of a btc client in the connection state.
BtcID = "btc"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { }
Client exposes nostr related functionality
func (*Client) CreateWallet ¶
func (c *Client) CreateWallet(ctx context.Context, conState jsonrpc.State, args CreateWallet) (*btcjson.CreateWalletResult, error)
func (*Client) EstimateSmartFee ¶
func (c *Client) EstimateSmartFee(ctx context.Context, conState jsonrpc.State, args EstimateSmartFee) (*btcjson.EstimateSmartFeeResult, error)
func (*Client) GenerateBlocks ¶
func (*Client) GenerateBlocksToAddress ¶
func (*Client) GetAccount ¶
func (*Client) GetAccountAddress ¶
func (*Client) GetAddressInfo ¶
func (*Client) GetAddressesByAccount ¶
func (*Client) GetBalance ¶
func (*Client) GetBlockCount ¶
func (*Client) GetBlockHash ¶
func (*Client) GetBlockStats ¶
func (*Client) GetBlockVerboseTx ¶
func (*Client) GetChainTxStats ¶
func (c *Client) GetChainTxStats(ctx context.Context, conState jsonrpc.State, args GetChainTxStatsNBlocksBlockHash) (*btcjson.GetChainTxStatsResult, error)
func (*Client) GetDifficulty ¶
func (*Client) GetMiningInfo ¶
func (*Client) GetNewAddress ¶
func (*Client) GetNodeAddresses ¶
func (*Client) GetPeerInfo ¶
func (*Client) GetRawTransaction ¶
func (*Client) ImportAddress ¶
func (*Client) ImportAddressRescan ¶
func (c *Client) ImportAddressRescan(ctx context.Context, conState jsonrpc.State, args ImportAddressRescan) error
func (*Client) ImportPrivKey ¶
func (*Client) ImportPrivKeyLabel ¶
func (c *Client) ImportPrivKeyLabel(ctx context.Context, conState jsonrpc.State, args ImportPrivKeyLabel) error
func (*Client) ImportPrivKeyRescan ¶
func (c *Client) ImportPrivKeyRescan(ctx context.Context, conState jsonrpc.State, args ImportPrivKeyRescan) error
func (*Client) ImportPubKey ¶
func (*Client) ImportPubKeyRescan ¶
func (c *Client) ImportPubKeyRescan(ctx context.Context, conState jsonrpc.State, args ImportPubKeyRescan) error
func (*Client) RenameAccount ¶
func (c *Client) RenameAccount(ctx context.Context, conState jsonrpc.State, args RenameAccount) error
func (*Client) SendToAddress ¶
type CreateWallet ¶
type EstimateSmartFee ¶
type EstimateSmartFee struct { ConfTarget int64 `json:"conf_target"` Mode btcjson.EstimateSmartFeeMode `json:"mode"` }
type GenerateToAddress ¶
type ImportAddressRescan ¶
type ImportPrivKeyLabel ¶
type ImportPrivKeyRescan ¶
type ImportPubKeyRescan ¶
type RenameAccount ¶
Click to show internal directories.
Click to hide internal directories.