client

package
v0.0.0-...-985a39b Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ApiSignatureHeader = "X-kaminari-api-signature"

Variables

This section is empty.

Functions

func DefaultClient

func DefaultClient(cfg *Config) (kaminarigosdk.Interface, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) CreateOnChainInvoice

func (client *Client) CreateOnChainInvoice(req *kaminarigosdk.CreateInvoiceRequest) (string, error)

func (*Client) EstimateOnChainTx

EstimateOnChainTx estimates fee for on-chain tx, estimated fee returns in satoshi. Provided amount should be in satoshi(1 BTC = 100_000_000 sats).

func (*Client) GetBalance

func (client *Client) GetBalance(nonce string) (*kaminarigosdk.Balance, error)

func (*Client) GetLightningAddress

func (client *Client) GetLightningAddress(nonce string) (*kaminarigosdk.GetLightningAddrResponse, error)

func (*Client) GetSignature

func (client *Client) GetSignature(rawUrl string, nonce string, body []byte) (string, error)

GetSignature produces signature for API authorization.

func (*Client) GetStatistic

func (*Client) SendLightningPayment

func (client *Client) SendLightningPayment(req *kaminarigosdk.SendLightningPaymentRequest) error

func (*Client) SendOnChainPayment

func (client *Client) SendOnChainPayment(req *kaminarigosdk.SendOnChainPaymentRequest) error

type Config

type Config struct {
	ApiKey    string
	SecretKey string
	ApiUrl    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL